Difference between revisions of "Template:Icon/doc"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
== Usage ==
 
== Usage ==
<code><nowiki>{{Icon|</nowiki>'''<nowiki>___</nowiki>'''<nowiki>|</nowiki>''<nowiki>name</nowiki>''<nowiki>|</nowiki>''<nowiki>link</nowiki>''<nowiki><nowiki>|</nowiki>''<nowiki>size</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> {{Icon|scout}}
 
* <code><nowiki>{{Icon|scout}}</nowiki></code> {{Icon|scout}}

Revision as of 07:21, 11 December 2019

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|soldier}} 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