This template is protected from editing.
Difference between revisions of "Template:Hatnote"
m (Protected "Template:Hatnote": high-traffic, no text could be added / changed ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
m (documentation) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <div style="font-style: italic; padding-left: 2em; margin-bottom: 0.5em;">{{{1}}}</div><noinclude>[[Category:Formatting templates|Hatnote]]</noinclude> | + | <div style="font-style: {{lang<!-- |
+ | // Italics on all pages except Chinese. --> | ||
+ | | en = italic | ||
+ | | zh-hans = normal | ||
+ | | zh-hant = normal | ||
+ | }}; 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}} | ||
+ | [[Category:Formatting templates|Hatnote]] | ||
+ | </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.