Difference between revisions of "Button"

From Sega Retro

 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span style="display: inline-block; background-color:#{{{bgcolour|}}}{{{bgcolor|}}}; color:#{{{textcolour|}}}{{{textcolor|}}}; text-align:center; min-width:15px; font-size:12px; line-height:15px; box-shadow: 1px 1px #000; border-radius:100px; font-weight:{{{weight|bold}}}; vertical-align:middle; margin-left:1px; margin-right:1px;">{{#ifeq:{{#len:{{{text|}}}}}|1|{{{text|}}}|&nbsp;{{{text|}}}&nbsp;}}</span></includeonly><noinclude>
+
<includeonly><span style="display:none;">{{#vardefine:bgcolour|{{{bgcolour|}}}{{{bgcolor|}}}}}{{#vardefine:fgcolour|{{{textcolour|}}}{{{textcolor|}}}}}{{#switch:{{{game|}}}
 +
<!--game specific colours-->
 +
|vf3={{#switch:{{{text|}}}
 +
  |P|K={{#vardefine:bgcolour|F6F600}}{{#vardefine:fgcolour|000000}}
 +
  |G={{#vardefine:bgcolour|00F000}}{{#vardefine:fgcolour|000000}}
 +
  |E={{#vardefine:bgcolour|D51C00}}{{#vardefine:fgcolour|FFFFFF}}
 +
}}
 +
}}{{#if:{{#var:bgcolour}}||{{#vardefine:bgcolour|2080FF}}}}{{#if:{{#var:fgcolour}}||{{#vardefine:fgcolour|FFFFFF}}}}</span><span title="{{{name|}}}" style="display: inline-block; background-color:#{{#var:bgcolour}}; color:#{{#var:fgcolour}}; text-align:center; min-width:15px; font-size:12px; line-height:15px; box-shadow: 1px 1px #000; border-radius:100px; font-weight:{{{weight|bold}}}; vertical-align:middle; margin-left:1px; margin-right:1px;margin-bottom:1px;">{{#ifeq:{{#len:{{{text|}}}}}|1|{{{text|}}}|&nbsp;{{{text|}}}&nbsp;}}</span>{{clearvar|bgcolour|fgcolour}}</includeonly><noinclude>
  
 
Template for buttons.
 
Template for buttons.
Line 5: Line 12:
 
asfasdfd sad asd s{{Button|text=A|bgcolour=D51C00|textcolour=FFFFFF}} df sdfgdasg adgf {{Button|text=A|bgcolour=D51C00|textcolour=FFFFFF}}
 
asfasdfd sad asd s{{Button|text=A|bgcolour=D51C00|textcolour=FFFFFF}} df sdfgdasg adgf {{Button|text=A|bgcolour=D51C00|textcolour=FFFFFF}}
  
{{Button|text=A|bgcolour=D51C00|textcolour=FFFFFF}}{{Button|text=ABCDEF|bgcolour=D51C00|textcolour=FFFFFF}}{{Button|text=RB|bgcolour=D51C00|textcolour=FFFFFF}}
+
{{Button|text=A|bgcolour=D51C00|textcolour=FFFFFF}}{{Button|text=ABCDEF|bgcolour=D51C00|textcolour=FFFFFF}}{{Button|text=RB|bgcolour=D51C00|textcolour=FFFFFF|name=Right back at you}}
  
{{A}}{{B}}{{C}}{{X}}{{Y}}{{Z}}{{up}}{{down}}{{left}}{{right}}{{upleft}}{{upright}}{{downleft}}{{downright}}{{select}}{{run}}
+
{{A}}{{B}}{{C}}{{X}}{{Y}}{{Z}}{{up}}{{down}}{{left}}{{right}}{{upleft}}{{upright}}{{downleft}}{{downright}}{{start}}{{select}}{{run}}
 +
 
 +
*[[Virtua Fighter 3]]: {{Button|text=P|game=vf3}}{{Button|text=K|game=vf3}}{{Button|text=G|game=vf3}}{{Button|text=E|game=vf3}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 14:44, 2 March 2023


Template for buttons.

asfasdfd sad asd sA df sdfgdasg adgf A

A ABCDEF  RB 

ABCXYZUpDownLeftRightUp-leftUp-rightDown-leftDown-right START  SELECT  RN