Template:Hotkey

From Songs of Syx Wiki
Revision as of 18:22, 21 November 2021 by Zippy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

 {{{1}}} 

Template Documentation

Description

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.

Syntax

{{hotkey|<KEY>}}

Examples

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