This template is protected from editing.
Difference between revisions of "Template:Hatnote"
(smallifying text) |
m (documentation) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | <div style="font-style: {{lang<!-- | |
// Italics on all pages except Chinese. --> | // Italics on all pages except Chinese. --> | ||
| en = italic | | en = italic | ||
| zh-hans = normal | | zh-hans = normal | ||
| zh-hant = normal | | zh-hant = normal | ||
− | }}; padding-left: 2em; margin-bottom: 0.5em; {{{style|}}}">{{{1}}}</div></ | + | }}; padding-left: 2em; margin-bottom: 0.5em; {{{style|}}}">{{{1}}}</div><noinclude> |
+ | {{doc begin}} | ||
+ | == Usage == | ||
+ | * <code><nowiki>{{Hatnote|Soldier}}</nowiki></code> generates: | ||
+ | {{Hatnote|Soldier}} | ||
+ | |||
+ | * <code><nowiki>{{Hatnote|Soldier|style=color: green}}</nowiki></code> generates: | ||
+ | {{Hatnote|Soldier|style=color: green}} | ||
+ | |||
+ | === Syntax === | ||
+ | <code><nowiki>{{Hatnote|text|style=}}</nowiki></code> | ||
+ | |||
+ | ;text: The text for the hatnote. | ||
+ | ;style (optional): Additional CSS. | ||
+ | |||
{{Hatnote templates list}} | {{Hatnote templates list}} | ||
[[Category:Formatting templates|Hatnote]] | [[Category:Formatting templates|Hatnote]] | ||
</noinclude> | </noinclude> |
Latest revision as of 19:42, 14 February 2023
{{{1}}}
Documentation for Hatnote
Usage
{{Hatnote|Soldier}}
generates:
Soldier
{{Hatnote|Soldier|style=color: green}}
generates:
Soldier
Syntax
{{Hatnote|text|style=}}
- text
- The text for the hatnote.
- style (optional)
- Additional CSS.
See also
{{See also}}
– link to a related article inline.{{Main}}
– "main article" template.{{Other uses}}
– "other uses" template.{{Redirects here}}
– "redirects here" template.{{For Classic article}}
– use on TF2 pages to link to the TFC/QTF article.{{For TF2 article}}
– use on TFC/QTF pages to link to the TF2 article.{{Hatnote}}
– plain hatnote template, no predefined text.{{Obtain note}}
– for use on achievement pages.