Difference between revisions of "Template:Icon/doc"

From comp.tf
Jump to navigation Jump to search
(Created page with "== Usage == <code><nowiki>{{Medal|</nowiki>'''<nowiki>___</nowiki>'''<nowiki>|</nowiki>''<nowiki>name</nowiki>''<nowiki>|</nowiki>''<nowiki>link</nowiki>''<nowiki>}}</nowiki><...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Usage ==
 
== Usage ==
<code><nowiki>{{Medal|</nowiki>'''<nowiki>___</nowiki>'''<nowiki>|</nowiki>''<nowiki>name</nowiki>''<nowiki>|</nowiki>''<nowiki>link</nowiki>''<nowiki>}}</nowiki></code>
+
<code><nowiki>{{Icon|</nowiki>'''<nowiki>___</nowiki>'''<nowiki>|</nowiki>''<nowiki>name</nowiki>''<nowiki>|</nowiki>''<nowiki>link</nowiki>''<nowiki>|</nowiki>''<nowiki>size</nowiki>''<nowiki>}}</nowiki></code>
 
* All parameters are unnamed
 
* All parameters are unnamed
 
* Name and link parameters are optional
 
* Name and link parameters are optional
 +
* Size will default to 20px when not set
 
== Examples ==
 
== Examples ==
* <code><nowiki>{{Icon|scout}}</nowiki></code>
+
* <code><nowiki>{{Icon|scout}}</nowiki></code> {{Icon|scout}}
* <code><nowiki>{{Icon|soldier}}</nowiki></code>
+
* <code><nowiki>{{Icon|flankscout}}</nowiki></code> {{Icon|flankscout}}
* <code><nowiki>{{Icon|pocket}}</nowiki></code>
+
* <code><nowiki>{{Icon|pocketscout}}</nowiki></code> {{Icon|pocketscout}}
* <code><nowiki>{{Icon|pyro}}</nowiki></code>
+
* <code><nowiki>{{Icon|soldier}}</nowiki></code> {{Icon|soldier}}
* <code><nowiki>{{Icon|demoman}}</nowiki></code>
+
* <code><nowiki>{{Icon|roamer}}</nowiki></code> {{Icon|roamer}}
* <code><nowiki>{{Icon|heavy}}</nowiki></code>
+
* <code><nowiki>{{Icon|pocket}}</nowiki></code> {{Icon|pocket}}
* <code><nowiki>{{Icon|engineer}}</nowiki></code>
+
* <code><nowiki>{{Icon|pyro}}</nowiki></code> {{Icon|pyro}}
* <code><nowiki>{{Icon|medic}}</nowiki></code>
+
* <code><nowiki>{{Icon|demoman}}</nowiki></code> {{Icon|demoman}}
* <code><nowiki>{{Icon|sniper||Sniper}}</nowiki></code>
+
* <code><nowiki>{{Icon|heavy}}</nowiki></code> {{Icon|heavy}}
* <code><nowiki>{{Icon|spy|Spy of the Season}}</nowiki></code>
+
* <code><nowiki>{{Icon|engineer}}</nowiki></code> {{Icon|engineer}}
* <code><nowiki>{{Icon|caster|Caster of the Season|teamfortresstv}}</nowiki></code>
+
* <code><nowiki>{{Icon|medic}}</nowiki></code> {{Icon|medic}}
 +
* <code><nowiki>{{Icon|sniper||Sniper}}</nowiki></code> {{Icon|sniper||Sniper}}
 +
* <code><nowiki>{{Icon|spy|Spy of the Season}}</nowiki></code> {{Icon|spy|Spy of the Season}}
 +
* <code><nowiki>{{Icon|caster|Caster of the Season|teamfortresstv}}</nowiki></code> {{Icon|caster|Caster of the Season|teamfortresstv}}

Latest revision as of 09:09, 7 October 2022

Usage[edit]

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

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

Examples[edit]

  • {{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