44,430
edits
(Bah.) |
(New documentation style.) |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{{1}}} {{#if:{{{v|}}}|{{{v}}} }}icon.png|link={{{1}}}|{{#if:{{{nosize|}}}||{{{3|x24px}}}}}]]{{#if:{{{2|}}}| [[{{{n|{{{1}}}}}}]]}}</includeonly><noinclude> | <includeonly>[[File:{{{1}}} {{#if:{{{v|}}}|{{{v}}} }}icon.png|link={{{1}}}|{{#if:{{{nosize|}}}||{{{3|x24px}}}}}]]{{#if:{{{2|}}}| [[{{{1}}}|{{{n|{{{1}}}}}}]]}}</includeonly><noinclude> | ||
==Info== | ==Info== | ||
Line 5: | Line 5: | ||
===Parameters=== | ===Parameters=== | ||
==Parameters== | |||
{| class = "wikitable" | |||
! Parameter || Mandatory || Default || Purpose || Detailed description | |||
|- | |||
! 1 | |||
| '''Yes''' || || Subject || Name of the subject's article. | |||
|- | |||
! 2 | |||
| No || || Text link || If this has a value, like "y", the subject's name will also appear in front of the icon, with a link to the subject's article. | |||
|- | |||
! 3 | |||
| No || x24px || Size || Use this to set the icon to a size of your liking. | |||
|- | |||
! v | |||
| No || || Version || If there is more than one version of the subject, use this parameter to specify it. This is valid for icon filenames that follow the following pattern: "<subject> <version> icon.png". | |||
|- | |||
! n | |||
| No || || Display name || If you want a different display name for the text link, specify it here. | |||
|- | |||
! nosize | |||
| No || || Ignore "size" || If this parameter has a value, the icon size will not be changed from the original. | |||
|} | |||
===Examples=== | ==Template== | ||
{{icon|Swooping Snitchbug|y}} | <pre> | ||
{{icon|<subject>|<text link?>|<size>|v=<version>|n=<display name>|nosize=<no resize?>}} | |||
</pre> | |||
==Examples== | |||
{| class = "wikitable" | |||
! Code || Result | |||
|- | |||
| <pre>{{icon|Swooping Snitchbug}}</pre> | |||
| {{icon|Swooping Snitchbug}} | |||
|- | |||
| <pre>{{icon|Shoot|y|16px}}</pre> | |||
| {{icon|Shoot|y|16px}} | |||
|- | |||
| <pre>{{icon|Burgeoning Spiderwort|y|v=spicy|n=Spicy Burgeoning Spiderwort|nosize=y}}</pre> | |||
| {{icon|Burgeoning Spiderwort|y|v=spicy|n=Spicy Burgeoning Spiderwort|nosize=y}} | |||
|} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |