Template:Button: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (added more examples so it has examples for every supported controller)
m (alt attribute same as given span title attribute)
Line 1: Line 1:
<includeonly><span title="{{{2}}}">[[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}}}}}}]]</span></includeonly><noinclude>This template displays a button and links to its page. Examples:
<includeonly><span title="{{{2}}}">[[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}}}}}}]]</span></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}}
Line 6: Line 6:
*<code><nowiki>{{Button|WCC|ZL|l=Z button}}</nowiki></code> = {{Button|WCC|ZL|l=Z button}}
*<code><nowiki>{{Button|WCC|ZL|l=Z button}}</nowiki></code> = {{Button|WCC|ZL|l=Z button}}
*<code><nowiki>{{Button|3DS|Circle Pad}}</nowiki></code> = {{Button|3DS|Circle Pad}}
*<code><nowiki>{{Button|3DS|Circle Pad}}</nowiki></code> = {{Button|3DS|Circle Pad}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 23:56, July 9, 2016

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