Template:NB: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | tip        = {{{!}} style="border: 3px solid #2FB5AB; padding: 10px; background: #F3FCFB"
  | tip        = {{{!}} style="border: 0px solid #2FB5AB; padding: 5px; background: #F3FCFB"
   {{!}} '''<span style="color: #2FB5AB;">{{{3|Tip:}}}</span>''' {{{2}}}
   {{!}} '''<span style="color: #2FB5AB;">{{{3|Tip:}}}</span>''' {{{2}}}
   {{!}}}
   {{!}}}
  | deprecated = {{{!}} style="border: 3px solid #808080; padding: 10px; background: #F7F7F7"
  | deprecated = {{{!}} style="border: 0px solid #808080; padding: 5px; background: #F7F7F7"
   {{!}} '''<span style="color: #808080;">{{{3|Deprecated:}}}</span>''' {{{2}}}
   {{!}} '''<span style="color: #808080;">{{{3|Deprecated:}}}</span>''' {{{2}}}
   {{!}}}
   {{!}}}
  | note      = {{{!}} style="border: 3px solid #2C68FC; padding: 10px; background: #F0F4FF"
  | note      = {{{!}} style="border: 0px solid #2C68FC; padding: 5px; background: #F0F4FF"
   {{!}} '''<span style="color: #2C68FC;">{{{3|Note:}}}</span>''' {{{2}}}
   {{!}} '''<span style="color: #2C68FC;">{{{3|Note:}}}</span>''' {{{2}}}
   {{!}}}
   {{!}}}
  | warning    = {{{!}} style="border: 3px solid #A82C35; padding: 10px; background: #FCF3F4"
  | warning    = {{{!}} style="border: 0px solid #A82C35; padding: 5px; background: #FCF3F4"
   {{!}} '''<span style="color: #A82C35;">{{{3|Warning:}}}</span>''' {{{2}}}
   {{!}} '''<span style="color: #A82C35;">{{{3|Warning:}}}</span>''' {{{2}}}
   {{!}}}
   {{!}}}
  | important  = {{{!}} style="border: 3px solid #4C265F; padding: 10px; background: #F8F4FB"
  | important  = {{{!}} style="border: 0px solid #4C265F; padding: 5px; background: #F8F4FB"
   {{!}} '''<span style="color: #4C265F;">{{{3|Important:}}}</span>''' {{{2}}}
   {{!}} '''<span style="color: #4C265F;">{{{3|Important:}}}</span>''' {{{2}}}
   {{!}}}
   {{!}}}
  | #default  = {{{!}} style="border: 3px solid #000000; padding: 10px; background: #FFFFFF"
  | #default  = {{{!}} style="border: 1px solid #000000; padding: 5px; background: #FFFFFF"
   {{!}} {{{2}}}
   {{!}} {{{2}}}
   {{!}}}
   {{!}}}

Revision as of 07:15, 12 October 2021

{{{2}}}

Purpose

This template draws various colored boxes which can be filled with user content.

Parameters

 {{BOX|<style>|<message>|<<firstword>>}}
  • style: One of tip,deprecated,note,warning,important, selects the box style, i.e. the color and the first word (see examples below). If style is not any of the words in the list, a black box without first word is drawn.
  • message: The content of the box (after the first word).
  • firstword: (optional) Overrides the default first word for any of the predefined styles.


Examples

 {{BOX|tip|This is the clever way of doing it!}}

 {{BOX|deprecated|This feature is deprecated and will be removed in the next release}}

 {{BOX|note|You can manually set this via '''SOME_TAG'''}}

 {{BOX|warning|Never do this at home!}}

 {{BOX|important|You should really consider this!}}

 {{BOX|none|Just a box.}}

 {{BOX|warning|Really, really don't do this!|CAUTION!!!}}

will produce

Tip: This is the clever way of doing it!


Deprecated: This feature is deprecated and will be removed in the next release


Note: You can manually set this via SOME_TAG


Warning: Never do this at home!


Important: You should really consider this!


Just a box.


CAUTION!!! Really, really don't do this!