Template:Button: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Text replacement - "\[\[(:)?Image:" to "[[$1File:") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[File:ButtonIcon-{{{1}}}-{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}.{{#switch:{{{1}}}|N64|GCN=svg|#default=png}}|{{{s|20px}}}|link={{#if:{{{l|}}}|{{{l}}}|{{{2}}}{{#ifeq:{{lc:{{#sub:{{{2}}}|-3}}}}|pad||{{#ifeq:{{lc:{{#sub:{{{2}}}|-5}}}}|stick|| button}}}}}}|{{{2}}}]]</includeonly><noinclude>This template displays a button and links to its page. Examples: | <includeonly>[[File:ButtonIcon-{{{1}}}-{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}.{{#switch:{{{1}}}|N64|GCN=svg|#default=png}}|{{{s|20px}}}|class={{#ifeq:{{{1}}}|Switch|invert}}|link={{#if:{{{l|}}}|{{{l}}}|{{{2}}}{{#ifeq:{{lc:{{#sub:{{{2}}}|-3}}}}|pad||{{#ifeq:{{lc:{{#sub:{{{2}}}|-5}}}}|stick|| button}}}}}}|{{{2}}}]]</includeonly><noinclude>This template displays a button and links to its page. Examples: | ||
*<code><nowiki>{{Button|N64|A}}</nowiki></code> = {{Button|N64|A}} | *<code><nowiki>{{Button|N64|A}}</nowiki></code> = {{Button|N64|A}} |
Revision as of 21:35, June 28, 2021
This template displays a button and links to its page. Examples:
{{Button|N64|A}}
={{Button|GCN|Control Stick|R-S|s=32px}}
={{Button|Wii|2}}
={{Button|WCC|ZL|l=Z button}}
={{Button|3DS|Circle Pad}}
=
A slow .png to .svg conversion is in progress. This template assumes .png but will switch to .svg for these consoles:
- N64
- GCN