Difference between revisions of "Key"

From Sega Retro

 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="display:inline-block;">
+
<includeonly>{{#vardefine:keycolour|{{#switch:{{uc:{{{1|}}}}}
{|style="min-width:60px; max-width:60px;"
+
| ESC
|style="text-align:center; padding:4px;" font-size:8pt;"|{{{label|}}}
+
| F1
|-
+
| F2
|style="text-align:center; padding:4px;"|
+
| F3
{|
+
| F4
|style="text-align:center; padding:0px;"|<div style="font-size:8pt; display:inline-block;">{{{3|}}}</div>&nbsp;&nbsp;&nbsp;<div style="font-size:7pt; display:inline-block;">{{{4|}}}</div>
+
| F5
|-
+
| F6
|style="text-align:center; padding:0px;"|<b><div style="font-size:14pt; display:inline-block;">{{{1|}}}</div>&nbsp;&nbsp;&nbsp;<div style="font-size:10pt; display:inline-block;">{{{2|}}}</div></b>
+
| F7
|}
+
| F8
|}
+
| F9
</div><noinclude>[[Category:Sega Retro templates]]
+
| F10
{{Key
+
| F11
|1
+
| F12
|2
+
| SHIFT
|3
+
| CTRL
|4
+
| ALT
|label=whoop
+
| SPACE
}}
+
| ENTER
</noinclude>
+
| RETURN
 +
| BACKSPACE
 +
| TAB
 +
| INSERT
 +
| HOME
 +
| DELETE
 +
| END
 +
| PAGE UP
 +
| PAGE DOWN
 +
| NUMLOCK
 +
| CAPSLOCK
 +
| SCROLLLOCK
 +
| PRINTSCREEN
 +
| PAUSE
 +
| HELP
 +
| UNDO
 +
| RESTORE
 +
| WINDOWS
 +
| BREAK
 +
| COMMAND=D00000
 +
| UP
 +
| DOWN
 +
| LEFT
 +
| RIGHT=FFFFFF
 +
| #default=2080ff
 +
}}}}{{#vardefine:textcolour|{{#switch:{{uc:{{{1|}}}}}
 +
| UP
 +
| DOWN
 +
| LEFT
 +
| RIGHT=2080ff
 +
| #default=ffffff
 +
}}}}{{#vardefine:weight|}}{{#vardefine:text|{{#switch:{{uc:{{{1|}}}}}
 +
| UP=🡩
 +
| DOWN=🡫
 +
| LEFT=🡨
 +
| RIGHT=🡪
 +
| WIN
 +
| WINDOWS=⊞
 +
| COMMAND=
 +
| #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:{{#var:weight}}; vertical-align:middle;">{{#ifeq:{{#len:{{#var:text}}}}|1|{{#var:text}}|&nbsp;{{#var:text}}&nbsp;}}</span></includeonly><noinclude>Template for keyboard keys
 +
<pre>{{Key|A}}</pre>
 +
{{Key|A}}
 +
 
 +
Also some special cases:
 +
 
 +
{{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.
 +
 
 +
[[Category:Button templates]]</noinclude>

Latest revision as of 19:00, 22 May 2024

Template for keyboard keys

{{Key|A}}

A

Also some special cases:

 Ctrl  +  Alt  +  Delete  etc.

🡩 🡫 🡨 🡪

You might need to add more.