Template:Key/Switch: Difference between revisions

From Subnautica Wiki
(Created template for switch keys)
 
m (Updated.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>{{#switch:{{{1|X}}}
{{#switch:{{{1|X}}}
|A = [[File:SwitchA.png|x50px|link=]]
| A = [[File:SwitchA.png|50px|link=]]
|B = [[File:SwitchB.png|x50px|link=]]
| B = [[File:SwitchB.png|50px|link=]]
|X = [[File:SwitchX.png|x50px|link=]]
| X = [[File:SwitchX.png|50px|link=]]
|Y = [[File:SwitchY.png|x50px|link=]]
| Y = [[File:SwitchY.png|50px|link=]]
|L = [[File:SwitchL.png|x50px|link=]]
| L = [[File:SwitchL.png|50px|link=]]
|R = [[File:SwitchR.png|x50px|link=]]
| R = [[File:SwitchR.png|50px|link=]]
|ZL = [[File:SwitchZl.png|x50px|link=]]
| ZL = [[File:SwitchZl.png|50px|link=]]
|ZR = [[File:SwitchZr.png|x50px|link=]]
| ZR = [[File:SwitchZr.png|50px|link=]]
|SL = [[File:SwitchSl.png|x50px|link=]]
| SL = [[File:SwitchSl.png|50px|link=]]
|SR = [[File:SwitchSr.png|x50px|link=]]
| SR = [[File:SwitchSr.png|50px|link=]]
|dpadup = [[File:SwitchUpbutton.png|x50px|link=]]
| Dpadup = [[File:SwitchUpbutton.png|50px|link=]]
|dpadleft = [[File:SwitchLeftbutton.png|x50px|link=]]
| Dpadleft = [[File:SwitchLeftbutton.png|50px|link=]]
|dpadright = [[File:SwitchRightbutton.png|x50px|link=]]
| Dpadright = [[File:SwitchRightbutton.png|50px|link=]]
|dpaddown = [[File:SwitchDownbutton.png|x50px|link=]]
| Dpaddown = [[File:SwitchDownbutton.png|50px|link=]]
|minus = [[File:SwitchMinus.png|x50px|link=]]
| Minus = [[File:SwitchMinus.png|50px|link=]]
|plus = [[File:SwitchPlus.png|x50px|link=]]
| Plus = [[File:SwitchPlus.png|50px|link=]]
|leftstick = [[File:Lstickclick.png|x50px|link=]]
| Leftstick = [[File:Lstickclick.png|50px|link=]]
|rightstick = [[File:Stickclick.png|x50px|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

SwitchX.png

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 SwitchA.png
B SwitchB.png
X SwitchX.png
Y SwitchY.png
L SwitchL.png
R SwitchR.png
ZL SwitchZl.png
ZR SwitchZr.png
SL SwitchSl.png
SR SwitchSr.png
Dpadup SwitchUpbutton.png
Dpadleft SwitchLeftbutton.png
Dpadright SwitchRightbutton.png
Dpaddown SwitchDownbutton.png
Minus SwitchMinus.png
Plus SwitchPlus.png
Leftstick Lstickclick.png
Rightstick Stickclick.png

Sample Output

{{Key/Switch|Dpaddown}}

Results in...

SwitchDownbutton.png