Template:Button: Difference between revisions

m
the spans aren't needed because the images have titles
(Added iQue L button.)
m (the spans aren't needed because the images have titles)
Line 1: Line 1:
<includeonly><templatestyles src="Button/styles.css"/><span style="cursor:help">{{#switch:{{lc:{{{1}}}}}-{{lc:{{{2}}}}}
<includeonly><templatestyles src="Button/styles.css"/><span style="cursor:help">{{#switch:{{lc:{{{1}}}}}-{{lc:{{{2}}}}}
|nes-a=<span title="A Button">[[File:NES A.svg|{{{size|x16px}}}|link=|class=invert|A Button]]</span>
|nes-a=[[File:NES A.svg|{{{size|x16px}}}|link=|class=invert|A Button]]
|nes-b=<span title="B Button">[[File:NES B.svg|{{{size|x16px}}}|link=|class=invert|B Button]]</span>
|nes-b=[[File:NES B.svg|{{{size|x16px}}}|link=|class=invert|B Button]]
|nes-start=<span title="Start Button">[[File:NES Start.PNG|{{{size|x21px}}}|link=|class=invert|Start Button]]</span>
|nes-start=[[File:NES Start.PNG|{{{size|x21px}}}|link=|class=invert|Start Button]]
|nes-select=<span title="Select Button">[[File:NES Select.PNG|{{{size|x24px}}}|link=|class=invert|Select Button]]</span>
|nes-select=[[File:NES Select.PNG|{{{size|x24px}}}|link=|class=invert|Select Button]]
|nes-pad=<span title="+Control Pad">[[File:NES Pad.PNG|{{{size|x22px}}}
|nes-pad=[[File:NES Pad.PNG|{{{size|x22px}}}|link=|class=invert|+Control Pad]]
|gb-a=[[File:GB A.PNG|{{{size|x18px}}}|link=|class=invert|A Button]]
|gb-b=[[File:GB B.
|#default={{#switch:{{lc:{{{1}}}}}
|#default={{#switch:{{lc:{{{1}}}}}
|long=<span class="longbutton" style="font-size:{{{size|smaller}}};background:#eee" title="{{{title|{{{2|}}} button}}}">{{{2|}}}</span>
|long=<span class="longbutton" style="font-size:{{{size|smaller}}};background:#eee" title="{{{title|{{{2|}}} button}}}">{{{2|}}}</span>
|{{#if:{{{1|}}}|{{#switch:{{{2|{{lc:{{{1}}}}}}}}
|{{#if:{{{1|}}}|{{#switch:{{{2|{{lc:{{{1}}}}}}}}
|pad=<span title="+Control Pad">[[File:Def Pad.svg|{{{size|x16px}}}|link=|+Control Pad]]</span>
|pad=[[File:Def Pad.svg|{{{size|x16px}}}|link=|+Control Pad]]
|padup=<span title="+Control Pad up">[[File:Def Pad up.svg|{{{size|x16px}}}|link=|+Control Pad up]]</span>
|padup=[[File:Def Pad up.svg|{{{size|x16px}}}|link=|+Control Pad up]]
|padright=<span title="+Control Pad right">[[File:Def Pad right.svg|{{{size|x16px}}}|link=|+Control Pad right]]</span>
|padright=[[File:Def Pad right.svg|{{{size|x16px}}}|link=|+Control Pad right]]
|paddown=<span title="+Control Pad down">[[File:Def Pad down.svg|{{{size|x16px}}}|link=|+Control Pad down]]</span>
|paddown=[[File:Def Pad down.svg|{{{size|x16px}}}|link=|+Control Pad down]]
|padleft=<span title="+Control Pad left">[[File:Def Pad left.svg|{{{size|x16px}}}|link=|+Control Pad left]]</span>
|padleft=[[File:Def Pad left.svg|{{{size|x16px}}}|link=|+Control Pad left]]
|paddownup|padupdown=<span title="+Control Pad up or down">[[File:Def Pad updown.svg|{{{size|x16px}}}|link=|+Control Pad up or down]]</span>
|paddownup|padupdown=[[File:Def Pad updown.svg|{{{size|x16px}}}|link=|+Control Pad up or down]]
|padrightleft|padleftright=<span title="+Control Pad left or right">[[File:Def Pad leftright.svg|{{{size|x16px}}}|link=|+Control Pad left or right]]</span>
|padrightleft|padleftright=[[File:Def Pad leftright.svg|{{{size|x16px}}}|link=|+Control Pad left or right]]
|stick=<span title="Control Stick">[[File:Def Stick.svg|{{{size|x16px}}}|link=|Control Stick]]</span>
|stick=[[File:Def Stick.svg|{{{size|x16px}}}|link=|Control Stick]]
|a=<span title="A Button">[[File:Def A.svg|{{{size|x16px}}}|link=|A Button]]</span>
|a=[[File:Def A.svg|{{{size|x16px}}}|link=|A Button]]
|b=<span title="B Button">[[File:Def B.svg|{{{size|x16px}}}|link=|B Button]]</span>
|b=[[File:Def B.svg|{{{size|x16px}}}|link=|B Button]]
|x=<span title="X Button">[[File:Def X.svg|{{{size|x16px}}}|link=|X Button]]</span>
|x=[[File:Def X.svg|{{{size|x16px}}}|link=|X Button]]
|y=<span title="Y Button">[[File:Def Y.svg|{{{size|x16px}}}|link=|Y Button]]</span>
|y=[[File:Def Y.svg|{{{size|x16px}}}|link=|Y Button]]
|l=<span title="L Button">[[File:Def L.svg|{{{size|x16px}}}|link=|L Button]]</span>
|l=[[File:Def L.svg|{{{size|x16px}}}|link=|L Button]]
|r=<span title="R Button">[[File:Def R.svg|{{{size|x16px}}}|link=|R Button]]</span>
|r=[[File:Def R.svg|{{{size|x16px}}}|link=|R Button]]
|#default=<span class="roundbutton" title="{{{2|{{{1}}}}}} Button" style="padding:0 4px">{{{2|{{{1}}}}}}</span>
|#default=<span class="roundbutton" title="{{{2|{{{1}}}}}} Button" style="padding:0 4px">{{{2|{{{1}}}}}}</span>
}}}}}}}}</span></includeonly><noinclude>
}}}}}}}}</span></includeonly><noinclude>
==Usage==
==Usage==
This template is not case-sensitive.
This template is not case-sensitive.
{|align=center style=text-align:center;border-collapse:collapse cellpadding=3 border=1
{|align=center style=text-align:center;border-collapse:collapse cellpadding=3 border=1
!Code
!Code