Template:Key press: Difference between revisions
Jump to navigation
Jump to search
m (typo) |
(Use Template:Key press/core for improved rendering, extend to 10 keys) |
||
Line 1: | Line 1: | ||
{{key press/core|{{{1|}}}}}<!-- | |||
--> | -->{{#if:{{{2|}}}|{{{chain first|{{{chain|+}}}}}}{{key press/core|{{{2}}}}}}}<!-- | ||
-->{{#if: {{{ | -->{{#if:{{{3|}}}|{{{chain second|{{{chain|+}}}}}}{{key press/core|{{{3}}}}}}}<!-- | ||
-->{{#if:{{{4|}}}|{{{chain third|{{{chain|+}}}}}}{{key press/core|{{{4}}}}}}}<!-- | |||
-->{{#if:{{{5|}}}|{{{chain fourth|{{{chain|+}}}}}}{{key press/core|{{{5}}}}}}}<!-- | |||
-->{{#if:{{{6|}}}|{{{chain fifth|{{{chain|+}}}}}}{{key press/core|{{{6}}}}}}}<!-- | |||
-->{{#if:{{{7|}}}|{{{chain sixth|{{{chain|+}}}}}}{{key press/core|{{{7}}}}}}}<!-- | |||
-->{{#if:{{{8|}}}|{{{chain seventh|{{{chain|+}}}}}}{{key press/core|{{{8}}}}}}}<!-- | |||
-->{{#if:{{{9|}}}|{{{chain eighth|{{{chain|+}}}}}}{{key press/core|{{{9}}}}}}}<!-- | |||
-->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{key press/core|{{{10}}}}}}}<noinclude> | |||
--> | |||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
This template is used to illustrate key presses. Optionally, a combination of up to | This template is used to illustrate key presses. Optionally, a combination of up to ten keys can be used. | ||
== Usage == | == Usage == |
Revision as of 21:41, 19 August 2014
The following template description is not displayed when the template is inserted in an article.
Goal
This template is used to illustrate key presses. Optionally, a combination of up to ten keys can be used.
Usage
{{key press|key|key|key|key}}
For upper-case letters please use a combination of the shift key and an upper-case letter ({{key press|Shift|C}}
) and for lower-case letters please use an upper-case letter ({{key press|C}}
).
Examples
{{key press|G}} and {{key press|Shift|G}} will retract and extend the landing gear.
G and ⇧ Shift+G will retract and extend the landing gear.
Known issues
- For some captions workarounds will be required. Two of them are for example the captions | and = which would require you to insert
{{!}}
or{{=}}
instead of|
or=
, since using a "|" or "=" inside a template will break it.
- If a line breaks right before the template the leftmost key border stays on that line.
To do
Add functionality template magic so that:
{{key press|Alt|0|1|7|6}}
Would render Alt+0176 (Might not be possible).