Template:Psbutton/doc: Difference between revisions

From bg3.wiki
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...")
 
(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></noinclude>
</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

Triangle button

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

Right stick

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

Left stick

List of buttons

Input Name Code Result
Face Buttons
Cross Button Cross button Cross button
Circle Button Circle button Circle button
Square Button Square button Square button
Triangle Button Triangle button Triangle button
Directional Buttons
Directional Buttons Directional buttons Directional buttons
Up Button Up button Up button
Down Button Down button Down button
Left Button Left button Left button
Right Button Right button Right button
Control Sticks
Left Stick Left stick Left stick
Right Stick Right stick Right stick
L3 Button L3 button L3 button
R3 Button R3 button R3 button
Shoulder Buttons & Triggers
L1 Button L1 button L1 button
R1 Button R1 button R1 button
L2 Button L2 button L2 button
R2 Button R2 button R2 button
System & Other Buttons
Create Button Create button Create button
Options Button Options button Options button
Touch Pad Touch pad Touch pad
Touch Pad Button Touch pad 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