Template:Button: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(just one title, {{{2}}}, per talk page)
m (del redundant alt attribute (unnamed image parameter does both title and alt))
Line 1: Line 1:
<includeonly>[[Image:ButtonIcon-{{{1}}}-{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}.png|{{{s|20px}}}|alt={{{2}}}|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>[[Image:ButtonIcon-{{{1}}}-{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}.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:


*<code><nowiki>{{Button|N64|A}}</nowiki></code> = {{Button|N64|A}}
*<code><nowiki>{{Button|N64|A}}</nowiki></code> = {{Button|N64|A}}

Revision as of 02:13, July 21, 2016

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