Template:Key/Switch: Difference between revisions
(Created template for switch keys) |
(Updated.) |
||
Line 1: | Line 1: | ||
{{#switch:{{lc:{{{1}}}}} |
|||
|A = [[File:SwitchA.png| |
| A = [[File:SwitchA.png|50px|link=]] |
||
|B = [[File:SwitchB.png| |
| B = [[File:SwitchB.png|50px|link=]] |
||
|X = [[File:SwitchX.png| |
| X = [[File:SwitchX.png|50px|link=]] |
||
|Y = [[File:SwitchY.png| |
| Y = [[File:SwitchY.png|50px|link=]] |
||
|L = [[File:SwitchL.png| |
| L = [[File:SwitchL.png|50px|link=]] |
||
|R = [[File:SwitchR.png| |
| R = [[File:SwitchR.png|50px|link=]] |
||
|ZL = [[File:SwitchZl.png| |
| ZL = [[File:SwitchZl.png|50px|link=]] |
||
|ZR = [[File:SwitchZr.png| |
| ZR = [[File:SwitchZr.png|50px|link=]] |
||
|SL = [[File:SwitchSl.png| |
| SL = [[File:SwitchSl.png|50px|link=]] |
||
|SR = [[File:SwitchSr.png| |
| SR = [[File:SwitchSr.png|50px|link=]] |
||
|dpadup = [[File:SwitchUpbutton.png| |
| dpadup = [[File:SwitchUpbutton.png|50px|link=]] |
||
|dpadleft = [[File:SwitchLeftbutton.png| |
| dpadleft = [[File:SwitchLeftbutton.png|50px|link=]] |
||
|dpadright = [[File:SwitchRightbutton.png| |
| dpadright = [[File:SwitchRightbutton.png|50px|link=]] |
||
|dpaddown = [[File:SwitchDownbutton.png| |
| dpaddown = [[File:SwitchDownbutton.png|50px|link=]] |
||
|minus = [[File:SwitchMinus.png| |
| minus = [[File:SwitchMinus.png|50px|link=]] |
||
|plus = [[File:SwitchPlus.png| |
| plus = [[File:SwitchPlus.png|50px|link=]] |
||
|leftstick = [[File:Lstickclick.png| |
| leftstick = [[File:Lstickclick.png|50px|link=]] |
||
|rightstick = [[File:Stickclick.png| |
| rightstick = [[File:Stickclick.png|50px|link=]] |
||
| #default = <span style="color:red; font-size:14px">'''Error: Invalid Button Specified'''</span> |
|||
}}</onlyinclude> |
|||
}}<noinclude>{{Documentation}}[[Category:Templates]][[Category:Key Template]]</noinclude> |
|||
<pre> |
|||
Inputs: |
|||
A |
|||
B |
|||
X |
|||
Y |
|||
L |
|||
R |
|||
ZL |
|||
ZR |
|||
SL |
|||
SR |
|||
dpadup |
|||
dpadleft |
|||
dpadright |
|||
dpaddown |
|||
minus |
|||
plus |
|||
leftstick |
|||
rightstick |
|||
</pre> |
|||
{{Key/Switch|A}} {{Key/Switch|B}} {{Key/Switch|Y}} {{Key/Switch|X}} |
|||
<nowiki>{{Key/Switch|A}} {{Key/Switch|B}} {{Key/Switch|Y}} {{Key/Switch|X}}</nowiki> |
|||
[[Category:Key Template]] |
Revision as of 07:32, 19 September 2021
Error: Invalid Button Specified
Description
This template is used to display a graphic of a control button. If an incorrect value is given, the template will return an error message.
Syntax
Parameter | Function |
---|---|
A | ![]() |
B | ![]() |
X | ![]() |
Y | ![]() |
L | ![]() |
R | ![]() |
ZL | ![]() |
ZR | ![]() |
SL | ![]() |
SR | ![]() |
Dpadup | ![]() |
Dpadleft | ![]() |
Dpadright | ![]() |
Dpaddown | ![]() |
Minus | ![]() |
Plus | ![]() |
Leftstick | ![]() |
Rightstick | ![]() |
Sample Output
{{Key/Switch|Dpaddown}}
Results in...