Difference between revisions of "Key"

From Sega Retro

 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#vardefine:keycolour|{{#switch:{{uc:{{{1|}}}}}
 
<includeonly>{{#vardefine:keycolour|{{#switch:{{uc:{{{1|}}}}}
 +
| ESC
 
| F1
 
| F1
 
| F2
 
| F2
Line 25: Line 26:
 
| END
 
| END
 
| PAGE UP
 
| PAGE UP
| PAGE DOWN=D00000
+
| PAGE DOWN
 +
| NUMLOCK
 +
| CAPSLOCK
 +
| SCROLLLOCK
 +
| PRINTSCREEN
 +
| PAUSE
 +
| HELP
 +
| UNDO
 +
| RESTORE
 +
| WINDOWS
 +
| BREAK
 +
| 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: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>
 
<pre>{{Key|A}}</pre>
 
{{Key|A}}
 
{{Key|A}}
Line 34: Line 65:
  
 
{{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>

Latest revision as of 18: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.