Actions

Template

Difference between revisions of "Button"

From NEC Retro

(Created page with "<includeonly><span style="display: inline-block; background-color:#{{{bgcolour|}}}{{{bgcolor|}}}; color:#{{{textcolour|}}}{{{textcolor|}}}; text-align:center; font-size:12px;...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><span style="display: inline-block; background-color:#{{{bgcolour|}}}{{{bgcolor|}}}; color:#{{{textcolour|}}}{{{textcolor|}}}; text-align:center; 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;">&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|D51C00}}}}{{#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 6: Line 13:
  
 
{{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}}
 +
 +
{{I}}{{II}}{{III}}{{IV}}{{V}}{{VI}}{{up}}{{down}}{{left}}{{right}}{{upleft}}{{upright}}{{downleft}}{{downright}}{{select}}{{run}}
 +
 +
{{Punch}}{{Kick}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:08, 5 October 2023


Template for buttons.

asfasdfd sad asd sA df sdfgdasg adgf A

A ABCDEF  RB 

 SELECT  RUN 

PK