Template:Hotkey: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
(Created page with "<span style="background: #3e3e3e; border: 1px solid #a4a4a4; border-radius: 4px; width: 1px;"><small> {{{key}}} </small></span> <noinclude><br />This is used to disp...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="background: #3e3e3e; border: 1px solid #a4a4a4; border-radius: 4px; width: 1px;"><small>&nbsp;{{{key}}}&nbsp;</small></span>
<span style="background: #101555; border-bottom: 2px solid #7b97b0; border-right: 1px solid #7b97b0; padding: 2px; border-radius: 4px; width: 1px;"><small>&nbsp;{{{1}}}&nbsp;</small></span><noinclude>{{Hotkey/doc}}[[Category:Templates]]</noinclude>
<noinclude><br />This is used to display hotkeys from the game. The format to use this template is <code><nowiki>{{hotkey|key=HOTKEY_HERE}}</nowiki></code>.</noinclude>

Latest revision as of 19:22, 21 November 2021

 {{{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