This template is protected from editing.

Difference between revisions of "Template:Hatnote"

From Team Fortress Wiki
Jump to: navigation, search
m (1 revision: Imported from TF2 Wiki.)
m (documentation)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="font-style: italic; padding-left: 2em; margin-bottom: 0.5em;">{{{1}}}</div>
+
<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