Template:Key/doc: 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
m (9 revisions: Importing from Templates Wiki)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:

{{SPW|is not on|name=Key}}
;Description
==Description==
:This template creates a button via CSS to represent a key press on a keyboard.
This template creates a button image to represent a key press on a keyboard.

;Syntax
==Syntax==
:Type <code>{{t|key}}</code> somewhere.
Type <code>{{t|key}}</code> somewhere. Template will accept the keys listed below, as well as all number and letter keys.
;Sample output

:<code><nowiki>{{key|return}}</nowiki></code> gives...
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==
<code><nowiki>{{key|return}}</nowiki></code> produces:
:{{key|return}}
:{{key|return}}


<code><nowiki>{{key|ctrl|shift|C}}</nowiki></code> produces:
:;General PC
:{{key|ctrl|shift|C}}

==Keys available==

:''General PC''
::-Return = {{Key|-Return}}
::-Return = {{Key|-Return}}
::^Control = {{Key|^Control}}
::^Control = {{Key|^Control}}
Line 51: Line 60:
::up = {{Key|up}}
::up = {{Key|up}}
::win = {{Key|win}}
::win = {{Key|win}}

:
:;Left & right analog sticks
:''Left & right analog sticks''
::l-up = {{Key|l-up}}
::l-up = {{Key|l-up}}
::l up = {{Key|l up}}
::l up = {{Key|l up}}
Line 69: Line 78:
::l-sw = {{Key|l-sw}}
::l-sw = {{Key|l-sw}}
::l sw = {{Key|l sw}}
::l sw = {{Key|l sw}}

:
::r-up = {{Key|r-up}}
::r-up = {{Key|r-up}}
::r up = {{Key|r up}}
::r up = {{Key|r up}}
Line 86: Line 95:
::r-sw = {{Key|r-sw}}
::r-sw = {{Key|r-sw}}
::r sw = {{Key|r sw}}
::r sw = {{Key|r sw}}

:
:;PlayStation
:''PlayStation''
::ps x = {{Key|ps x}}
::ps x = {{Key|ps x}}
::ex = {{Key|ex}}
::ex = {{Key|ex}}
Line 96: Line 105:
::ps t = {{Key|ps t}}
::ps t = {{Key|ps t}}
::triangle = {{Key|triangle}}
::triangle = {{Key|triangle}}

:
:;Nintendo 64 & GameCube
:''Nintendo 64 & GameCube''
::c-up = {{Key|c-up}}
::c-up = {{Key|c-up}}
::c up = {{Key|c up}}
::c up = {{Key|c up}}
Line 115: Line 124:
::c sw = {{Key|c sw}}
::c sw = {{Key|c sw}}


==Related templates==
;Origin
:{{t|key/core}} contains the code upon which {{t|key}} functions. If you plan on copying this template to another wiki, be sure to copy that as well.

==Origin==
:Based on [[wikipedia:Template:Key press|Template:Key press]] at [[wikipedia:|Wikipedia]].<includeonly>
:Based on [[wikipedia:Template:Key press|Template:Key press]] at [[wikipedia:|Wikipedia]].<includeonly>
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>

Latest revision as of 17:47, 23 February 2019

Description[edit source]

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

Syntax[edit source]

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[edit source]

{{key|return}} produces:

⏎ Return

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

^ Ctrl+⇧ Shift+C

Keys available[edit source]

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[edit source]

{{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[edit source]

Based on Template:Key press at Wikipedia.