Template:Hotkey: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="background: # | <span style="background: #101555; border-bottom: 2px solid #7b97b0; border-right: 1px solid #7b97b0; padding: 2px; border-radius: 4px; width: 1px;"><small> {{{1}}} </small></span><noinclude>{{Hotkey/doc}}[[Category:Templates]]</noinclude> | ||
[[Category:Templates]] | |||
</noinclude> |
Latest revision as of 18:22, 21 November 2021
{{{1}}}
This template is used to display hotkeys in the form of little rounded squares with the key labels inside them. This is just to add a pleasant aesthetic to displaying hotkeys on this wiki. There is another template known as "hotkey2", which is the same thing, but the squares are a cyan color instead of blue. Hotkey2 is used for game keys that cannot be changed by the player.
{{hotkey|<KEY>}}
Typing {{hotkey|A}}
outputs... A
Typing {{hotkey|Ctrl+B}}
outputs... Ctrl+B
Typing {{hotkey|'''F+A'''}}
with bold formatting outputs... F+A
Typing {{hotkey|{{color|'''H'''|yellow}}}}
with bold formatting and a color template outputs... H
Lastly, typing {{hotkey|{{glow|'''H'''|lime|yellow}}}}
with bold formatting, green text with a yellow glow outputs... H