This template is protected from editing.

Difference between revisions of "Template:Icon class"

From Team Fortress Wiki
Jump to: navigation, search
(adjusted image baseline)
(Parameter now directly feeds into the code instead of going through a switch. Updated documentation.)
Line 1: Line 1:
<includeonly>[[File:{{#switch:{{lc:{{{class|{{{1|}}}}}}}}
+
<includeonly>[[File:Leaderboard class {{lc:{{{class|{{{1|unknown}}}}}}}}.png|link={{{link|{{{class|{{{1|Classes}}}}}}{{if lang}}}}}|{{{icon-size|{{{size|{{{2|20px}}}}}}}}}|{{{extra|bottom}}}]]</includeonly><noinclude>
 
 
| scout    = Leaderboard class scout.png{{!}}link={{{link|Scout{{if lang}}}}}
 
| soldier  = Leaderboard class soldier.png{{!}}link={{{link|Soldier{{if lang}}}}}
 
| pyro    = Leaderboard class pyro.png{{!}}link={{{link|Pyro{{if lang}}}}}
 
| demoman
 
| demo    = Leaderboard class demo.png{{!}}link={{{link|Demoman{{if lang}}}}}
 
| heavy    = Leaderboard class heavy.png{{!}}link={{{link|Heavy{{if lang}}}}}
 
| engy
 
| engie
 
| engineer = Leaderboard class engineer.png{{!}}link={{{link|Engineer{{if lang}}}}}
 
| medic    = Leaderboard class medic.png{{!}}link={{{link|Medic{{if lang}}}}}
 
| sniper  = Leaderboard class sniper.png{{!}}link={{{link|Sniper{{if lang}}}}}
 
| spy      = Leaderboard class spy.png{{!}}link={{{link|Spy{{if lang}}}}}
 
 
 
| announcer
 
| administrator = Leaderboard class administrator.png{{!}}link={{{link|Administrator}}}
 
 
 
| #default = Unknownweapon.png{{!}}link={{{link|{{{class|{{{1|Classes{{if lang}}}}}}}}}}}
 
 
 
}}|{{{icon-size|{{{size|20px}}}}}}|bottom]]</includeonly><noinclude>
 
 
{{doc begin}}
 
{{doc begin}}
 +
{{tl|Icon class}} is used to produce linked class icons. By default, the icon will link to the page of the specified class.
 
=== Usage ===
 
=== Usage ===
 
* {{tlx|icon class|Scout}} produces {{icon class|Scout}}
 
* {{tlx|icon class|Scout}} produces {{icon class|Scout}}
 +
* {{tlx|icon class|Scout|32px}} produces {{icon class|Scout|32px}}
 
* {{tlx|icon class|Scout|3=link=Scout achievements}} produces {{icon class|Scout|link=Scout achievements}}
 
* {{tlx|icon class|Scout|3=link=Scout achievements}} produces {{icon class|Scout|link=Scout achievements}}
* {{tlx|icon class|Scout|3=size=48px}} produces {{icon class|Scout|size=48px}}
 
  
 
=== Icons ===
 
=== Icons ===
 
{{icon class|Scout}} {{icon class|Soldier}} {{icon class|Pyro}} {{icon class|Demoman}} {{icon class|Heavy}} {{icon class|Engineer}} {{icon class|Medic}} {{icon class|Sniper}} {{icon class|Spy}}
 
{{icon class|Scout}} {{icon class|Soldier}} {{icon class|Pyro}} {{icon class|Demoman}} {{icon class|Heavy}} {{icon class|Engineer}} {{icon class|Medic}} {{icon class|Sniper}} {{icon class|Spy}}
 +
 +
=== Notes ===
 +
* The default icon size is 20px, and the icon will align to the bottom of the text.
 +
* The {{code|extra}} parameter can be used to pass additional options to the image (see [[w:Wikipedia:Extended image syntax]] for more info).
  
 
[[Category:Image insertion templates|Icon class]]
 
[[Category:Image insertion templates|Icon class]]
 
[[Category:Formatting templates|Icon class]]
 
[[Category:Formatting templates|Icon class]]
 
</noinclude>
 
</noinclude>

Revision as of 04:28, 30 July 2011

Documentation for Icon class

{{Icon class}} is used to produce linked class icons. By default, the icon will link to the page of the specified class.

Usage

Icons

Leaderboard class scout.png Leaderboard class soldier.png Leaderboard class pyro.png Leaderboard class demoman.png Leaderboard class heavy.png Leaderboard class engineer.png Leaderboard class medic.png Leaderboard class sniper.png Leaderboard class spy.png

Notes

  • The default icon size is 20px, and the icon will align to the bottom of the text.
  • The extra parameter can be used to pass additional options to the image (see w:Wikipedia:Extended image syntax for more info).