This template is protected from editing.

Difference between revisions of "Template:Class link"

From Team Fortress Wiki
Jump to: navigation, search
m (+center)
(Using the deprecated <font> tag because it also updates the underline color! Maybe one day we can use css :wishful:)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{br|}}}|<div style="text-align:center;">}}{{Icon class|{{{1|Scout}}}|size={{{size|20px}}}|link={{{link|{{{1|Scout}}}{{if lang}}}}}}}{{#if:{{{br|}}}|<br/>}} [[{{{link|{{{1|Scout}}}{{if lang}}}}}|{{Class name|{{{1|Scout}}}}}]]{{#if:{{{br|}}}|</div>}}</includeonly><noinclude>
+
<includeonly><!--
 +
-->{{#if:{{{br|}}}|<div style="text-align:center;">}}<!-- In a table, so center,
 +
-->{{#if:{{{noimg|}}}
 +
  | <!-- No image -->
 +
  |{{Icon class
 +
    |{{{1|Scout}}}
 +
    |size={{{size|{{{2|20px}}} }}}
 +
    |link={{{link|{{{1|Scout}}}{{if lang}} }}}
 +
  }}{{#if:{{{br|}}}||&nbsp;}}<!-- Add a space between image and text if no break -->
 +
}}{{#if:{{{br|}}}|<br/>}}<!--
 +
-->[[{{{link|{{{1|Scout}}}{{if lang}}}}}|<!--
 +
-->{{#if:{{{color|}}}|<font color="{{{color}}}">}}<!--
 +
  -->{{Class name|{{{1|Scout}}}}}<!--
 +
-->{{#if:{{{color|}}}|</font>}}]]<!--
 +
-->{{#if:{{{br|}}}|</div>}}</includeonly><noinclude>
 
{{doc begin}}
 
{{doc begin}}
 
=== Usage ===
 
=== Usage ===
* {{tlx|class link|Soldier}} produces {{class link|Soldier}}
+
* {{tlx|Class link|Soldier}} produces {{Class link|Soldier}}
* {{tlx|class link|Scout|3=link=Scout achievements}} produces {{class link|Scout|link=Scout achievements}}
+
* {{tlx|Class link|Scout|3=link=Scout achievements}} produces {{Class link|Scout|link=Scout achievements}}
* {{tlx|class link|Pyro|3=size=48px}} produces {{class link|Pyro|size=48px}}
+
* {{tlx|Class link|Pyro|3=size=48px}} produces {{Class link|Pyro|size=48px}}
* {{tlx|class link|Medic|3=br=yes}} produces:
+
* {{tlx|Class link|Pyro|3=noimg=true}} produces {{Class link|Pyro|noimg=true}}
 +
* {{tlx|Class link|Medic|3=color=lime}} produces: {{Class link|Medic|color=lime}}
 +
* {{tlx|Class link|Medic|3=br=yes}} in a table produces:
  
{{class link|Medic|br=yes}}
+
{| class="wikitable grid" width="10%"
 +
! class="header" | Random table
 +
|-
 +
| {{Class link|Medic|br=yes}}
 +
|}
  
 
[[Category:Formatting templates|Class link]]
 
[[Category:Formatting templates|Class link]]
 
[[Category:Language templates|Class link]]
 
[[Category:Language templates|Class link]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:57, 2 January 2017

Documentation for Class link

Usage

Random table