Template:Key/Switch: Difference between revisions
(Created template for switch keys) |
m (Updated.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{1|X}}} |
|||
|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|50px|link=]] |
||
| |
| Dpadleft = [[File:SwitchLeftbutton.png|50px|link=]] |
||
| |
| Dpadright = [[File:SwitchRightbutton.png|50px|link=]] |
||
| |
| Dpaddown = [[File:SwitchDownbutton.png|50px|link=]] |
||
| |
| Minus = [[File:SwitchMinus.png|50px|link=]] |
||
| |
| Plus = [[File:SwitchPlus.png|50px|link=]] |
||
| |
| Leftstick = [[File:Lstickclick.png|50px|link=]] |
||
| |
| 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]] |
Latest revision as of 08:45, 19 September 2021
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...