Difference between revisions of "Template:Icon"

From comp.tf
Jump to navigation Jump to search
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span name="{{#switch:{{lc: {{{1|}}} }}
+
<includeonly><span style="line-height:100%;transform:translateY(-1px);display:inline-block;{{#if:{{{style|}}}|{{{style|}}}|}}">[[File:{{#switch:{{lc: {{{1|}}} }}
 +
|scout=Scouticon.png
 +
|flankscout=Flankscouticon.png
 +
|pocketscout=Pocketscouticon.png
 +
|soldier=Soldiericon.png
 +
|roamer
 +
|roaming soldier=Roamericon.png
 +
|pocket
 +
|pocket soldier=Pocketicon.png
 +
|pyro=Pyroicon.png
 +
|demo
 +
|demoman=Demomanicon.png
 +
|heavy=Heavyicon.png
 +
|engineer=Engineericon.png
 +
|medic=Medicicon.png
 +
|sniper=Snipericon.png
 +
|spy=Spyicon.png
 +
|caster=Int Icon.png
 +
}}|{{{4|20px}}}|{{#if:{{{2|}}}|{{{2|}}}|{{#switch:{{lc: {{{1|}}} }}
 
|scout=Scout
 
|scout=Scout
 +
|flankscout=Flank Scout
 +
|pocketscout=Pocket Scout
 
|soldier=Soldier
 
|soldier=Soldier
|roamer=Roamer
+
|roamer=Roaming Soldier
|pocket=Pocket
+
|pocket=Pocket Soldier
 
|pyro=Pyro
 
|pyro=Pyro
 
|demo
 
|demo
Line 14: Line 34:
 
|caster=Caster
 
|caster=Caster
 
|#default={{{2|}}}
 
|#default={{{2|}}}
}}">[[File:{{#switch:{{lc: {{{1|}}} }}
+
}}}}|link={{{3|}}}]]</span></includeonly><noinclude>{{documentation}}</noinclude>
|scout=Scouticon.png
 
|soldier=Soldiericon.png
 
|roamer=Soldiericon.png
 
|pocket=Pocketicon.png
 
|pyro=Pyroicon.png
 
|demo
 
|demoman=Demomanicon.png
 
|heavy=Heavyicon.png
 
|engineer=Engineericon.png
 
|medic=Medicicon.png
 
|sniper=Snipericon.png
 
|spy=Spyicon.png
 
|caster=Int Icon.png
 
}}|20px|link={{{3|}}}]]</span></includeonly><noinclude>{{documentation}}</noinclude>
 

Latest revision as of 00:41, 14 December 2023

(view - edit) Documentation

Usage

{{Icon|___|name|link|size}}

  • All parameters are unnamed
  • Name and link parameters are optional
  • Size will default to 20px when not set

Examples

  • {{Icon|scout}} Scout
  • {{Icon|flankscout}} Flank Scout
  • {{Icon|pocketscout}} Pocket Scout
  • {{Icon|soldier}} Soldier
  • {{Icon|roamer}} Roaming Soldier
  • {{Icon|pocket}} Pocket Soldier
  • {{Icon|pyro}} Pyro
  • {{Icon|demoman}} Demoman
  • {{Icon|heavy}} Heavy
  • {{Icon|engineer}} Engineer
  • {{Icon|medic}} Medic
  • {{Icon|sniper||Sniper}} Sniper
  • {{Icon|spy|Spy of the Season}} Spy of the Season
  • {{Icon|caster|Caster of the Season|teamfortresstv}} Caster of the Season