Difference between revisions of "Key"

From Sega Retro

Line 1: Line 1:
 
<includeonly>{{#vardefine:keycolour|{{#switch:{{uc:{{{1|}}}}}
 
<includeonly>{{#vardefine:keycolour|{{#switch:{{uc:{{{1|}}}}}
 +
| ESC
 
| F1
 
| F1
 
| F2
 
| F2
Line 39: Line 40:
 
| RIGHT=2080ff
 
| RIGHT=2080ff
 
| #default=ffffff
 
| #default=ffffff
}}}}{{#vardefine:text|{{#switch:{{uc:{{{1|}}}}}
+
}}}}{{#vardefine:weight|}}{{#vardefine:text|{{#switch:{{uc:{{{1|}}}}}
| UP=
+
| UP=🡩
| DOWN=
+
| DOWN=🡫
| LEFT=
+
| LEFT=🡨
| RIGHT=
+
| RIGHT=🡪
 
| WIN
 
| WIN
 
| WINDOWS=⊞
 
| WINDOWS=⊞
 
| COMMAND=⌘
 
| COMMAND=⌘
| #default={{{1|}}}
+
| #default={{{1|}}}{{#vardefine:weight|bold}}
}}}}<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
+
}}}}<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:{{#var:weight}}; 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}}

Revision as of 10:55, 22 September 2021

Template for keyboard keys

{{Key|A}}

 A 

Also some special cases:

 Ctrl  +  Alt  +  Delete  etc.

 🡩   🡫   🡨   🡪   ⊞   ⌘ 

You might need to add more.