Difference between revisions of "Template:Icon"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>[[File:{{#switch:{{lc: {{{1|}}} }}
+
<includeonly><span name="{{#switch:{{lc: {{{1|}}} }}
|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|{{#switch:{{lc: {{{1|}}} }}
 
 
|scout=Scout
 
|scout=Scout
 
|soldier=Soldier
 
|soldier=Soldier
Line 28: Line 14:
 
|caster=Caster
 
|caster=Caster
 
|#default={{{2|}}}
 
|#default={{{2|}}}
}}|link={{{3|}}}]]</includeonly><noinclude>{{documentation}}</noinclude>
+
}}">[[File:{{#switch:{{lc: {{{1|}}} }}
 +
|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>

Revision as of 01:16, 27 November 2016

(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}} Scouticon.png
  • {{Icon|flankscout}} [[File:|20px|link=]]
  • {{Icon|pocketscout}} [[File:|20px|link=]]
  • {{Icon|soldier}} Soldiericon.png
  • {{Icon|roamer}} Soldiericon.png
  • {{Icon|pocket}} Pocketicon.png
  • {{Icon|pyro}} Pyroicon.png
  • {{Icon|demoman}} Demomanicon.png
  • {{Icon|heavy}} Heavyicon.png
  • {{Icon|engineer}} Engineericon.png
  • {{Icon|medic}} Medicicon.png
  • {{Icon|sniper||Sniper}} Snipericon.png
  • {{Icon|spy|Spy of the Season}} Spyicon.png
  • {{Icon|caster|Caster of the Season|teamfortresstv}} Int Icon.png