Template:Psbutton/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Diplays a PS5 controller button. The buttons used in this template come from [https://thoseawesomeguys.com/prompts/ Xelu's FREE Controllers & Keyboard Prompts Pack], licensed under [https://creativecommons.org/publicdomain/zero/1.0/ Creative Commons 0 (CC0)]. == Examples == ; Wikitext <pre> {{psbutton|triangle}} </pre> ; Result {{psbutton|triangle}} == List of buttons == {| class='wikitable' !Input Name !Code !Result |- ! colspan="3" |Face Buttons |- |Cross Button |<c...") |
MetalManeMc (talk | contribs) (documentation for second parameter) |
||
Line 10: | Line 10: | ||
; Result | ; Result | ||
{{psbutton|triangle}} | {{psbutton|triangle}} | ||
; Wikitext | |||
<pre> | |||
{{psbutton|thumb-right|up}} | |||
</pre> | |||
; Result | |||
{{psbutton|thumb-right|up}} | |||
; Wikitext | |||
<pre> | |||
{{psbutton|thumb-left|left}} | |||
</pre> | |||
; Result | |||
{{psbutton|thumb-left|left}} | |||
== List of buttons == | == List of buttons == | ||
Line 122: | Line 138: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"2": { | |||
"label": "Direction", | |||
"description": "The direction in which the joystick must be pushed.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
"description": "This template displays a PS5 controller button." | "description": "This template displays a PS5 controller button." | ||
} | } | ||
</templatedata | </templatedata> |
Revision as of 14:30, 3 January 2024
Diplays a PS5 controller button. The buttons used in this template come from Xelu's FREE Controllers & Keyboard Prompts Pack, licensed under Creative Commons 0 (CC0).
Examples
- Wikitext
{{psbutton|triangle}}
- Result
- Wikitext
{{psbutton|thumb-right|up}}
- Result
↑
- Wikitext
{{psbutton|thumb-left|left}}
- Result
←
List of buttons
Input Name | Code | Result |
---|---|---|
Face Buttons | ||
Cross Button |
|
|
Circle Button |
|
|
Square Button |
|
|
Triangle Button |
|
|
Directional Buttons | ||
Directional Buttons |
|
|
Up Button |
|
|
Down Button |
|
|
Left Button |
|
|
Right Button |
|
|
Control Sticks | ||
Left Stick |
|
|
Right Stick |
|
|
L3 Button |
|
|
R3 Button |
|
|
Shoulder Buttons & Triggers | ||
L1 Button |
|
|
R1 Button |
|
|
L2 Button |
|
|
R2 Button |
|
|
System & Other Buttons | ||
Create Button |
|
|
Options Button |
|
|
Touch Pad |
|
|
Touch Pad Button |
|
Template data
This template displays a PS5 controller button.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Button | 1 | Which button to be displayed. | String | required |
Direction | 2 | The direction in which the joystick must be pushed. | String | optional |