This template is protected from editing.
Difference between revisions of "Template:Icon class"
(Parameter now directly feeds into the code instead of going through a switch. Updated documentation.) |
(How bout dis - /me expects to have broken everything) |
||
Line 1: | Line 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> | + | <includeonly>[[File:Leaderboard class {{lc:{{{class|{{{1|unknown}}}}}}}}.png|link={{#ifeq:{{{link|{{{class|{{{1|Classes}}}}}}|"All classes"|Classes|{{{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. | {{tl|Icon class}} is used to produce linked class icons. By default, the icon will link to the page of the specified class. |
Revision as of 18:18, 16 August 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).