Template:Varserif/doc: Difference between revisions
Jump to navigation
Jump to search
| Line 31: | Line 31: | ||
==See also== | ==See also== | ||
* {{tl|var}}: inserts {{tag|var|o}} tags | * {{tl|var}}: inserts {{tag|var|o}} tags. | ||
* {{tl|abbr}}: inserts {{tag|abbr|o}} tags to include a tooltip explanation of an abbreviation. | * {{tl|abbr}}: inserts {{tag|abbr|o}} tags to include a tooltip explanation of an abbreviation. | ||
| Line 37: | Line 37: | ||
* {{tl|bdo}}: inserts {{tag|bdo|o}} tags, forcing inline changes in text direction. | * {{tl|bdo}}: inserts {{tag|bdo|o}} tags, forcing inline changes in text direction. | ||
* {{tl|code}}: inserts {{tag|code|o}} tags. | * {{tl|code}}: inserts {{tag|code|o}} tags. | ||
* {{tl|mark}}: inserts {{tag|mark|o}} tags. | * {{tl|mark}}: inserts {{tag|mark|o}} tags, highlighting the enclosed text. | ||
* {{tl|samp}}: inserts {{tag|samp|o}} tags. | * {{tl|samp}}: inserts {{tag|samp|o}} tags. | ||
Revision as of 23:32, 16 December 2014
Usage
{{varserif}} is a front-end for the HTML element <var>, which is used to denote a variable, and styles the input text in a serif font.
Parameters
There is only 1 parameter, which is unnamed and required.
Syntax
The template's syntax is
{{varserif|custom text}}
Required parameter
1
- Custom text
The variable you wish to enclose in <var> tags and style.
- Usage
{{varserif|1}}
Examples
Correct use
| Case | What you type | What you see |
|---|---|---|
| Basic use | {{varserif|variable}} |
variable |
| In inline text | If {{varserif|E}} = {{varserif|m c2}}, then what is F? |
If E = m c2, then what is F? |
See also
- {{var}}: inserts
<var>tags.
- {{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, highlighting the enclosed text. - {{samp}}: inserts
<samp>tags.