Template:Button: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Turning prefix links into HTTPS)
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{#switch:{{{2|{{GameToConsole|{{{game}}}}}}}}
<includeonly>{{#invoke:Button|main}}</includeonly><noinclude>__NOTOC__
|Switch={{#switch:{{{1|}}}
|A=<span class="switch-icon a" title="A"></span>
|B=<span class="switch-icon b" title="B"></span>
|Capture=<span class="switch-icon capture" title="Capture"></span>
|Controller Outline=<span class="switch-icon controller-outline" title="Pro"></span>
|DPad=<span class="pro-icon d-pad" title="D-Pad"></span>
|DPad Down=<span class="pro-icon d-pad-down" title="D-Pad Down"></span>
|DPad Left=<span class="pro-icon d-pad-left" title="D-Pad Left"></span>
|DPad Right=<span class="pro-icon d-pad-right" title="D-Pad Right"></span>
|DPad Up=<span class="pro-icon d-pad-up" title="D-Pad Up"></span>
|D-Pad=<span class="pro-icon d-pad" title="D-Pad"></span>
|D-Pad Down=<span class="pro-icon d-pad-down" title="D-Pad Down"></span>
|D-Pad Left=<span class="pro-icon d-pad-left" title="D-Pad Left"></span>
|D-Pad Right=<span class="pro-icon d-pad-right" title="D-Pad Right"></span>
|D-Pad Up=<span class="pro-icon d-pad-up" title="D-Pad Up"></span>
|Gyro Pitch=<span class="pro-icon gyro-pitch" title="Gyro Pitch"></span>
|Gyro Roll=<span class="pro-icon gyro-roll" title="Gyro Roll"></span>
|Gyro Yaw=<span class="pro-icon gyro-yaw" title="Gyro Yaw"></span>
|Handheld=[[File:Switch Icon Handheld.svg|28x28px|link=|Handheld]]
|Home=<span class="switch-icon home" title="Home"></span>
|L=<span class="switch-icon l" title="L"></span>
|Left Stick All=<span class="switch-icon left-stick-all" title="Left Stick All"></span>
|Left Stick Click=<span class="switch-icon left-stick-click" title="Left Stick Click"></span>
|Left Stick Down=<span class="switch-icon left-stick-down" title="Left Stick Down"></span>
|Left Stick Left-Right=<span class="switch-icon left-stick-left-right" title="Left Stick Left-Right"></span>
|Left Stick Left=<span class="switch-icon left-stick-left" title="Left Stick Left"></span>
|Left Stick Right=<span class="switch-icon left-stick-right" title="Left Stick Right"></span>
|Left Stick Up-Down=<span class="switch-icon left-stick-up-down" title="Left Stick Up-Down"></span>
|Left Stick Up=<span class="switch-icon left-stick-up" title="Left Stick Up"></span>
|Left Stick=<span class="switch-icon left-stick" title="Left Stick"></span>
|LS=<span class="switch-icon left-stick" title="Left Stick"></span>
|Minus=<span class="switch-icon minus" title="Minus"></span>
|Plus=<span class="switch-icon plus" title="Plus"></span>
|Pro=<span class="pro-icon controller-outline" title="Pro"></span>
|R=<span class="switch-icon r" title="R"></span>
|Right Stick All=<span class="switch-icon right-stick-all" title="Right Stick All"></span>
|Right Stick Click=<span class="switch-icon right-stick-click" title="Right Stick Click"></span>
|Right Stick Down=<span class="switch-icon right-stick-down" title="Right Stick Down"></span>
|Right Stick Left-Right=<span class="switch-icon right-stick-left-right" title="Right Stick Left-Right"></span>
|Right Stick Left=<span class="switch-icon right-stick-left" title="Right Stick Left"></span>
|Right Stick Right=<span class="switch-icon right-stick-right" title="Right Stick Right"></span>
|Right Stick Up-Down=<span class="switch-icon right-stick-up-down" title="Right Stick Up-Down"></span>
|Right Stick Up=<span class="switch-icon right-stick-up" title="Right Stick Up"></span>
|Right Stick=<span class="switch-icon right-stick" title="Right Stick"></span>
|RS=<span class="switch-icon right-stick" title="Right Stick"></span>
|SL=<span class="switch-icon sl" title="SL"></span>
|SR=<span class="switch-icon sr" title="SR"></span>
|X=<span class="switch-icon x" title="X"></span>
|Y=<span class="switch-icon y" title="Y"></span>
|ZL=<span class="switch-icon zl" title="ZL"></span>
|ZR=<span class="switch-icon zr" title="ZR"></span>
}}
|#default = {{#switch:{{{1|}}}
|A=[[File:Wii U Icon A.png|28x28px|link=|A]]
|B=[[File:Wii U Icon B.png|28x28px|link=|B]]
|DPad=[[File:Wii U Icon D-Pad.png|28x28px|link=|D-Pad]]
|D-Pad=[[File:Wii U Icon D-Pad.png|28x28px|link=|D-Pad]]
|Gamepad=[[File:Wii U Icon Gamepad.png|28x28px|link=|Gamepad]]
|Home=[[File:Wii U Icon Home.png|28x28px|link=|Home]]
|L=[[File:Wii U Icon L.png|28x28px|link=|L]]
|Left Stick=[[File:Wii U Icon LS.png|28x28px|link=|Left Stick]]
|LS=[[File:Wii U Icon LS.png|28x28px|link=|Left Stick]]
|Minus=[[File:Wii U Icon Minus.png|28x28px|link=|Minus]]
|Plus=[[File:Wii U Icon Plus.png|28x28px|link=|Plus]]
|R=[[File:Wii U Icon R.png|28x28px|link=|R]]
|Right Stick=[[File:Wii U Icon RS.png|28x28px|link=|Right Stick]]
|RS=[[File:Wii U Icon RS.png|28x28px|link=|Right Stick]]
|X=[[File:Wii U Icon X.png|28x28px|link=|X]]
|Y=[[File:Wii U Icon Y.png|28x28px|link=|Y]]
|Z={{Icon|S|Zapfish}}
|ZL=[[File:Wii U Icon ZL.png|28x28px|link=|ZL]]
|ZL1={{Icon|S|ZL}}
|ZR=[[File:Wii U Icon ZR.png|28x28px|link=|ZR]]
|ZR1={{Icon|S|ZR}}
}}
}}</includeonly><noinclude>__NOTOC__
Helper template that displays controller buttons.
Helper template that displays controller buttons.


