This template is protected from editing.

Difference between revisions of "Template:Hatnote"

From Team Fortress Wiki
Jump to: navigation, search
(smallifying text)
m (documentation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<small><div style="font-style: {{lang<!--  
+
<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></small><noinclude>
+
   }}; 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