Template:Key: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
m rem space
Tels (talk | contribs)
rename param to "name"
Line 2: Line 2:
This template can be used to "draw" keys that the user must press. The text can be anything, but special keys should be written in UPPERCASE, and key combinations should use two templates, like so:
This template can be used to "draw" keys that the user must press. The text can be anything, but special keys should be written in UPPERCASE, and key combinations should use two templates, like so:


  <nowiki>{{key|txt=ENTER}}</nowiki>
  <nowiki>{{key|name=ENTER}}</nowiki>


{{key|txt=ENTER}} {{key|txt=SPACE}} {{key|txt=SHIFT}}+{{key|txt=X}}
{{key|name=ENTER}} {{key|name=SPACE}} {{key|name=SHIFT}}+{{key|name=X}}


For special, often-used keys a few special templates exist:
For special, often-used keys a few special templates exist:
Line 10: Line 10:
{{key-enter}} {{key-space}} {{key-esc}} {{key-ctrl}} {{key-alt}} {{key-shift}}
{{key-enter}} {{key-space}} {{key-esc}} {{key-ctrl}} {{key-alt}} {{key-shift}}


</noinclude><includeonly><span style="background:#EFEFEF; color:black; padding: 0em 0.2em; border-top: 2px solid #CFCFCF; border-bottom: 4px solid #909090; border-left: 2px solid #BBBBBB; border-right: 3px solid #AAAAAA; font-size: 0.8em;">{{{txt|ENTER}}}</span></includeonly>
</noinclude><includeonly><span style="background:#EFEFEF; color:black; padding: 0em 0.2em; border-top: 2px solid #CFCFCF; border-bottom: 4px solid #909090; border-left: 2px solid #BBBBBB; border-right: 3px solid #AAAAAA; font-size: 0.8em;">{{{name|ENTER}}}</span></includeonly>

Revision as of 12:34, 13 October 2007

This template can be used to "draw" keys that the user must press. The text can be anything, but special keys should be written in UPPERCASE, and key combinations should use two templates, like so:

{{key|name=ENTER}}

ENTER SPACE SHIFT+X

For special, often-used keys a few special templates exist:

ENTER SPACE ESC CTRL ALT SHIFT