Template:Key: Difference between revisions
m (modifying to include key combinations) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Key/styles.css"/>{{ucfirst:{{{1|}}}}}<!-- | <includeonly><templatestyles src="Key/styles.css"/><span class="template_key">{{ucfirst:{{{1|}}}}}<!-- | ||
-->{{#if:{{{2|}}}|{{{chain first|{{{chain|+}}}}}}{{ucfirst:{{{2}}}}}}}<!-- | -->{{#if:{{{2|}}}|{{{chain first|{{{chain|+}}}}}}{{ucfirst:{{{2}}}}}}}<!-- | ||
-->{{#if:{{{3|}}}|{{{chain second|{{{chain|+}}}}}}{{ucfirst:{{{3}}}}}}}<!-- | -->{{#if:{{{3|}}}|{{{chain second|{{{chain|+}}}}}}{{ucfirst:{{{3}}}}}}}<!-- | ||
Line 8: | Line 8: | ||
-->{{#if:{{{8|}}}|{{{chain seventh|{{{chain|+}}}}}}{{ucfirst:{{{8}}}}}}}<!-- | -->{{#if:{{{8|}}}|{{{chain seventh|{{{chain|+}}}}}}{{ucfirst:{{{8}}}}}}}<!-- | ||
-->{{#if:{{{9|}}}|{{{chain eighth|{{{chain|+}}}}}}{{ucfirst:{{{9}}}}}}}<!-- | -->{{#if:{{{9|}}}|{{{chain eighth|{{{chain|+}}}}}}{{ucfirst:{{{9}}}}}}}<!-- | ||
-->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{ucfirst:{{{10}}}}}}}</includeonly><noinclude> | -->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{ucfirst:{{{10}}}}}}}</span></includeonly><noinclude> | ||
This is the "{{PAGENAME}}" template. This template is used to imitate keyboard buttons. It should be transcluded in the following format: | This is the "{{PAGENAME}}" template. This template is used to imitate keyboard buttons. It should be transcluded in the following format: | ||
<pre> | <pre> |
Revision as of 21:10, 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}}