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) (→List of buttons: fix formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
{{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}} | |||
{| class='wikitable' | {| class='wikitable' | ||
!Input Name | !Input Name | ||
Line 20: | Line 35: | ||
|- | |- | ||
|Cross Button | |Cross Button | ||
|<code>{{Psbutton|cross}}</code> | |<code><nowiki>{{Psbutton|cross}}</nowiki></code> | ||
|{{Psbutton|cross}} | |{{Psbutton|cross}} | ||
|- | |- | ||
|Circle Button | |Circle Button | ||
|<code>{{Psbutton|circle}}</code> | |<code><nowiki>{{Psbutton|circle}}</nowiki></code> | ||
|{{Psbutton|circle}} | |{{Psbutton|circle}} | ||
|- | |- | ||
|Square Button | |Square Button | ||
|<code>{{Psbutton|square}}</code> | |<code><nowiki>{{Psbutton|square}}</nowiki></code> | ||
|{{Psbutton|square}} | |{{Psbutton|square}} | ||
|- | |- | ||
|Triangle Button | |Triangle Button | ||
|<code>{{Psbutton|triangle}}</code> | |<code><nowiki>{{Psbutton|triangle}}</nowiki></code> | ||
|{{Psbutton|triangle}} | |{{Psbutton|triangle}} | ||
|- | |- | ||
Line 38: | Line 53: | ||
|- | |- | ||
|Directional Buttons | |Directional Buttons | ||
|<code>{{Psbutton|dpad}}</code> | |<code><nowiki>{{Psbutton|dpad}}</nowiki></code> | ||
|{{Psbutton|dpad}} | |{{Psbutton|dpad}} | ||
|- | |- | ||
|Up Button | |Up Button | ||
|<code>{{Psbutton|dpad-up}}</code> | |<code><nowiki>{{Psbutton|dpad-up}}</nowiki></code> | ||
|{{Psbutton|dpad-up}} | |{{Psbutton|dpad-up}} | ||
|- | |- | ||
|Down Button | |Down Button | ||
|<code>{{Psbutton|dpad-down}}</code> | |<code><nowiki>{{Psbutton|dpad-down}}</nowiki></code> | ||
|{{Psbutton|dpad-down}} | |{{Psbutton|dpad-down}} | ||
|- | |- | ||
|Left Button | |Left Button | ||
|<code>{{Psbutton|dpad-left}}</code> | |<code><nowiki>{{Psbutton|dpad-left}}</nowiki></code> | ||
|{{Psbutton|dpad-left}} | |{{Psbutton|dpad-left}} | ||
|- | |- | ||
|Right Button | |Right Button | ||
|<code>{{Psbutton|dpad-right}}</code> | |<code><nowiki>{{Psbutton|dpad-right}}</nowiki></code> | ||
|{{Psbutton|dpad-right}} | |{{Psbutton|dpad-right}} | ||
|- | |- | ||
Line 60: | Line 75: | ||
|- | |- | ||
|Left Stick | |Left Stick | ||
|<code>{{Psbutton|thumb-left}}</code> | |<code><nowiki>{{Psbutton|thumb-left}}</nowiki></code> | ||
|{{Psbutton|thumb-left}} | |{{Psbutton|thumb-left}} | ||
|- | |- | ||
|Right Stick | |Right Stick | ||
|<code>{{Psbutton|thumb-right}}</code> | |<code><nowiki>{{Psbutton|thumb-right}}</nowiki></code> | ||
|{{Psbutton|thumb-right}} | |{{Psbutton|thumb-right}} | ||
|- | |- | ||
|L3 Button | |L3 Button | ||
|<code>{{Psbutton|thumb-left-click}}</code> | |<code><nowiki>{{Psbutton|thumb-left-click}}</nowiki></code> | ||
|{{Psbutton|thumb-left-click}} | |{{Psbutton|thumb-left-click}} | ||
|- | |- | ||
|R3 Button | |R3 Button | ||
|<code>{{Psbutton|thumb-right-click}}</code> | |<code><nowiki>{{Psbutton|thumb-right-click}}</nowiki></code> | ||
|{{Psbutton|thumb-right-click}} | |{{Psbutton|thumb-right-click}} | ||
|- | |- | ||
Line 78: | Line 93: | ||
|- | |- | ||
|L1 Button | |L1 Button | ||
|<code>{{Psbutton|l1}}</code> | |<code><nowiki>{{Psbutton|l1}}</nowiki></code> | ||
|{{Psbutton|l1}} | |{{Psbutton|l1}} | ||
|- | |- | ||
|R1 Button | |R1 Button | ||
|<code>{{Psbutton|r1}}</code> | |<code><nowiki>{{Psbutton|r1}}</nowiki></code> | ||
|{{Psbutton|r1}} | |{{Psbutton|r1}} | ||
|- | |- | ||
|L2 Button | |L2 Button | ||
|<code>{{Psbutton|l2}}</code> | |<code><nowiki>{{Psbutton|l2}}</nowiki></code> | ||
|{{Psbutton|l2}} | |{{Psbutton|l2}} | ||
|- | |- | ||
|R2 Button | |R2 Button | ||
|<code>{{Psbutton|r2}}</code> | |<code><nowiki>{{Psbutton|r2}}</nowiki></code> | ||
|{{Psbutton|r2}} | |{{Psbutton|r2}} | ||
|- | |- | ||
Line 96: | Line 111: | ||
|- | |- | ||
|Create Button | |Create Button | ||
|<code>{{Psbutton|create}}</code> | |<code><nowiki>{{Psbutton|create}}</nowiki></code> | ||
|{{Psbutton|create}} | |{{Psbutton|create}} | ||
|- | |- | ||
|Options Button | |Options Button | ||
|<code>{{Psbutton|options}}</code> | |<code><nowiki>{{Psbutton|options}}</nowiki></code> | ||
|{{Psbutton|options}} | |{{Psbutton|options}} | ||
|- | |- | ||
|Touch Pad | |Touch Pad | ||
|<code>{{Psbutton|touchpad}}</code> | |<code><nowiki>{{Psbutton|touchpad}}</nowiki></code> | ||
|{{Psbutton|touchpad}} | |{{Psbutton|touchpad}} | ||
|- | |- | ||
|Touch Pad Button | |Touch Pad Button | ||
|<code>{{Psbutton|touchpad-button}}</code> | |<code><nowiki>{{Psbutton|touchpad-button}}</nowiki></code> | ||
|{{Psbutton|touchpad-button}} | |{{Psbutton|touchpad-button}} | ||
|} | |} | ||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 122: | Line 136: | ||
"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> |
Latest revision as of 14:33, 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
←
Input Name | Code | Result |
---|---|---|
Face Buttons | ||
Cross Button | {{Psbutton|cross}}
|
|
Circle Button | {{Psbutton|circle}}
|
|
Square Button | {{Psbutton|square}}
|
|
Triangle Button | {{Psbutton|triangle}}
|
|
Directional Buttons | ||
Directional Buttons | {{Psbutton|dpad}}
|
|
Up Button | {{Psbutton|dpad-up}}
|
|
Down Button | {{Psbutton|dpad-down}}
|
|
Left Button | {{Psbutton|dpad-left}}
|
|
Right Button | {{Psbutton|dpad-right}}
|
|
Control Sticks | ||
Left Stick | {{Psbutton|thumb-left}}
|
|
Right Stick | {{Psbutton|thumb-right}}
|
|
L3 Button | {{Psbutton|thumb-left-click}}
|
|
R3 Button | {{Psbutton|thumb-right-click}}
|
|
Shoulder Buttons & Triggers | ||
L1 Button | {{Psbutton|l1}}
|
|
R1 Button | {{Psbutton|r1}}
|
|
L2 Button | {{Psbutton|l2}}
|
|
R2 Button | {{Psbutton|r2}}
|
|
System & Other Buttons | ||
Create Button | {{Psbutton|create}}
|
|
Options Button | {{Psbutton|options}}
|
|
Touch Pad | {{Psbutton|touchpad}}
|
|
Touch Pad Button | {{Psbutton|touchpad-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 |