Template:Hotkey: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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><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>.
<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>
For example, on Firefox browsers, you can hit refresh by hitting {{hotkey|Ctrl+F5}}.
[[Category:Templates]]
</noinclude>

Latest revision as of 18: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