This template is protected from editing.

Difference between revisions of "Template:Class link"

From Team Fortress Wiki
Jump to: navigation, search
m (I didn't realize there was a real sandbox. Supports custom colors, and should be a bit easier to read now.)
(Using the deprecated <font> tag because it also updates the underline color! Maybe one day we can use css :wishful:)
 
Line 10: Line 10:
 
}}{{#if:{{{br|}}}|<br/>}}<!--
 
}}{{#if:{{{br|}}}|<br/>}}<!--
 
-->[[{{{link|{{{1|Scout}}}{{if lang}}}}}|<!--
 
-->[[{{{link|{{{1|Scout}}}{{if lang}}}}}|<!--
-->{{#if:{{{color|}}}|<span style="color:{{{color}}}; text-decoration: none">}}<!--
+
-->{{#if:{{{color|}}}|<font color="{{{color}}}">}}<!--
 
   -->{{Class name|{{{1|Scout}}}}}<!--
 
   -->{{Class name|{{{1|Scout}}}}}<!--
-->{{#if:{{{color|}}}|</span>}}]]<!--
+
-->{{#if:{{{color|}}}|</font>}}]]<!--
 
-->{{#if:{{{br|}}}|</div>}}</includeonly><noinclude>
 
-->{{#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|Pyro|3=noimg=true}} produces {{Class link|Pyro|noimg=true}}
+
* {{tlx|Class link|Pyro|3=noimg=true}} produces {{Class link|Pyro|noimg=true}}
* {{tlx|class link|Medic|3=br=yes}} in a table produces:
+
* {{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="wikitable grid" width="10%"
 
{| class="wikitable grid" width="10%"
 +
! class="header" | Random table
 +
|-
 
| {{Class link|Medic|br=yes}}
 
| {{Class link|Medic|br=yes}}
|}
 
 
* {{tlx|class link|Medic|3=br=yes|4=color=#F0F}} in a table produces:
 
 
{| class="wikitable grid" width="10%"
 
| {{Class link|Medic|br=yes|color=#F0F}}
 
 
|}
 
|}
  

Latest revision as of 23:57, 2 January 2017

Documentation for Class link

Usage

Random table