« Modèle:Button » : différence entre les versions
De Pikmin FR
m Added bit about case sensitivity. I forgot about that myself. :b |
m 10 versions importées |
||
| (9 versions intermédiaires par 5 utilisateurs non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
< | <includeonly>{{#invoke:Button|main}}</includeonly><noinclude> | ||
Template invocation of [[Module:Button]]. | |||
{{:Module:Button/doc}} | |||
[[Catégorie:Modèles d'intégration]] | |||
< | |||
Dernière version du 9 avril 2025 à 21:31
Template invocation of Module:Button.
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 |

