Template:Key: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
* {{key|Alt|1}} is produced by <code><nowiki>{{key|Alt|1}}</nowiki></code> | * {{key|Alt|1}} is produced by <code><nowiki>{{key|Alt|1}}</nowiki></code> | ||
* {{key|Ctrl|Alt|Del}} is produced by <code><nowiki>{{key|Ctrl|Alt|Del}}</nowiki></code> | * {{key|Ctrl|Alt|Del}} is produced by <code><nowiki>{{key|Ctrl|Alt|Del}}</nowiki></code> | ||
* [[Options#Hotkeys|{{key|I}}]] is produced by <code><nowiki>[[Options#Hotkeys|{{key|I}}]]</nowiki></code> | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 21:19, 18 June 2024
This is the "Key" template. This template is used to imitate keyboard buttons. It should be transcluded in the following format:
{{key|<first button>|<second>|<third>|<etc.>}}
Parameters
- 1 - 10 (unnamed parameter)
- Keyboard button, separated each entry into its own button (e.g. Ctrl, Alt, I, S, 1, etc.)
Examples
- 1 is produced by
{{key|1}}
- I is produced by
{{key|I}}
- Alt+1 is produced by
{{key|Alt|1}}
- Ctrl+Alt+Del is produced by
{{key|Ctrl|Alt|Del}}
- I is produced by
[[Options#Hotkeys|{{key|I}}]]