This high-risk/high-traffic page is protected.

Template:ArticleIcons: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(This wasn't here yet?)
No edit summary
 
(19 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{ArticleIcons|protected=highrisk}}</noinclude><div id="ArticleIcons" style="position:absolute;z-index:100;right:10px;top:-30px;float:right">
<includeonly><div>{{#if:{{{protected|}}}|<indicator name="01-protected">[[File:{{#switch:{{{protected|}}}|vandalism=ProtectIconRed.png{{!}}This page is protected due to repeated vandalism.|highrisk=ProtectIconYellow.png{{!}}This high-risk/high-traffic page is protected.|editwar=ProtectIconGreen.png{{!}}This page is protected due to an edit war.|preemptive=ProtectIconBlue.png{{!}}This page is protected to preempt unconstructive edits.|ProtectIconGrey.png{{!}}This page is protected {{{protected}}}.}}|24px|link=SmashWiki:Protection policy]]</indicator>|{{#if:{{PROTECTIONLEVEL:edit}}|<indicator name="02-autoprotected">[[File:ProtectIconGrey.png|This page is {{PROTECTIONLEVEL:edit}}-protected{{#ifeq:{{PROTECTIONEXPIRY:edit}}|infinity||<nowiki/> until {{#time:F j, Y|{{PROTECTIONEXPIRY:edit}}}}}}.|24px|link=SmashWiki:Protection policy]]</indicator>}}}}{{#if:{{{series|}}}|<indicator name="05-series">[[File:SSB Icon.png|24px|link=Super Smash Bros. (series)|Super Smash Bros. series]]</indicator>}}{{#if:{{{ssb64|}}}{{{ssb|}}}{{{allgames|}}}|<indicator name="10-ssb64">[[File:SSB64 Icon.png|24px|link=Super Smash Bros.]]</indicator>}}{{#if:{{{ssbm|}}}{{{melee|}}}{{{allgames|}}}|<indicator name="11-ssbm">[[File:SSBM Icon.png|24px|link=Super Smash Bros. Melee|class=invert]]</indicator>}}{{#if:{{{ssbb|}}}{{{brawl|}}}{{{allgames|}}}|<indicator name="12-ssbb">[[File:SSBB Icon.png|24px|link=Super Smash Bros. Brawl]]</indicator>}}{{#if:{{{ssb4|}}}{{{ssb4-both|}}}{{{allgames|}}}|<indicator name="13-ssb4">[[File:SSB4 Icon.png|24px|link=Super Smash Bros. 4]]</indicator>}}{{#if:{{{ssb4-3ds|}}}{{{ssb4-3|}}}|<indicator name="14-ssb4-3ds">[[File:SSB4-3 Icon.png|24px|link=Super Smash Bros. for Nintendo 3DS]]</indicator>}}{{#if:{{{ssb4-wiiu|}}}{{{ssb4-wii-u|}}}{{{ssb4-u|}}}|<indicator name="15-ssb4-wiiu">[[File:SSB4-U Icon.png|24px|link=Super Smash Bros. for Wii U]]</indicator>}}{{#if:{{{ssbu|}}}{{{ultimate|}}}{{{allgames|}}}|<indicator name="16-ssbu">[[File:SSBU Icon.png|24px|link=Super Smash Bros. Ultimate|class=invert]]</indicator>}}{{#if:{{{pm|}}}{{{projectm|}}}|<indicator name="40-pm">[[File:PM Icon.png|24px|link=Project M]]</indicator>}}{{#if:{{{p+|}}}{{{project+|}}}|<indicator name="41-p+">[[File:P+ Icon.png|24px|link=Project+]]</indicator>}}{{#if:{{{unofficial|}}}|<indicator name="50-unofficial">[[File:Unofficial Lingo.png|24px|link=Category:Unofficial lingo|This article's title is unofficial.]]</indicator>[[Category:Unofficial lingo]]}}{{#if:{{{competitive|}}}|<indicator name="60-competitive">[[File:Competitive.png|24px|link=Tournament]]</indicator>}}{{#if:{{{online|}}}{{{wifi|}}}|<indicator name="70-online">[[File:OnlineIcon.svg|24px|link=Online play|class=invert]]</indicator>}}{{#if:{{{fa|{{{featured|}}}}}}|<indicator name="99-fa">[[File:Featured.png|24px|link=SmashWiki:Featured content|This is a featured article. Click for more information.]]</indicator>[[Category:Featured articles]]}}</div></includeonly><noinclude>{{ArticleIcons|protected=highrisk}} {{/doc}} [[Category:General wiki templates]]</noinclude>
{|cellpadding="0" cellspacing="1" style="background:transparent;float:right"
{{#if:{{{protected|}}}|
{{!}}[[Image:{{#switch:{{{protected|}}}|vandalism=ProtectIconRed.png{{!}}This page is protected due to repeated vandalism.|highrisk=ProtectIconYellow.png{{!}}This high-risk/high-traffic page is protected.|editwar=ProtectIconGreen.png{{!}}This page is protected due to an edit war.|preemptive=ProtectIconBlue.png{{!}}This page is protected to preempt unconstructive edits.|ProtectIconGrey.png{{!}}This page is protected {{{protected}}}.}}|24px|link=SW:PROTECT]]}}{{#if:{{{series|}}}|
{{!}}{{!}}[[Image:SSB Icon.png|24px|link=Super Smash Bros. (series)|Super Smash Bros. series]]}}{{#if:{{{ssb64|}}}{{{ssb|}}}{{{allgames|}}}|
{{!}}{{!}}[[Image:SSB64 Icon.png|24px|link=Super Smash Bros.]]}}{{#if:{{{ssbm|}}}{{{melee|}}}{{{allgames|}}}|
{{!}}{{!}}[[Image:SSBM Icon.png|24px|link=Super Smash Bros. Melee]]}}{{#if:{{{ssbb|}}}{{{brawl|}}}{{{allgames|}}}|
{{!}}{{!}}[[Image:SSBB Icon.png|24px|link=Super Smash Bros. Brawl]]}}{{#if:{{{ssb4|}}}{{{ssb4-both|}}}{{{allgames|}}}|
{{!}}{{!}}[[Image:SSB4 Icon.png|24px|link=Super Smash Bros. 4]]}}{{#if:{{{ssb4-3ds|}}}{{{ssb4-3|}}}|
{{!}}{{!}}[[Image:SSB4-3 Icon.png|24px|link=Super Smash Bros. for Nintendo 3DS]]}}{{#if:{{{ssb4-wiiu|}}}{{{ssb4-wii-u|}}}{{{ssb4-u|}}}|
{{!}}{{!}}[[Image:SSB4-U Icon.png|24px|link=Super Smash Bros. for Wii U]]}}{{#if:{{{ssbu|}}}{{{ultimate|}}}<!--{{{allgames|not yet}}}-->|
{{!}}{{!}}[[Image:SSBU Icon.png|24px|link=Super Smash Bros. Ultimate]]}}{{#if:{{{ssb5|}}}{{{ssbswitch|}}}{{{ssb-switch|}}}{{{allgames|}}}|
{{!}}{{!}}[[Image:Deprecated.png|24px|link=]][[Category:Articles with deprecated code]]}}{{#if:{{{pm|}}}{{{projectm|}}}|
{{!}}{{!}}[[Image:PM Icon.png|24px|link=Project M]]}}{{#if:{{{unofficial|}}}|
{{!}}{{!}}[[Image:Unofficial Lingo.png|24px|link=Category:Unofficial lingo|This article's title is unofficial.]]<includeonly>[[Category:Unofficial lingo]]</includeonly>}}{{#if:{{{competitive|}}}|
{{!}}{{!}}[[Image:Competitive.png|24px|link=Tournament]]}}{{#if:{{{fa|{{{featured|}}}}}}|
{{!}}{{!}}[[Image:Featured.png|24px|link=SmashWiki:Featured content|This is a featured article. Click for more information.]]<includeonly>[[Category:Featured Articles]]</includeonly>}}
|}</div><noinclude>{{/doc}}[[Category:General wiki templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 19:56, June 10, 2023

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:

  • series
  • ssb or ssb64
  • ssbm or melee
  • ssbb or brawl
  • ssb4 or ssb4-both
  • ssb4-3ds or ssb4-3
  • ssb4-wiiu or ssb4-wii-u or ssb4-u
  • ssbu or ultimate
  • pm or projectm
  • p+ or project+
  • unofficial (for unofficial lingo)
  • competitive
  • fa or featured
  • 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.

The allgames parameter will show icons for all released games (though this might not be done immediately on release, in order to give time to update its usages). Note that allgames and series are not equivalent:

  • allgames is for elements that happen to appear in every game, but are not an inherent part of Smash Bros. For example, every game has an appearance by the Beam Sword, the Pokémon universe, and Master Hand, but there could easily be a Smash Bros. game without these things.
  • series is for elements that are fundamental to the nature of Smash Bros., and the game cannot exist without them. For example, it is impossible to make a Smash Bros. game without concepts such as knockback, port priority, and pausing.

Protected icon

The protected icon should be given certain values other than anything generic, such as "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.