This template is protected from editing.
Difference between revisions of "Template:Icon class"
(adjusted image baseline) |
(Parameter now directly feeds into the code instead of going through a switch. Updated documentation.) |
||
Line 1: | Line 1: | ||
− | <includeonly>[[File: | + | <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> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | }}|{{{ | ||
{{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}} | ||
− | |||
=== 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
{{icon class|Scout}}
produces{{icon class|Scout|32px}}
produces{{icon class|Scout|link=Scout achievements}}
produces
Icons
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).