Template:Key: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
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><kbd style="
<kbd style={{#var:style}}>{{#switch: {{lc:{{{1}}}}}
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;
">{{#switch: {{lc:{{{1}}}}}
| caps lock = ⮸ Caps Lock
| caps lock = ⮸ Caps Lock
| control = Ctrl
| control = Ctrl
Line 25: Line 35:
| page down = ⇟ Page Down
| page down = ⇟ Page Down
| home = ↖ Home
| home = ↖ Home
| space = &numsp;&numsp;&numsp;Space&numsp;&numsp;&numsp;
| {{{1}}}}}</kbd></includeonly><noinclude>{{documentation|content=Creates a visual representation of a key
| {{{1}}}}}</kbd></includeonly><noinclude>{{documentation|content=Creates a visual representation of a key


== Examples ==
== Examples ==
; Wikitext
;Wikitext
<pre>
<pre>
{{Key|Page down}}
{{Key|Page down}}

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Key1

The key to input.

Stringrequired