Line 84: Line 8:
| style="vertical-align:top" |<code>name</code>
| style="vertical-align:top" |<code>name</code>
| style="vertical-align:top" |First positional only, required
| style="vertical-align:top" |First positional only, required
| colspan="4" |The name of the button. See valid buttons [[Template:Button#List of buttons|below]].
| colspan="4" |The name of the button. See valid buttons below.
|-
|-
| style="vertical-align:top" |<code>console</code>
| style="vertical-align:top" |<code>console</code>
| style="vertical-align:top" |Second positional, optional
| style="vertical-align:top" |Second positional, optional
| colspan="4" |Wii U or Switch
| colspan="4" |Wii U or Switch (defaults to Wii U).
* Defaults to "Wii U".
|-
| style="vertical-align:top" |<code>game</code>
| style="vertical-align:top" |Named only, optional
| colspan="4" |A game parameter such as S or Splatoon 2 etc.
* If console is not specified and game= is, the game is converted to a console via {{t|GameToConsole}}.
|-
|-
|}
|}
== List of buttons ==
== List of buttons ==
Some example buttons are as follows, though more may be available than what is shown here:
Some example buttons are as follows, though more may be available than what is shown here:
Line 104: Line 21:
* ''[https://splatoonwiki.org/w/index.php?title=Special%3APrefixIndex&prefix=Wii_U_Icon_&namespace=6 Files beginning with Wii_U_Icon_]''
* ''[https://splatoonwiki.org/w/index.php?title=Special%3APrefixIndex&prefix=Wii_U_Icon_&namespace=6 Files beginning with Wii_U_Icon_]''


For example, <code><nowiki>{{Button|A}}</nowiki></code> or <code><nowiki>{{Button|A|Wii U}}</nowiki></code> or <code><nowiki>{{Button|A|game=Splatoon 1}}</nowiki></code> {{Button|A|game=Splatoon 1}}
For example, <code><nowiki>{{Button|A}}</nowiki></code> or <code><nowiki>{{Button|A|Wii U}}</nowiki></code> or <code><nowiki>{{Button|A|Splatoon}}</nowiki></code> {{Button|A|Splatoon}}
 
<small>''Note: Names are case-sensitive.''</small>


{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
Line 138: Line 53:
* ''[https://splatoonwiki.org/w/index.php?title=Special%3APrefixIndex&prefix=Switch_Icon_&namespace=6 Files beginning with Switch_Icon_]''
* ''[https://splatoonwiki.org/w/index.php?title=Special%3APrefixIndex&prefix=Switch_Icon_&namespace=6 Files beginning with Switch_Icon_]''


For example, <code><nowiki>{{Button|A|Switch}}</nowiki></code> or <code><nowiki>{{Button|A|game=Splatoon 2}}</nowiki></code> {{Button|A|game=Splatoon 2}}
For example, <code><nowiki>{{Button|A|Switch}}</nowiki></code> or <code><nowiki>{{Button|A|Splatoon 2}}</nowiki></code> {{Button|A|Splatoon 2}}
 
<small>''Note: Names are case-sensitive.''</small>


{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
Line 208: Line 121:
|{{Button|D-Pad Up|Switch}}
|{{Button|D-Pad Up|Switch}}
|{{Button|D-Pad Down|Switch}}
|{{Button|D-Pad Down|Switch}}
|{{Button|Handheld|Switch}}
|}
|}


=== Misc ===
=== Misc ===
Due to Inkipedia history, the following are also supported with no console argument.
Due to Inkipedia history, the following are also supported with no console argument.
<small>''Note: Names are case-sensitive.''</small>


{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"

Latest revision as of 12:18, 6 June 2023

Helper template that displays controller buttons.

Usage

Typically, {{Button|name|console}}

name First positional only, required The name of the button. See valid buttons below.
console Second positional, optional Wii U or Switch (defaults to Wii U).

List of buttons

Some example buttons are as follows, though more may be available than what is shown here:

Wii U

For example, {{Button|A}} or {{Button|A|Wii U}} or {{Button|A|Splatoon}} A

Name A B X Y Left Stick or LS Right Stick or RS D-Pad or DPad Home
Output A B X Y Left Stick Right Stick D-Pad Home
Name L R ZL ZR Minus Plus Gamepad
Output L R ZL ZR Minus Plus Gamepad

Switch

For example, {{Button|A|Switch}} or {{Button|A|Splatoon 2}}

Name A B X Y L R ZL ZR Pro
Output
Name SL SR Minus Plus Home Capture Gyro Pitch Gyro Roll Gyro Yaw
Output
Name Left Stick or LS Left Stick Left Left Stick Right Left Stick Up Left Stick Down Left Stick Left-Right Left Stick Up-Down Left Stick All Left Stick Click
Output
Name Right Stick or RS Right Stick Left Right Stick Right Right Stick Up Right Stick Down Right Stick Left-Right Right Stick Up-Down Right Stick All Right Stick Click
Output
Name D-Pad or DPad D-Pad Left D-Pad Right D-Pad Up D-Pad Down Handheld
Output

Misc

Due to Inkipedia history, the following are also supported with no console argument.

Name Z ZL1 ZR1
Output Zapfish ZL ZR

See also