Template:Key: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
m rem space |
m little bit more padding to make keys like "O" look better |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This template can be used to "draw" keys that the user must press. The text can be anything, but | This template can be used to "draw" keys that the user must press. The text can be anything, but should be written in UPPERCASE, even for single letters: | ||
<nowiki>{{key| | <nowiki>{{key|TAB}}</nowiki> | ||
{{key| | Examples: | ||
{{key|TAB}} {{key|SPACE}} | |||
Key combinations should use two templates, like so: | |||
{{key|SHIFT}}+{{key|X}} | |||
For special, often-used keys a few special templates exist: | For special, often-used keys a few special templates exist: | ||
{{key-enter}} {{key-space}} {{key-esc}} {{key-ctrl}} {{key-alt}} {{key-shift}} | {|border=1 cellspacing=0 cellpadding=8 | ||
|- | |||
!bgcolor=#ffdead|Template | |||
!bgcolor=#ffdead|Look | |||
|- | |||
|<nowiki>{{key-enter}}</nowiki> | |||
|{{key-enter}} | |||
|- | |||
|<nowiki>{{key-space}}</nowiki> | |||
|{{key-space}} | |||
|- | |||
|<nowiki>{{key-esc}}</nowiki> | |||
|{{key-esc}} | |||
|- | |||
|<nowiki>{{key-ctrl}}</nowiki> | |||
|{{key-ctrl}} | |||
|- | |||
|<nowiki>{{key-alt}}</nowiki> | |||
|{{key-alt}} | |||
|- | |||
|<nowiki>{{key-shift}}</nowiki> | |||
|{{key-shift}} | |||
</noinclude><includeonly><span style="background:#EFEFEF; color:black; padding: 0em 0. | |} | ||
[[Category:Templates|Keys]] | |||
</noinclude><includeonly><span style="background:#EFEFEF; color:black; padding: 0em 0.4em; border-top: 2px solid #CFCFCF; border-bottom: 4px solid #909090; border-left: 2px solid #BBBBBB; border-right: 3px solid #AAAAAA; font-size: 0.8em; margin-right: 2px; margin-left: 2px">{{{name|{{{1}}}}}}</span></includeonly> |
Latest revision as of 18:35, 12 June 2011
This template can be used to "draw" keys that the user must press. The text can be anything, but should be written in UPPERCASE, even for single letters:
{{key|TAB}}
Examples:
TAB SPACE
Key combinations should use two templates, like so:
SHIFT+X
For special, often-used keys a few special templates exist:
Template | Look |
---|---|
{{key-enter}} | ENTER |
{{key-space}} | SPACE |
{{key-esc}} | ESC |
{{key-ctrl}} | CTRL |
{{key-alt}} | ALT |
{{key-shift}} | SHIFT |