Template:Psbutton/doc: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(documentation for second parameter)
(→‎List of buttons: fix formatting)
 
Line 27: Line 27:
{{psbutton|thumb-left|left}}
{{psbutton|thumb-left|left}}


== List of buttons ==
{| 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}}
|}
|}


[[Category: Templates]]
== 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

Triangle button

Wikitext
{{psbutton|thumb-right|up}}
Result

Right stick

Wikitext
{{psbutton|thumb-left|left}}
Result

Left stick

Input Name Code Result
Face Buttons
Cross Button {{Psbutton|cross}} Cross button
Circle Button {{Psbutton|circle}} Circle button
Square Button {{Psbutton|square}} Square button
Triangle Button {{Psbutton|triangle}} Triangle button
Directional Buttons
Directional Buttons {{Psbutton|dpad}} Directional buttons
Up Button {{Psbutton|dpad-up}} Up button
Down Button {{Psbutton|dpad-down}} Down button
Left Button {{Psbutton|dpad-left}} Left button
Right Button {{Psbutton|dpad-right}} Right button
Control Sticks
Left Stick {{Psbutton|thumb-left}} Left stick
Right Stick {{Psbutton|thumb-right}} Right stick
L3 Button {{Psbutton|thumb-left-click}} L3 button
R3 Button {{Psbutton|thumb-right-click}} R3 button
Shoulder Buttons & Triggers
L1 Button {{Psbutton|l1}} L1 button
R1 Button {{Psbutton|r1}} R1 button
L2 Button {{Psbutton|l2}} L2 button
R2 Button {{Psbutton|r2}} R2 button
System & Other Buttons
Create Button {{Psbutton|create}} Create button
Options Button {{Psbutton|options}} Options button
Touch Pad {{Psbutton|touchpad}} Touch pad
Touch Pad Button {{Psbutton|touchpad-button}} Touch pad button

Template data

This template displays a PS5 controller button.

Template parameters

ParameterDescriptionTypeStatus
Button1

Which button to be displayed.

Stringrequired
Direction2

The direction in which the joystick must be pushed.

Stringoptional