Template:Var/doc
Jump to navigation
Jump to search
Usage
{{var}} is a front-end for the HTML element <var>, which is used to denote a variable.
Parameters
There is only 1 parameter, which is unnamed and required.
Syntax
The template's syntax is
{{var|custom text}}
Required parameter
1
- Custom text
The variable you wish to enclose in <var> tags.
- Usage
{{var|1}}
Examples
Correct use
| Case | What you type | What you see |
|---|---|---|
| Basic use | {{var|variable}} |
variable |
| In inline text | If {{var|E}} = {{var|m c2}}, then what is F? |
If E = m c2, then what is F? |
See also
- {{varserif}}: inserts
<var>tags with serif font styling.
- {{abbr}}: inserts
<abbr>tags to include a tooltip explanation of an abbreviation. - {{bdi}}: inserts
<bdi>tags to allow for inline changes in text direction. - {{bdo}}: inserts
<bdo>tags, forcing inline changes in text direction. - {{code}}: inserts
<code>tags. - {{mark}}: inserts
<mark>tags. - {{samp}}: inserts
<samp>tags.