Template:Key: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (Robot: Cosmetic changes)
No edit summary
Line 1: Line 1:
<includeonly><span id=ssh style="font-size:.9em;background-color:inherit; border: 1pt outset #2f2cb8;border-radius:2pt; -moz-border-radius:2pt; -webkit-border-radius:2pt; o-border-radius:2pt; text-align:center; vertical-align:middle; padding:0px 2px 1px 2px;">{{{1|Enter}}}</span></includeonly>
<includeonly><span class=ssh style="font-size:.9em;background-color:inherit; border: 1pt outset #2f2cb8;border-radius:2pt; -moz-border-radius:2pt; -webkit-border-radius:2pt; o-border-radius:2pt; text-align:center; vertical-align:middle; padding:0px 2px 1px 2px;">{{{1|Enter}}}</span></includeonly>
<noinclude>{{Documentation}}[[Category:Coding utility templates]]</noinclude>
<noinclude>{{Documentation}}[[Category:Coding utility templates]]</noinclude>
{{key}} ehllo

Revision as of 14:14, 20 February 2012

Instructions for {{Key}}
{{key}} is a template most useful in giving instructions about how to use the wiki. It gives the user a way to make it absolutely obvious that you're referring to a key which needs to be pressed on a computer keyboard.

Usage

Without any modifiers, the template defaults to presenting the "enter" key. So the following sequence:
{{key}}
will produce Enter

Template loop detected: Template:Key ehllo

If you want to specify another key, you'd enter it as an optional parameter. Thus,
{{key|Tab}}
results in Tab

Template loop detected: Template:Key ehllo

Known issues

Line breaks are not properly accepted by the template, so some keys can't be closely represented at the present time. For instance:
{{key|Page<br>Down}}
will render as Page
Down

Template loop detected: Template:Key ehllo

Though undesirable, this is not deemed to be a terribly high-priority item to fix, since most instruction on this wiki would not require referencing keys that are ordinarily seen on keyboards on two lines.

Enter

Template loop detected: Template:Key ehllo ehllo