Template:Key/doc: Difference between revisions

no edit summary
sims>Roguebfl
(Created page with ';Description :This template is breating a link that looks like a button that defaults to Enter. ;Syntax :Type <code>{{t|key}}</code> somewhere. ;Sample output :<code><nowiki>{{ke…')
 
No edit summary
 
(12 intermediate revisions by 6 users not shown)
Line 1:
;Description
:This template is breating a link that looks like a button that defaults to Enter.
;Syntax
:Type <code>{{t|key}}</code> somewhere.
;Sample output
:<code><nowiki>{{key|return}}</nowiki></code> gives...
:{{templatename|return}}
 
==Description==
;Origin
This template creates a button image to represent a key press on a keyboard.
:Based on [http://www.thinkwiki.org/wiki/Template:Key Template:Key] at [http://www.thinkwiki.org/ ThinkWiki.org].
 
==Syntax==
;Licensing
Type <code>{{t|key}}</code> somewhere. Template will accept the keys listed below, as well as all number and letter keys.
[http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License 1.2]
 
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==
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly>
<code><nowiki>{{key|return}}</nowiki></code> produces:
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
:{{key|return}}
 
<code><nowiki>{{key|ctrl|shift|C}}</nowiki></code> produces:
:{{key|ctrl|shift|C}}
 
==Keys available==
 
:''General PC''
::-Return = {{Key|-Return}}
::^Control = {{Key|^Control}}
::alt = {{Key|alt}}
::asterisk = {{Key|asterisk}}
::backspace = {{Key|backspace}}
::break = {{Key|break}}
::caps = {{Key|caps}}
::cmd = {{Key|cmd}}
::colon = {{Key|colon}}
::command = {{Key|command}}
::compose = {{Key|compose}}
::ctrl = {{Key|ctrl}}
::del = {{Key|del}}
::down = {{Key|down}}
::end = {{Key|end}}
::-enter = {{Key|-enter}}
::enter = {{Key|enter}}
::equals = {{Key|equals}}
::esc = {{Key|esc}}
::hash = {{Key|hash}}
::home = {{Key|home}}
::ins = {{Key|ins}}
::left = {{Key|left}}
::menu = {{Key|menu}}
::num = {{Key|num}}
::opt = {{Key|opt}}
::option = {{Key|option}}
::pause = {{Key|pause}}
::pgdn = {{Key|pgdn}}
::pgup = {{Key|pgup}}
::pipe = {{Key|pipe}}
::prt scr= {{Key|prt scr}}
::prtsc = {{Key|prtsc}}
::prtscr = {{Key|prtscr}}
::return = {{Key|return}}
::right = {{Key|right}}
::scroll = {{Key|scroll}}
::semicolon = {{Key|semicolon}}
::shift = {{Key|shift}}
::tab = {{Key|tab}}
::up = {{Key|up}}
::win = {{Key|win}}
 
:''Left & right analog sticks''
::l-up = {{Key|l-up}}
::l up = {{Key|l up}}
::l-down = {{Key|l-down}}
::l down = {{Key|l down}}
::l-left = {{Key|l-left}}
::l left = {{Key|l left}}
::l-right = {{Key|l-right}}
::l right = {{Key|l right}}
::l-ne = {{Key|l-ne}}
::l ne = {{Key|l ne}}
::l-se = {{Key|l-se}}
::l se = {{Key|l se}}
::l-nw = {{Key|l-nw}}
::l nw = {{Key|l nw}}
::l-sw = {{Key|l-sw}}
::l sw = {{Key|l sw}}
 
::r-up = {{Key|r-up}}
::r up = {{Key|r up}}
::r-down = {{Key|r-down}}
::r down = {{Key|r down}}
::r-left = {{Key|r-left}}
::r left = {{Key|r left}}
::r-right = {{Key|r-right}}
::r right = {{Key|r right}}
::r-ne = {{Key|r-ne}}
::r ne = {{Key|r ne}}
::r-se = {{Key|r-se}}
::r se = {{Key|r se}}
::r-nw = {{Key|r-nw}}
::r nw = {{Key|r nw}}
::r-sw = {{Key|r-sw}}
::r sw = {{Key|r sw}}
 
:''PlayStation''
::ps x = {{Key|ps x}}
::ex = {{Key|ex}}
::ps c = {{Key|ps c}}
::circle = {{Key|circle}}
::ps s = {{Key|ps s}}
::square = {{Key|square}}
::ps t = {{Key|ps t}}
::triangle = {{Key|triangle}}
 
:''Nintendo 64 & GameCube''
::c-up = {{Key|c-up}}
::c up = {{Key|c up}}
::c-down = {{Key|c-down}}
::c down = {{Key|c down}}
::c-left = {{Key|c-left}}
::c left = {{Key|c left}}
::c-right = {{Key|c-right}}
::c right = {{Key|c right}}
::c-ne = {{Key|c-ne}}
::c ne = {{Key|c ne}}
::c-se = {{Key|c-se}}
::c se = {{Key|c se}}
::c-nw = {{Key|c-nw}}
::c nw = {{Key|c nw}}
::c-sw = {{Key|c-sw}}
::c sw = {{Key|c sw}}
 
==Related templates==
:{{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>
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>