This is a documentation for Board Game Arena: play board games online !

Template:Option

From Board Game Arena
Revision as of 17:08, 8 March 2024 by Sammy McSam (talk | contribs) (+preferred width, -dd)
Jump to navigation Jump to search
Option

Example

Selected and description
Option description
Sub-option, selected and default
Sub-option, deselected, default and description
Sub-option description

{{option|s=|Selected and description|Option description|

 {{option|s=|df=|Sub-option, selected and default||

  {{option|ds=|df=|Sub-option, deselected, default and description|Sub-option description}}

 }}

}}

Parameters

Id
Name
Default value
Example
Description
1
value
Option
{{option|Value}}
Required: specify a text value.
2
description
null
{{option|Value|Description}}
Optional: specify a text description.
3
sub-option
null
{{option|Value|Description|Sub-option}}
Optional: display a sub-option.
s
selected
n/a
{{option|s=}}
Optional: display selected checkbox.
ds
deselected
n/a
{{option|ds=}}
Optional: display deselected checkbox.
df
default
n/a
{{option|df=}}
Optional: display default marker.
w
preferred width
500
{{option|w=600}}
Optional: specify the preferred width in px units.