Template:GameIcon: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "class=("?)invert\b([^-])" to "class=$1invert-dark$2")
 
(16 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{#switch:{{lc:{{{1|}}}}}
<includeonly>{{#switch:{{lc:{{{1|}}}}}
|ssb64|ssb|64=[[Image:SSB64 Icon.png|{{{2|16px}}}|link=Super Smash Bros.]]
|ssb64|ssb|64=[[File:SSB64 Icon.png|{{{2|16px}}}|link=Super Smash Bros.|Super Smash Bros.]]
|ssbm|melee=[[Image:SSBM Icon.png|{{{2|16px}}}|link=Super Smash Bros. Melee]]
|ssbm|melee=[[File:SSBM Icon.png|{{{2|16px}}}|link=Super Smash Bros. Melee|class=invert-dark|Super Smash Bros. Melee]]
|ssbb|brawl=[[Image:SSBB Icon.png|{{{2|16px}}}|link=Super Smash Bros. Brawl]]
|ssbb|brawl=[[File:SSBB Icon.png|{{{2|16px}}}|link=Super Smash Bros. Brawl|Super Smash Bros. Brawl]]
|ssb4|4|ssb4-both=[[Image:SSB4 Icon.png|{{{2|16px}}}|link=Super Smash Bros. 4]]
|ssb4|4|ssb4-both=[[File:SSB4 Icon.png|{{{2|16px}}}|link=Super Smash Bros. 4|Super Smash Bros. 4]]
|ssb4-wiiu|ssb4-wii-u|ssb4-u=[[Image:SSB4-U Icon.png|{{{2|16px}}}|link=Super Smash Bros. for Wii U]]
|ssb4-wiiu|ssb4-wii-u|ssb4-u|wiiu|wii-u=[[File:SSB4-U Icon.png|{{{2|16px}}}|link=Super Smash Bros. for Wii U|Super Smash Bros. for Wii U]]
|ssb4-3ds|ssb4-3=[[Image:SSB4-3 Icon.png|{{{2|16px}}}|link=Super Smash Bros. for Nintendo 3DS]]
|ssb4-3ds|ssb4-3|3ds=[[File:SSB4-3 Icon.png|{{{2|16px}}}|link=Super Smash Bros. for Nintendo 3DS|Super Smash Bros. for Nintendo 3DS]]
|smashwiki|sw=[[Image:Favicon.png|link=]]
|ssbu|ultimate=[[File:SSBU Icon.png|{{{2|16px}}}|link=Super Smash Bros. Ultimate|class=invert-dark|Super Smash Bros. Ultimate]]
|[[Image:SmashBrosSymbol.png|{{{2|16px}}}|link=]]}}<noinclude>
|ssbpm|pm=[[File:PM Icon.png|{{{2|16px}}}|link=Project M|Project M]]
 
|ssbp+|p+=[[File:P+ Icon.png|{{{2|16px}}}|link=Project+|Project+]]
==Usage==
|smashwiki|sw=[[File:Favicon.png|link=|SmashWiki]]
 
|[[File:SmashBrosSymbol.svg|{{{2|16px}}}|link=|class=invert-dark|Other]]}}</includeonly><noinclude>{{/doc}} [[Category:Meta-templates]]</noinclude>
This template is used to put icons beside items in the [[Template:News|news template]]. By giving it appropriate abbreviations, it will show an icon with an appropriate link. It can also be given a size; 16px is the default.
 
{|class="wikitable"
|-
!Icon!!Input
|-
|[[Image:SSB64 Icon.png|16px|link=Super Smash Bros.]]||ssb64, ssb, 64
|-
|[[Image:SSBM Icon.png|16px|link=Super Smash Bros. Melee]]||ssbm, melee
|-
|[[Image:SSBB Icon.png|16px|link=Super Smash Bros. Brawl]]||ssbb, brawl
|-
|[[Image:SSB4 Icon.png|16px|link=Super Smash Bros. 4]]||ssb4, 4
|-
|[[Image:SSB4-U Icon.png|16px|link=Super Smash Bros. for Wii U]]||ssb4-wiiu, ssb4-wii-u, ssb4-u
|-
|[[Image:SSB4-3 Icon.png|16px|link=Super Smash Bros. for Nintendo 3DS]]||ssb-3ds, ssb4-3
|-
|[[Image:Favicon.png|link=]]||smashwiki, sw
|-
|[[Image:SmashBrosSymbol.png|16px|link=]]||Other<noinclude>
|}
 
</noinclude>

Latest revision as of 13:31, May 20, 2024

{{GameIcon}} is used to put icons beside items in the news template. It is also used in other places, such as infoboxes. By giving it appropriate abbreviations, it will show an icon with an appropriate link. It can also be given a size; 16px is the default.

Usage
Icon Input
Super Smash Bros. ssb64, ssb, 64
Super Smash Bros. Melee ssbm, melee
Super Smash Bros. Brawl ssbb, brawl
Super Smash Bros. 4 ssb4, 4
Super Smash Bros. for Wii U ssb4-wiiu, ssb4-wii-u, ssb4-u, wiiu, wii-u
Super Smash Bros. for Nintendo 3DS ssb4-3ds, ssb4-3, 3ds
Super Smash Bros. Ultimate ssbu, ultimate
Project M ssbpm, pm
Project+ ssbp+, p+
SmashWiki smashwiki, sw
Other Other