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)
(Support `link` parameter for keyboard 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))
 
(3 intermediate revisions by the same user 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
Line 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">{{#if:{{{link|Controls}}}|{{!((}}{{{link|Controls}}}{{!}}}}<kbd class="{{#switch: {{lc:{{{keyboardvariant}}}}} |dark=keysDark|light=keysLight|keysDark}}"><!--
 
-->{{#switch:{{#var:keyboard}}
Line 116:
|right = →
|#default = {{ucfirst:{{#var:keyboard}}}}
}}</kbd>{{#if:{{{link|Controls}}}|{{))!}}}}</span>
}}</includeonly><noinclude/onlyinclude>
{{docDocumentation}}
[[Category:Formatting templates]]
[[tr:Şablon:Tuş]]</noinclude>
Anonymous user