« Module:Button/doc » : différence entre les versions

De Pikmin FR
fr>Fxfxfx0
Aucun résumé des modifications
m 7 versions importées
 
(5 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{{#invoke:Button|main}}</includeonly><noinclude>__NOTOC__
<includeonly>{{#ifeq:{{NAMESPACE}}|Module|For use with [[Template:Button]]. [[Category:Modules]]|}}
Helper template that displays controller buttons.
{{Clear}}</includeonly> <!-- When modifying the above code, check out how it affects this page plus both the Module and Template pages.-->
 
Helper template that displays an inline controller button.
__NOTOC__
=== Usage ===
=== Usage ===
Typically, <code><nowiki>{{Button|name|console}}</nowiki></code>
Typically, <code><nowiki>{{Button|name|console}}</nowiki></code>
Ligne 19 : Ligne 20 :


=== Wii U ===
=== Wii U ===
* ''[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%3APrefix index&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|Splatoon}}</nowiki></code> {{Button|A|Splatoon}}
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}}
Ligne 51 : Ligne 52 :


=== Switch ===
=== Switch ===
* ''[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%3APrefix index&prefix=Switch_Icon_&namespace=6 Files beginning with Switch_Icon_]''


For example, <code><nowiki>{{Button|A|Switch}}</nowiki></code> or <code><nowiki>{{Button|A|Splatoon 2}}</nowiki></code> {{Button|A|Splatoon 2}}
For example, <code><nowiki>{{Button|A|Switch}}</nowiki></code> or <code><nowiki>{{Button|A|Splatoon 2}}</nowiki></code> {{Button|A|Splatoon 2}}
Ligne 121 : Ligne 122 :
|{{Button|D-Pad Up|Switch}}
|{{Button|D-Pad Up|Switch}}
|{{Button|D-Pad Down|Switch}}
|{{Button|D-Pad Down|Switch}}
|{{Button|Handheld|Switch}}
|}
|}


Ligne 140 : Ligne 142 :


== See also ==
== See also ==
* {{c|Icônes de contrôleur}}
* {{c|Controller icons}}
 
<noinclude>
[[Category:Icônes de contrôleur]]
[[Category:Documentation de module]]
</noinclude>
</noinclude>
[[Category:Icônes de manettes]]

Dernière version du 9 avril 2025 à 21:32

Helper template that displays an inline controller button.

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