Difference between revisions of "Template:Icon"

From comp.tf
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly><span style="line-height:100%;vertical-align:{{#ifeq:{{{middle|}}}|true|middle|top}};display:inline-block;{{#if:{{{style|}}}|{{{style|}}}|}}">[[File:{{#switch:{{lc: {{{1|}}} }}
 
<includeonly><span style="line-height:100%;vertical-align:{{#ifeq:{{{middle|}}}|true|middle|top}};display:inline-block;{{#if:{{{style|}}}|{{{style|}}}|}}">[[File:{{#switch:{{lc: {{{1|}}} }}
 
|scout=Scouticon.png
 
|scout=Scouticon.png
 +
|flankscout=Flankscouticon.png
 +
|pocketscout=Pocketscouticon.png
 
|soldier=Soldiericon.png
 
|soldier=Soldiericon.png
 
|roamer
 
|roamer

Revision as of 09:08, 7 October 2022

(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}} Flankscouticon.png
  • {{Icon|pocketscout}} Pocketscouticon.png
  • {{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