Template:Key: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
m works,so add left too
Tels (talk | contribs)
use the first parameter as the default for the 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:
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:


  <nowiki>{{key|name=TAB}}</nowiki>
  <nowiki>{{key|TAB}}</nowiki>


Examples:
Examples:


{{key|name=TAB}} {{key|name=SPACE}}  
{{key|TAB}} {{key|SPACE}}  


Key combinations should use two templates, like so:
Key combinations should use two templates, like so:


{{key|name=SHIFT}}+{{key|name=X}}
{{key|SHIFT}}+{{key|X}}


For special, often-used keys a few special templates exist:
For special, often-used keys a few special templates exist:
Line 46: Line 46:
|}
|}
[[Category:Templates|Keys]]
[[Category:Templates|Keys]]
</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; margin-right: 2px; margin-left: 2px">{{{name|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; margin-right: 2px; margin-left: 2px">{{{name|{{{1}}}}}}</span></includeonly>

Revision as of 22:57, 11 November 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:

{{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