Template:Psbutton/doc: Difference between revisions
Jump to navigation
Jump to search
MetalManeMc (talk | contribs) (documentation for second parameter) |
MetalManeMc (talk | contribs) (→List of buttons: fix formatting) |
||
Line 27: | Line 27: | ||
{{psbutton|thumb-left|left}} | {{psbutton|thumb-left|left}} | ||
{| class='wikitable' | {| class='wikitable' | ||
!Input Name | !Input Name | ||
Line 36: | 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 54: | 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 76: | 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 94: | 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 112: | 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> |
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 |