Template:Key: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine: style|"text-shadow: 0 1px 0 #444;background-color: #383838;box-shadow: 0 1px rgba(0,0,0,0.2), 0 0 0 2px #444 inset;text-align: center;font-size: 80%;font-weight: 500;border: 1px solid;border-radius: 2px;padding: 0.1em 0.4em;border-color: #000;"}}
<includeonly>{{#vardefine: style|"text-shadow: 0 1px 0 #444;background-color: #383838;box-shadow: 0 1px rgba(0,0,0,0.2), 0 0 0 2px #444 inset;text-align: center;font-size: 80%;font-weight: 500;border: 1px solid;border-radius: 2px;padding: 0.1em 0.4em;border-color: #000;"}}
<kbd style={{#var:style}}>{{#switch: {{{1}}}
<kbd style={{#var:style}}>{{#switch: {{lc:{{{1}}}}}
| caps lock = ⮸ Caps Lock',
| caps lock = ⮸ Caps Lock',
| control = Ctrl
| control = Ctrl
Line 30: Line 30:
; Wikitext
; Wikitext
<pre>
<pre>
{{Key|page down}}
{{Key|Page down}}
</pre>
</pre>


; Result
; Result
{{Key|page down}}
{{Key|Page down}}


[[Category: Templates]]
[[Category: Templates]]
Line 43: Line 43:
"1": {
"1": {
"label": "Key",
"label": "Key",
"description": "The key to input. Special keys must entered in lowercase.",
"description": "The key to input.",
"type": "string",
"type": "string",
"required": true
"required": true

Navigation menu