Template:Key: Difference between revisions

m
Thought I had already fixed, but perhaps I forgot to save XD (trying to get things back where they were-ish, to make wiki public again)
(ucfirst instead of uc on keyboard key for unexpected word keys)
imported>FrozenPlum
m (Thought I had already fixed, but perhaps I forgot to save XD (trying to get things back where they were-ish, to make wiki public again))
 
(15 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude><includeonly>{{#vardefine:console|{{#if:{{{console|}}}|{{lc:{{{console}}}}}|{{#if:{{{2|}}}|{{lc:{{{1}}}}}}}}}}}<!--
-->{{#vardefine:key|{{#switch:{{lc:{{#if:{{{key|}}}|{{{key}}}|{{{2}}}}}}}
| leftstick
| left stick
| left thumbstick
| lstick = Left Stick
| rightstick
| right stick
| right thumbstick
| rstick = Right Stick
| left trigger
| lt = LT
| left bumper
| lb = LB
| right trigger
| rt = RT
| right bumper
| rb = RB
| left d-pad
| left dpad
| l = Left
| right d-pad
| right dpad
| r = Right
| up d-pad
| up dpad
| u = Up
| down d-pad
| down dpad
| d = Down
| d-pad
| dpad = Dpad
| m = Menu
| o = Circle
| touchpad = Touch Pad
| lmb
| left click = Left
| rmb
| right click = Right
| #default = {{ucfirst:{{#if:{{{key|}}}|{{{key}}}|{{{2}}}}}}}
}}}}<!--
-->{{#vardefine:keyboard|{{lc:{{#if:{{{keyboard|}}}|{{{keyboard}}}|{{#if:{{{2|}}}||{{{1|}}}}}}}}}}}<!--
 
-->{{#if: {{#var:console}} | [[{{!((}}File:{{#switch: {{#var:console}}
|playstation 3
|ps3=PS3
|ps
|playstation
|playstation 4
|ps4=PS4
|psmove
Line 41 ⟶ 65:
|wiiu=WiiU
|xbox
|xbox one
|xboxone
|xbone
Line 51 ⟶ 76:
|light=_Black_Mouse_
|#default = _White_Mouse_
}}}} {{#var:key}}.png|{{!}}alt={{#var:key}}{{!}}{{{size|20px}}}|{{!}}link={{{link|Controls}}}]]{{!}}{{#var:key}}{{))!}} }}<!--
 
-->{{#if: {{#var:keyboard}} | <span class="key" style="display:inline-block; white-space:nowrap;">[[Controls{{#if:{{{link|}}}|{{!((}}{{{link|}}}{{!}}}}<kbd class="{{#switch: {{lc:{{{keyboardvariant}}}}} |dark=keysDark|light=keysLight|keysDark}}"><!--
 
-->{{#switch:{{#var:keyboard}}
Line 64 ⟶ 89:
|rshift
|right shift = ⇧ Right Shift
|return = ↵ Return
|enter = ↵ Enter
|esc = Esc
Line 85 ⟶ 111:
|menu = ≣ Menu
|windows = ⊞ Windows
|up = ↑
 
|down = ↓
|left = ←
|right = →
|#default = {{ucfirst:{{#var:keyboard}}}}
}}</kbd>]]{{#if:{{{link|}}}|{{))!}}}}</span>
}}</includeonly><noinclude>{{doc}}[[Category:Formatting templates]]</noincludeonlyinclude>
{{Documentation}}
Anonymous user