Difference between revisions of "Template:Icon"

From comp.tf
Jump to navigation Jump to search
m
m
Line 13: Line 13:
 
|spy=Spyicon.png
 
|spy=Spyicon.png
 
|caster=Int Icon.png
 
|caster=Int Icon.png
}}|20px|{{#if:{{{2|}}}|{{{2|}}}|{{#switch:{{lc: {{{1|}}} }}
+
}}|{{{4|20px}}}|{{#if:{{{2|}}}|{{{2|}}}|{{#switch:{{lc: {{{1|}}} }}
 
|scout=Scout
 
|scout=Scout
 
|soldier=Soldier
 
|soldier=Soldier

Revision as of 07:20, 11 December 2019

(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}} [[File:|20px||link=]]
  • {{Icon|pocketscout}} [[File:|20px||link=]]
  • {{Icon|soldier}} Soldier
  • {{Icon|roamer}} Roamer
  • {{Icon|pocket}} Pocket
  • {{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