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

Template:Option

From Board Game Arena
Revision as of 16:12, 26 February 2024 by Sammy McSam (talk | contribs)
Jump to navigation Jump to search
Option

Examples

Selected and non-default
Selected and default
Deselected and default

{{option|d=|Selected and non-default|Description of the option|

 {{option|Sub-option 1 selected and default|Sub-option description|

  {{option|s=|Sub-option 2 deselected and default|Sub-option description}}

 }}

}}


Deselected, default and hidden description

{{option|s=|h=| Deselected, default and hidden description}}

Parameters

Id
Name
Default value
Example
Description
1
value
Option
{{option|Value}}
Required: specify a text value.
2
description
​
{{option|Value|Description}}
Optional: specify a text description.
3
sub-option
​
{{option|Value|Description|Sub-option}}
Optional: specify an indented sub-option.
s
selected
n/a
{{option|s=}}
Optional: hide checkbox color.
d
default
n/a
{{option|d=}}
Optional: hide default marker.
h
hide
x
{{option|h=}}
Optional: hide the description.
st
state
null
{{option|st=collapsed}}
Optional: collapse description by default.