Template:Icon: Difference between revisions
Jump to navigation
Jump to search
m (Hurr.) |
mNo edit summary |
||
Line 20: | Line 20: | ||
! v | ! 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". | | 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". | ||
|- | |||
! l | |||
| No || || Link || If the link to the article is different from the icon's name, specify it here. | |||
|- | |- | ||
! n | ! n | ||
Line 33: | Line 36: | ||
==Template== | ==Template== | ||
<pre> | <pre> | ||
{{icon|<subject>|<text link?>|<size>|v=<version>|n=<display name>|nosize=<no resize?>}} | {{icon|<subject>|<text link?>|<size>|v=<version>|l=<link>|n=<display name>|nosize=<no resize?>}} | ||
</pre> | </pre> | ||
Revision as of 15:53, November 5, 2014
Info
This template shows the icon of a subject, with the icon linking to said subject. You can also have it quickly give a link to the subject in plain text, right after the icon.
Parameters
Parameters
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". | |
l | No | Link | If the link to the article is different from the icon's name, specify it here. | |
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. |
The following special cases exist:
- If the subject is "Pikmin (game)", the mouse-over text for the image will show "Pikmin".
Template
{{icon|<subject>|<text link?>|<size>|v=<version>|l=<link>|n=<display name>|nosize=<no resize?>}}
Examples
Code | Result |
---|---|
{{icon|Swooping Snitchbug}} |
|
{{icon|Shoot|y|16px}} |
Shoot |
{{icon|Burgeoning Spiderwort|y|v=spicy|n=Spicy Burgeoning Spiderwort|nosize=y}} |
Spicy Burgeoning Spiderwort |