Template:Hotkey2: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<span style="background: #0e684b; border-bottom: 2px solid #83a89c; border-right: 1px solid #83a89c; padding: 2px; border-radius: 4px; width: 1px;"><small>&nbsp;{{{1}}}&nbsp;</small></span><noinclude><br />This is just an alternate version of the [[:Template:Hotkey|hotkey]] template. Like the other one, this is used to display hotkeys from the game. The format to use this template is <code><nowiki>{{hotkey2|HOTKEY_HERE}}</nowiki></code>.
<span style="background: #0e684b; border-bottom: 2px solid #83a89c; border-right: 1px solid #83a89c; padding: 2px; border-radius: 4px; width: 1px;"><small>&nbsp;{{{1}}}&nbsp;</small></span><noinclude>{{Hotkey2/doc}}[[Category:Templates]]</noinclude>
For example, on Firefox browsers, you can hit refresh by hitting {{hotkey2|Ctrl+F5}}.
[[Category:Templates]]
</noinclude>

Latest revision as of 18:52, 21 November 2021

 {{{1}}} 

Template Documentation

Description

This template is used to display unchangeable 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 simply as "hotkey", which is the same thing, but the squares are a blue color instead of cyan. Hotkey2 is used for game keys that cannot be changed by the player, while the other template is used for standard hotkeys that can be changed by the player.

Syntax

{{hotkey2|<KEY>}}

Examples

Typing {{hotkey2|A}} outputs...  A 
Typing {{hotkey2|Ctrl+B}} outputs...  Ctrl+B 
Typing {{hotkey2|'''F+A'''}} with bold formatting outputs...  F+A 
Typing {{hotkey2|{{color|'''H'''|yellow}}}} with bold formatting and a color template outputs...  H 
Lastly, typing {{hotkey2|{{glow|'''H'''|lime|yellow}}}} with bold formatting, green text with a yellow glow outputs...  H