Difference between revisions of "Template:Keypress/doc"

From MidrangeWiki
Jump to: navigation, search
m (gah, fix own edit typo, add closing cat bracket)
m (add example for optional 2nd parameter)
Line 4: Line 4:
 
A template for illustrating keystrokes.
 
A template for illustrating keystrokes.
 
==Examples==
 
==Examples==
 +
* <code><nowiki>{{keypress|Ctrl|Alt}}</nowiki></code> produces {{keypress|Ctrl|Alt}}
 
* <code><nowiki>{{keypress|Alt]}}+{{keypress|P}}</nowiki></code> produces {{keypress|Alt}}+{{keypress|P}}
 
* <code><nowiki>{{keypress|Alt]}}+{{keypress|P}}</nowiki></code> produces {{keypress|Alt}}+{{keypress|P}}
 
* <code><nowiki>{{keypress|Ctrl}}+{{keypress|Alt}}+{{keypress|Del}}</nowiki></code> produces {{keypress|Ctrl}}+{{keypress|Alt}}+{{keypress|Del}}
 
* <code><nowiki>{{keypress|Ctrl}}+{{keypress|Alt}}+{{keypress|Del}}</nowiki></code> produces {{keypress|Ctrl}}+{{keypress|Alt}}+{{keypress|Del}}

Revision as of 19:38, 24 February 2008

48px This is the template documentation page for {{Keypress}}.
It is not intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

Usage

A template for illustrating keystrokes.

Examples

  • {{keypress|Ctrl|Alt}} produces Ctrl+Alt
  • {{keypress|Alt]}}+{{keypress|P}} produces Alt+P
  • {{keypress|Ctrl}}+{{keypress|Alt}}+{{keypress|Del}} produces Ctrl+Alt+Del

Unicode icons can be used alongside the text:

  • ⇧ Shift
  • ↵ Enter
  • ⌘ Cmd
  • ⌥ Opt
  • Tab ⇆