This template is to help facilitate the displaying of Wikipedia variables and built-in "magicword" (pseudo-template) names, and optionally their :parameters as well. The variable/magicword names are automatically put into all-upper-case.

Examples
{{wikivar|PAGENAME}}

and

{{wikivar|pagename}}

displays as:

{{PAGENAME}}

A second parameter can be added; this is the part followed by a colon in some usages:

{{wikivar|DEFAULTSORT|Kusanagi, Motoko}}

displays as:

{{DEFAULTSORT:Kusanagi, Motoko}}
  • {{Strong}} – For semantically indicating strong emphasis instead of simple typographical boldfacing.
  • {{Strongbad}} – Same as {{strong}} but red like this: "Never use {{strongbad}} in articles."
  • {{Stronggood}} – Same as {{strongbad}} but green like this: "Only use {{stronggood}} on non-article pages."
  • {{Em}} – Similar template for semantically indicating mild emphasis instead of simple typographical italicization.
  • {{Var}} – Same as {{Varserif}} use for all variables (e.g. strIllustratePrefix), except for "I" (upper-case i) and "l" (lower-case L), for which use {{Varserif}}.
  • {{Varserif}} – Same as {{Var}} but uses serif font (e.g. strIllustratePrefix), especially for distinguishing between "I" (upper-case i) and "l" (lower-case L) as variables.
  • {{Wikivar}} – For displaying wikicode variables and magicwords as they would appear in source code, e.g. {{PAGENAME}}, {{DEFAULTSORT:Lastname, Firstname}}.
  • {{Para}} – For displaying wiki template parameters (|title=) or parameters and values (|year=2008).
  • {{Tlx}} and related – For displaying entire templates (with or without parameters and values) as code.
  • {{Tag}} – For using HTML elements ("tags") in prose (e.g. "When coding HTML ‎<img>...‎</img> tags, always include …").
  • {{Code}} – For computer source code (e.g. "always include the alt= parameter"). (Note: to nest other templates like {{var}} inside, use ‎<code>...‎</code> instead of {{code}}.)
  • {{Syntaxhighlight}} or {{Sxhl}} – Wrapper for ‎<syntaxhighlight>...‎</syntaxhighlight>, but will wrap overflowing text.
  • {{Deprecated code}} or {{Dc2}} – For deprecated source code in template documentation, articles on HTML specs, etc. (e.g. "do not use ‎<blink>...‎</blink>").
  • {{Pre}} – For larger blocks of source code and other pre-formatted text.
  • {{Bq}} – For indented blocks of content, such as block quotations, examples, poems, etc.
  • {{Kbd}} – For indicating user input.
  • {{Key press}} – For indicating the input of specific keystrokes, e.g. CtrlX.
  • {{PlayStation key press}} – For indicating PlayStation-style gamepad key presses, e.g. ×.
  • {{Samp}} – For example output.