Difference between revisions of "Template talk:Key Txt"

From Rizon Wiki
Jump to navigation Jump to search
(Template Introduction and Usage)
(No difference)

Revision as of 10:53, 7 September 2020

Key Txt template draws a keyboard key with a label, passed as a parameter. Values passed are alphanumeric. Symbol may aslo be added to the key label by invoking 'Unicode' template; however, some might need to be escaped as shown in the following examples.

Code Result
{{Key Txt|F1}} F1
{{Key Txt|Ctrl}} + {{Key Txt|Alt}} + {{Key Del}} Ctrl + Alt +  Del
{{Key Txt|Alt}} + {{Key Txt|F4}} Alt + F4
{{Key Win}} + {{Key Txt|R}}  Win + R
{{Key Txt|<nowiki>*</nowiki>}} *
{{Key Txt|<nowiki>#</nowiki>}} #
{{Key Txt|<nowiki>:</nowiki>}} :
{{Key Txt|{{Unicode|<nowiki>|</nowiki>}}}} |
{{Key Txt|{{Unicode|♠}}}}
{{Key Txt|{{Unicode|→}}}}
Pre-made common keys templates
Code Result
{{Key Enter}}  Enter
{{Key Shift}}  Shift
{{Key Caps Lock}}  Caps Lock
{{Key Del}}  Del
{{Key Delete}}  Delete
{{Key Backspace}}  Backspace
{{Key Tab}}  Tab
{{Key Win}}  Win
{{Key Windows}}  Windows
{{Key Menu}}  Menu
{{Key Cmd}}  Cmd
{{Key Command}}  Command
{{Key Home}}  Home
{{Key End}}  End
{{Key PgUp}}  PgUp
{{Key PageUp}}  PageUp
{{Key PgDown}}  PgDown
{{Key PageDown}}  PageDown


This template is adopted from Wikipdeia 'Key press/core' template, with some modifications.

--FPR (talk) 14:52, 7 September 2020 (UTC)