Welcome to SmashWiki! Log in or create an account and join the community, and don't forget to read this first!
Notices
SmashWiki will be experiencing a server migration on April 16th, 2025, expected to begin at 7:00 am (EDT) and lasting for up to 12 hours. The wiki may be entirely unavailable during that time.

Template:Button: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(let's actually use the new stuff, don't need to wait for all consoles to be done)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[Image: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||&#32;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-dark}}|link={{#if:{{{l|}}}|{{{l}}}|{{{2}}}{{#ifeq:{{lc:{{#sub:{{{2}}}|-3}}}}|pad||{{#ifeq:{{lc:{{#sub:{{{2}}}|-5}}}}|stick||&#32;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}}

Latest revision as of 15:41, May 20, 2024

This template displays a button and links to its page. Examples:

  • {{Button|N64|A}} = A
  • {{Button|GCN|Control Stick|R-S|s=32px}} = Control Stick
  • {{Button|Wii|2}} = 2
  • {{Button|WCC|ZL|l=Z button}} = ZL
  • {{Button|3DS|Circle Pad}} = 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