Jump to content

Requests for technical support from the VASP team should be posted in the VASP Forum.

Template:TAG: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 2: Line 2:
  | {{#switch: {{{color}}}
  | {{#switch: {{{color}}}
     | green    = <code style="padding: 2px; background: var(--vgreen-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
     | green    = <code style="padding: 2px; background: var(--vgreen-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
    | cyan    = <code style="padding: 2px; background: var(--vcyan-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
     | grey    = <code style="padding: 2px; background: var(--vgrey-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
     | grey    = <code style="padding: 2px; background: var(--vgrey-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
     | blue    = <code style="padding: 2px; background: var(--vblue-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
     | blue    = <code style="padding: 2px; background: var(--vblue-bg)">[[{{{1}}}]] {{{op|{{=}}}}} {{{2|}}}</code>
Line 10: Line 11:
  | {{#switch: {{{color}}}
  | {{#switch: {{{color}}}
     | green    = <span style="padding: 2px; background: var(--vgreen-bg)">[[{{{1}}}]]</span>
     | green    = <span style="padding: 2px; background: var(--vgreen-bg)">[[{{{1}}}]]</span>
    | cyan    = <span style="padding: 2px; background: var(--vcyan-bg)">[[{{{1}}}]]</span>
     | grey    = <span style="padding: 2px; background: var(--vgrey-bg)">[[{{{1}}}]]</span>
     | grey    = <span style="padding: 2px; background: var(--vgrey-bg)">[[{{{1}}}]]</span>
     | blue    = <span style="padding: 2px; background: var(--vblue-bg)">[[{{{1}}}]]</span>
     | blue    = <span style="padding: 2px; background: var(--vblue-bg)">[[{{{1}}}]]</span>
Line 26: Line 28:
* <code>tag_name</code>: The {{FILE|INCAR}} tag for which a link should be generated.
* <code>tag_name</code>: The {{FILE|INCAR}} tag for which a link should be generated.
* <code>value</code>: ('''optional''') Value associated with {{FILE|INCAR}} tag, with no other arguments writes <code>MY_TAG = value</code>
* <code>value</code>: ('''optional''') Value associated with {{FILE|INCAR}} tag, with no other arguments writes <code>MY_TAG = value</code>
* <code>color=color_name</code>: ('''optional''') Apply a color background, available <code>color_name</code> arguments are: <code style="background: var(--vgreen-bg)">green</code>, <code style="background: var(--vgrey-bg)">grey</code>, <code style="background: var(--vblue-bg)">blue</code>, <code style="background: var(--vred-bg)">red</code> and <code style="background: var(--vpurple-bg)">purple</code>. Works also without the <code>value</code> argument.
* <code>color=color_name</code>: ('''optional''') Apply a color background, available <code>color_name</code> arguments are: <code style="background: var(--vgreen-bg)">green</code>, <code style="background: var(--vcyan-bg)">cyan</code>, <code style="background: var(--vgrey-bg)">grey</code>, <code style="background: var(--vblue-bg)">blue</code>, <code style="background: var(--vred-bg)">red</code> and <code style="background: var(--vpurple-bg)">purple</code>. Works also without the <code>value</code> argument.
* <code>op=operator</code>: ('''optional''') In case a different operator than <code>=</code> is required it can be provided as with the <code>op=</code> argument, e.g., <code><nowiki> {{TAG|MY_TAG|3|op=>=}}</nowiki></code> produces <code>MY_TAG >= 3</code>.
* <code>op=operator</code>: ('''optional''') In case a different operator than <code>=</code> is required it can be provided as with the <code>op=</code> argument, e.g., <code><nowiki> {{TAG|MY_TAG|3|op=>=}}</nowiki></code> produces <code>MY_TAG >= 3</code>.



Revision as of 13:41, 13 April 2026

[[{{{1}}}]]

Purpose

Prints a link to an INCAR tag, optionally with colored background and/or as TAG = value pair.

Parameters

 {{TAG|<tag_name>|<<value>>|<<color=color_name>>|<<op=operator>>}}
  • tag_name: The INCAR tag for which a link should be generated.
  • value: (optional) Value associated with INCAR tag, with no other arguments writes MY_TAG = value
  • color=color_name: (optional) Apply a color background, available color_name arguments are: green, cyan, grey, blue, red and purple. Works also without the value argument.
  • op=operator: (optional) In case a different operator than = is required it can be provided as with the op= argument, e.g., {{TAG|MY_TAG|3|op=>=}} produces MY_TAG >= 3.

Examples

 {{TAG|IBRION}}
 
 {{TAG|IBRION|color=blue}}

 {{TAG|IBRION|3|color=green}}

 {{TAG|IBRION|5|op=<}}

 {{TAG|IBRION|4|color=red|op=?=}}

results in

Remarks

  • Can be combined with bold and italics format:
 ''{{TAG|IBRION|4|color=red|op=>}}''
 '''{{TAG|IBRION|4|color=blue|op=>}}'''
 '''''{{TAG|IBRION|4|color=purble|op=>}}'''''
produces: