Difference between revisions of "Key"

From Sega Retro

Line 25: Line 25:
 
| END
 
| END
 
| PAGE UP
 
| PAGE UP
| PAGE DOWN=D00000
+
| PAGE DOWN
 +
| WINDOWS
 +
| COMMAND=D00000
 +
| UP
 +
| DOWN
 +
| LEFT
 +
| RIGHT=FFFFFF
 
| #default=2080ff
 
| #default=2080ff
}}}}<span style="display: inline-block; background-color:#{{#var:keycolour}}; color:#FFFFFF; min-width:15px; height=15px; text-align:center; font-size:12px; line-height:15px; box-shadow: 1px 1px #000; font-weight:bold; vertical-align:middle;">&nbsp;{{{1|}}}&nbsp;</span></includeonly><noinclude>Template for keyboard keys
+
}}}}{{#vardefine:textcolour|{{#switch:{{uc:{{{1|}}}}}
 +
| UP
 +
| DOWN
 +
| LEFT
 +
| RIGHT=2080ff
 +
| #default=ffffff
 +
}}}}{{#vardefine:text|{{#switch:{{uc:{{{1|}}}}}
 +
| UP=↑
 +
| DOWN=↓
 +
| LEFT=←
 +
| RIGHT=→
 +
| WIN
 +
| WINDOWS=⊞
 +
| COMMAND=⌘
 +
| #default={{{1|}}}
 +
}}}}<span style="display: inline-block; background-color:#{{#var:keycolour}}; color:#{{#var:textcolour}}; min-width:15px; height=15px; text-align:center; font-size:12px; line-height:15px; box-shadow: 1px 1px #000; font-weight:bold; vertical-align:middle;">&nbsp;{{#var:text}}&nbsp;</span></includeonly><noinclude>Template for keyboard keys
 
<pre>{{Key|A}}</pre>
 
<pre>{{Key|A}}</pre>
 
{{Key|A}}
 
{{Key|A}}
Line 34: Line 55:
  
 
{{Key|Ctrl}} + {{Key|Alt}} + {{Key|Delete}} etc.
 
{{Key|Ctrl}} + {{Key|Alt}} + {{Key|Delete}} etc.
 +
 +
{{Key|up}} {{Key|down}} {{Key|left}} {{Key|right}} {{Key|windows}} {{Key|command}}
  
 
You might need to add more.
 
You might need to add more.
  
 
[[Category:Button templates]]</noinclude>
 
[[Category:Button templates]]</noinclude>

Revision as of 13:51, 21 September 2021

Template for keyboard keys

{{Key|A}}

 A 

Also some special cases:

 Ctrl  +  Alt  +  Delete  etc.

 ↑   ↓   ←   →   ⊞   ⌘ 

You might need to add more.