Template:ArticleIcons/doc: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 5: Line 5:
*[[Image:Unofficial Lingo.png|24px]] means that the article's title is [[:Category:Unofficial lingo|unofficial]].
*[[Image:Unofficial Lingo.png|24px]] means that the article's title is [[:Category:Unofficial lingo|unofficial]].
*[[Image:Featured.png|24px]] is how [[SmashWiki:Featured content|featured articles]] are marked.
*[[Image:Featured.png|24px]] is how [[SmashWiki:Featured content|featured articles]] are marked.
*[[Image:ProtectIconGrey.png|24px]] shows that the page is [[SW:PROTECT|protected]].
Articles may make use of zero, one, many, or all of these icons as necessary.
Articles may make use of zero, one, many, or all of these icons as necessary.


Line 14: Line 15:
*<code>unofficial</code>
*<code>unofficial</code>
*<code>fa</code> or <code>featured</code>
*<code>fa</code> or <code>featured</code>
*<code>protected</code>
Setting one of these parameters to "y" (such as <code>ssb=y</code>) will show its icon, with pipes (<code>|</code>) between each parameter. Examples:
Setting one of these parameters to "y" (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>
Line 19: Line 21:
*<code><nowiki>{{ArticleIcons|brawl=y|featured=y}}</nowiki></code>
*<code><nowiki>{{ArticleIcons|brawl=y|featured=y}}</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===
The protected icon should be given certain values other than just "y":
*[[Image:ProtectIconRed.png|24px]] <code>vandalism</code>
*[[Image:ProtectIconYellow.png|24px]] <code>highrisk</code>
*[[Image:ProtectIconGreen.png|24px]] <code>editwar</code>
*[[Image:ProtectIconBlue.png|24px]] <code>preemptive</code>
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==
==Other features==

Revision as of 18:12, October 6, 2011

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:

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 or ssb64
  • ssbm or melee
  • ssbb or brawl
  • unofficial
  • fa or featured
  • protected

Setting one of these parameters to "y" (such as ssb=y) will show its icon, with pipes (|) between each parameter. Examples:

  • {{ArticleIcons|ssb=y}}
  • {{ArticleIcons|ssbm=y|ssbb=y}}
  • {{ArticleIcons|brawl=y|featured=y}}

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 just "y":

  • ProtectIconRed.png vandalism
  • ProtectIconYellow.png highrisk
  • ProtectIconGreen.png editwar
  • ProtectIconBlue.png preemptive

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

Improvements

If you have ideas for other icons, post on Template talk:ArticleIcons.