Template:Var

From OpenMW Wiki
Revision as of 16:24, 15 August 2017 by Darklocq (talk | contribs) (creating template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

variable

Documentation

This is a convenient template wrapper for the <var>...</var> HTML element, the proper markup for variables, which are rendered in italics by most browsers. This can be used in running text or inside <code>...</code>, and will use the proper font for the context.

This template should not be used for emphasis (use {{Em|...}} or <em>...</em> markup), or for general uses of italics, like book titles, foreign words, words-as-words, etc. (use ''...'' markup).

Usage:

{{var|the variable here}}

If the content contains a = character, the parameter must be named (as |1=), but this should not arise (variables are generally going to come before or after that character).