Template:Xboxbutton: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(created page, wikitables are broken still)
 
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}
<includeonly>{{#switch:{{lc:{{{2|}}}}}
| up    =
| down  =
| right =
| left  = ←
|{{{2|}}}
}}{{#switch:{{lc:{{{1}}}}}
| dpad              = [[File:XboxSeriesX Dpad.png|25px|D-pad|link=]]
| dpad              = [[File:XboxSeriesX Dpad.png|25px|D-pad|link=]]
| dpad-up          = [[File:XboxSeriesX Dpad Up.png|25px|D-pad up|link=]]
| dpad-up          = [[File:XboxSeriesX Dpad Up.png|25px|D-pad up|link=]]
Line 21: Line 27:
| rt                = [[File:XboxSeriesX RT.png|25px|Right trigger|link=]]
| rt                = [[File:XboxSeriesX RT.png|25px|Right trigger|link=]]
| #default    = {{{1}}}
| #default    = {{{1}}}
}}{{#switch:{{lc:{{{2|}}}}}
| up    = ↑
| down  = ↓
| right = →
| left =
|{{{2|}}}
}}</includeonly><noinclude>{{documentation|content=Displays an Xbox Series X controller button.
}}</includeonly><noinclude>{{documentation|content=Displays an Xbox Series X 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)].
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)].
Line 32: Line 44:
; Result
; Result
{{xboxbutton|x}}
{{xboxbutton|x}}
; Wikitext
<pre>
{{xboxbutton|thumb-right|up}}
</pre>
; Result
{{xboxbutton|thumb-right|up}}
; Wikitext
<pre>
{{xboxbutton|thumb-left|left}}
</pre>
; Result
{{xboxbutton|thumb-left|left}}


== List of buttons ==
== List of buttons ==
{| class='wikitable'
|}


[[Category: Templates]]
[[Category: Templates]]
Line 48: Line 73:
"type": "string",
"type": "string",
"required": true
"required": true
},
"2": {
"label": "Direction",
"description": "The direction in which the joystick must be pushed.",
"type": "string"
}
}
},
},

Revision as of 14:06, 3 January 2024

Template documentation

Displays an Xbox Series X 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
{{xboxbutton|x}}
Result

X button

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

Right stick

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

Left stick

List of buttons

Template data

This template displays a Xbox Series X controller button.

Template parameters

ParameterDescriptionTypeStatus
Button1

Which button to be displayed.

Stringrequired
Direction2

The direction in which the joystick must be pushed.

Stringoptional