Template:Key: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>LostInRiverview
(Setting template so that it can accept a string of up to 7 keys in a key combination)
sims>LostInRiverview
No edit summary
Line 1: Line 1:
{{key/core|{{{1}}}}}{{#if:{{{2|}}}|+{{key/core|{{{2}}}}}{{#if:{{{3|}}}|+{{key/core|{{{3}}}}}{{#if:{{{4|}}}|+{{key/core|{{{4}}}}}{{#if:{{{5|}}}|+{{key/core|{{{5}}}}}{{#if:{{{6|}}}|+{{key/core|{{{6}}}}}{{#if:{{{7|}}}|+{{key/core|{{{7}}}}}|}}|}}|}}|}}|}}|}}
{{key/core|{{{1}}}}}{{#if:{{{2|}}}|+{{key/core|{{{2}}}}}{{#if:{{{3|}}}|+{{key/core|{{{3}}}}}{{#if:{{{4|}}}|+{{key/core|{{{4}}}}}{{#if:{{{5|}}}|+{{key/core|{{{5}}}}}{{#if:{{{6|}}}|+{{key/core|{{{6}}}}}{{#if:{{{7|}}}|+{{key/core|{{{7}}}}}|}}|}}|}}|}}|}}|}}<noinclude>{{Documentation}}</noinclude>

Revision as of 03:03, 15 December 2014

{{{1}}}

Template documentation (View · Edit · History · Purge)

Description

This template creates a button image to represent a key press on a keyboard.

Syntax

Type {{key}} somewhere. Template will accept the keys listed below, as well as all number and letter keys.

Up to seven keys can be strung together in one instance of the template. Each key is displayed as a separate button connected with a plus sign (+), as shown below

Sample output

{{key|return}} produces:

⏎ Return

{{key|ctrl|shift|C}} produces:

^ Ctrl+⇧ Shift+C

Keys available

General PC
-Return = -Return
^Control = ^Control
alt = ⎇ Alt
asterisk = *
backspace = ⌫ Backspace
break = ⎊ Break
caps = caps
cmd = ⌘ Cmd
colon = :
command = ⌘ Command
compose = ⎄ Compose
ctrl = ^ Ctrl
del = ⌦ Del
down =
end = ⇲ End
-enter = ↵ Enter
enter = ⌅ Enter
equals = =
esc = ⎋ Esc
hash = #
home = ⇱ Home
ins = ⌤ Ins
left =
menu = ≣ Menu
num = num
opt = ⌥ Opt
option = ⌥ Option
pause = ⎉ Pause
pgdn = ⇟ PgDn
pgup = ⇞ PgUp
pipe = |
prt scr= ⎙ PrtScr
prtsc = ⎙ PrtScr
prtscr = ⎙ PrtScr
return = ⏎ Return
right =
scroll = scroll
semicolon = ;
shift = ⇧ Shift
tab = Tab ↹
up =
win = ⊞ Win
Left & right analog sticks
l-up = L↑
l up = L↑
l-down = L↓
l down = L↓
l-left = L←
l left = L←
l-right = L→
l right = L→
l-ne = L↗
l ne = L↗
l-se = L↘
l se = L↘
l-nw = L↖
l nw = L↖
l-sw = L↙
l sw = L↙
r-up = R↑
r up = R↑
r-down = R↓
r down = R↓
r-left = R←
r left = R←
r-right = R→
r right = R→
r-ne = R↗
r ne = R↗
r-se = R↘
r se = R↘
r-nw = R↖
r nw = R↖
r-sw = R↙
r sw = R↙
PlayStation
ps x = ×
ex = ×
ps c =
circle =
ps s =
square =
ps t =
triangle =
Nintendo 64 & GameCube
c-up = C↑
c up = C↑
c-down = C↓
c down = C↓
c-left = C←
c left = C←
c-right = C→
c right = C→
c-ne = C↗
c ne = C↗
c-se = C↘
c se = C↘
c-nw = C↖
c nw = C↖
c-sw = C↙
c sw = C↙

Related templates

{{key/core}} contains the code upon which {{key}} functions. If you plan on copying this template to another wiki, be sure to copy that as well.

Origin

Based on Template:Key press at Wikipedia.

Visit Template:Key/doc to edit this text! (How does this work?) (Refresh this text - why?)