Template:ArticleIcons/doc: Difference between revisions
No edit summary |
(→Usage) |
||
Line 18: | Line 18: | ||
*<code>fa</code> or <code>featured</code> | *<code>fa</code> or <code>featured</code> | ||
*<code>protected</code> | *<code>protected</code> | ||
Activating any of these parameters with any argument (such as <code>ssb=y</code>) will show its icon, with pipes (<code>|</code>) between each parameter. Examples: | |||
*<code><nowiki>{{ArticleIcons|ssb=y}}</nowiki></code> | *<code><nowiki>{{ArticleIcons|ssb=y}}</nowiki></code> | ||
*<code><nowiki>{{ArticleIcons|ssbm= | *<code><nowiki>{{ArticleIcons|ssbm=yes|ssbb=yes}}</nowiki></code> | ||
*<code><nowiki>{{ArticleIcons|brawl= | *<code><nowiki>{{ArticleIcons|brawl=1|featured=1}}</nowiki></code> | ||
The order of icons will always be the same, no matter what order they are written in. | The order of icons will always be the same, no matter what order they are written in. | ||
===Protected icon=== | ===Protected icon=== | ||
The protected icon should be given certain values other than | The protected icon should be given certain values other than anything generic, such as "y": | ||
*[[Image:ProtectIconRed.png|24px]] <code>vandalism</code> | *[[Image:ProtectIconRed.png|24px]] <code>vandalism</code> | ||
*[[Image:ProtectIconYellow.png|24px]] <code>highrisk</code> | *[[Image:ProtectIconYellow.png|24px]] <code>highrisk</code> |
Revision as of 05:18, June 12, 2012
This template is intended for use in most SmashWiki articles. It is used to display a series of icons in the top right corner of the article that quickly point out certain things about its content:
- denotes that the article relates to Super Smash Bros. (the original, Nintendo 64, game).
- indicates that the article relates to Super Smash Bros. Melee.
- shows that the article relates to Super Smash Bros. Brawl.
- shows that the article relates to Super Smash Bros. 4.
- means that the article's title is unofficial.
- is how featured articles are marked.
- shows that the page is protected.
Articles may make use of zero, one, many, or all of these icons as necessary.
Usage
The basic template, {{ArticleIcons}}
, will not display anything. Parameters are used to tell the template which icons to display:
ssb
orssb64
ssbm
ormelee
ssbb
orbrawl
ssb4
unofficial
fa
orfeatured
protected
Activating any of these parameters with any argument (such as ssb=y
) will show its icon, with pipes (|
) between each parameter. Examples:
{{ArticleIcons|ssb=y}}
{{ArticleIcons|ssbm=yes|ssbb=yes}}
{{ArticleIcons|brawl=1|featured=1}}
The order of icons will always be the same, no matter what order they are written in.
Protected icon
The protected icon should be given certain values other than anything generic, such as "y":
These values produce different icon colours and rollover text relating to the protection type. If anything else is entered, it is used as a custom reason.
Other features
- The icons link to an appropriate article or category when clicked on.
- Adding the unofficial lingo icon automatically places the article into Category:Unofficial lingo, while the featured article icon puts it in Category:Featured Articles.
Improvements
If you have ideas for other icons, post on Template talk:ArticleIcons.