Template:Psbutton: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}
<includeonly>{{#switch:{{lc:{{{2|}}}}}
| up    =
| down  =
| right =
| left  = ←
|
}}{{#switch:{{lc:{{{1}}}}}
| dpad              = [[File:PS5 Dpad.png|25px|Directional buttons|link=]]
| dpad              = [[File:PS5 Dpad.png|25px|Directional buttons|link=]]
| dpad-up            = [[File:PS5 Dpad Up.png|25px|Up button|link=]]
| dpad-up            = [[File:PS5 Dpad Up.png|25px|Up button|link=]]
Line 22: Line 28:
| r1                = [[File:PS5 R1.png|25px|R1 button|link=]]
| r1                = [[File:PS5 R1.png|25px|R1 button|link=]]
| #default    = {{{1}}}
| #default    = {{{1}}}
}}</includeonly><noinclude>{{documentation|content=Displays a PS5 controller button.
}}{{#switch:{{lc:{{{2|}}}}}
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)].
| up    =
 
| down = ↓
== Examples ==
| right =
; Wikitext
| left =
<pre>
|
{{psbutton|triangle}}
}}</includeonly><noinclude>{{documentation}}
</pre>
 
; Result
{{psbutton|triangle}}
 
== List of buttons ==
{| class="wikitable"
!Input Name
!Code
!Result
|-
! colspan="3" |Face Buttons
|-
|Cross Button
|{{t|Psbutton|cross}}
|{{Psbutton|cross}}
|-
|Circle Button
|{{t|Psbutton|circle}}
|{{Psbutton|circle}}
|-
|Square Button
|{{t|Psbutton|square}}
|{{Psbutton|square}}
|-
|Triangle Button
|{{t|Psbutton|triangle}}
|{{Psbutton|triangle}}
|-
! colspan="3" |Directional Buttons
|-
|Directional Buttons
|{{t|Psbutton|dpad}}
|{{Psbutton|dpad}}
|-
|Up Button
|{{t|Psbutton|dpad-up}}
|{{Psbutton|dpad-up}}
|-
|Down Button
|{{t|Psbutton|dpad-down}}
|{{Psbutton|dpad-down}}
|-
|Left Button
|{{t|Psbutton|dpad-left}}
|{{Psbutton|dpad-left}}
|-
|Right Button
|{{t|Psbutton|dpad-right}}
|{{Psbutton|dpad-right}}
|-
! colspan="3" |Control Sticks
|-
|Left Stick
|{{t|Psbutton|thumb-left}}
|{{Psbutton|thumb-left}}
|-
|Right Stick
|{{t|Psbutton|thumb-right}}
|{{Psbutton|thumb-right}}
|-
|L3 Button
|{{t|Psbutton|thumb-left-click}}
|{{Psbutton|thumb-left-click}}
|-
|R3 Button
|{{t|Psbutton|thumb-right-click}}
|{{Psbutton|thumb-right-click}}
|-
! colspan="3" |Shoulder Buttons & Triggers
|-
|L1 Button
|{{t|Psbutton|l1}}
|{{Psbutton|l1}}
|-
|R1 Button
|{{t|Psbutton|r1}}
|{{Psbutton|r1}}
|-
|L2 Button
|{{t|Psbutton|l2}}
|{{Psbutton|l2}}
|-
|R2 Button
|{{t|Psbutton|r2}}
|{{Psbutton|r2}}
|-
! colspan="3" |System & Other Buttons
|-
|Create Button
|{{t|Psbutton|create}}
|{{Psbutton|create}}
|-
|Options Button
|{{t|Psbutton|options}}
|{{Psbutton|options}}
|-
|Touch Pad
|{{t|Psbutton|touchpad}}
|{{Psbutton|touchpad}}
|-
|Touch Pad Button
|{{t|Psbutton|touchpad-button}}
|{{Psbutton|touchpad-button}}
|}
 
[[Category: Templates]]
== Template data ==
<templatedata>
{
"params": {
"1": {
"label": "Button",
"description": "Which button to be displayed.",
"type": "string",
"required": true
}
},
"description": "This template displays a PS5 controller button."
}
</templatedata>}}</noinclude>

Latest revision as of 14:29, 3 January 2024

Template documentation

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