Template:Key: Difference between revisions
Jump to navigation
Jump to search
MetalManeMc (talk | contribs) (Created first draft of template to test with Options) |
mNo edit summary |
||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><kbd style=" | ||
text-shadow: 0 1px 0 #444; | |||
| caps lock = ⮸ Caps Lock | 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; | |||
">{{#switch: {{lc:{{{1}}}}} | |||
| caps lock = ⮸ Caps Lock | |||
| control = Ctrl | | control = Ctrl | ||
| shift = ⇧ Shift | | shift = ⇧ Shift | ||
Line 24: | Line 34: | ||
| page up = ⇞ Page Up | | page up = ⇞ Page Up | ||
| page down = ⇟ Page Down | | page down = ⇟ Page Down | ||
| {{{1}}} | | home = ↖ Home | ||
}}</kbd></includeonly><noinclude>{{documentation|content=Creates a visual representation of a key | | space =    Space    | ||
| {{{1}}}}}</kbd></includeonly><noinclude>{{documentation|content=Creates a visual representation of a key | |||
== Examples == | == Examples == | ||
; Wikitext | ;Wikitext | ||
<pre> | <pre> | ||
{{Key|Page | {{Key|Page down}} | ||
</pre> | </pre> | ||
; Result | ; Result | ||
{{Key| | {{Key|Page down}} | ||
[[Category: Templates]] | [[Category: Templates]] | ||
Line 43: | Line 54: | ||
"1": { | "1": { | ||
"label": "Key", | "label": "Key", | ||
"description": "The key to input", | "description": "The key to input.", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"description": "Adds a visual representation of a key", | "description": "Adds a visual representation of a key.", | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||
}}</noinclude> | }}</noinclude> |
Latest revision as of 21:15, 2 June 2024
Template documentation
Creates a visual representation of a key
Examples
- Wikitext
{{Key|Page down}}
- Result
⇟ Page Down
Template data
Adds a visual representation of a key.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Key | 1 | The key to input. | String | required |