This is a documentation for Board Game Arena: play board games online !
Template:Option: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Created page with "<span title="{{{default|default}}} option" style="display:inline-flex;align-items:center;width:clamp(20%,450px,90%);margin-top:1rem;padding:8px;border-radius:5px;box-shadow:rgb(0 0 0/25%) 2px 2px 5px 0;background:linear-gradient(0deg,#f0f0f0 0%,#f3f3f3 30%,#ebebeb 100%);font-family:Roboto,Arial,sans-serif;font-size:16px;font-weight:700;color:rgb(141 141 141);{{{selected|c}}}olor:rgb(78 78 78);"><span style="width:24px;height:24px;margin-right:1rem;border-radius:5px;box-s...") |
Sammy McSam (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<span title="{{{ | <span title="{{{d|default}}} option" style="display:inline-flex;align-items:center;width:calc(clamp(20%,450px,90%) - ({{{i|0}}}*1rem));margin-top:1rem;margin-inline-start:calc({{{i|0}}}*1rem);padding:8px;border-radius:5px;box-shadow:rgb(0 0 0/25%) 2px 2px 5px 0;background:linear-gradient(0deg,#f0f0f0 0%,#f3f3f3 30%,#ebebeb 100%);font-family:Roboto,Arial,sans-serif;font-size:16px;font-weight:700;color:rgb(141 141 141);{{{s|c}}}olor:rgb(78 78 78);"><span style="width:24px;height:24px;margin-right:1rem;border-radius:5px;box-shadow:inset rgb(0 0 0 /40%) 1px 1px 5px,rgb(0 0 0 /10%) 0 0 1px;{{{s|b}}}ackground:#66DF00;"></span><span style="flex: 1 1 0%;">{{{1|Option Description}}}</span><div style="display:flex;width:11px;height:11px;border-radius:50%;{{{d|b}}}ackground:rgb(211 211 211);"></div></span><noinclude> | ||
== Parameters == | == Parameters == | ||
<div style="display:grid;grid-template-columns:repeat(4,auto);gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | <div style="display:grid;grid-template-columns:2rem repeat(4,auto);gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | ||
<div style="font-weight:bold;width:8rem;"> | <div style="font-weight:bold;width:8rem;">Id</div> | ||
<div style="font-weight:bold;width:8rem;">Name</div> | |||
<div style="font-weight:bold;width:8rem;">Default value</div> | <div style="font-weight:bold;width:8rem;">Default value</div> | ||
<div style="font-weight:bold;width:8rem;">Example</div> | <div style="font-weight:bold;width:8rem;">Example</div> | ||
<div style="font-weight:bold;width:8rem;">Description</div> | <div style="font-weight:bold;width:8rem;">Description</div> | ||
<div><code>1</code></div> | <div><code>1</code></div> | ||
<div><code>option value</code></div> | |||
<div><code>Option description</code></div> | <div><code>Option description</code></div> | ||
<div><code><nowiki>{{option|Example}}</nowiki></code></div> | <div><code><nowiki>{{option|Example}}</nowiki></code></div> | ||
<div>'''''Required:''''' specify a text value.</div> | <div>'''''Required:''''' specify a text value.</div> | ||
<div><code>s</code></div> | |||
<div><code>selected</code></div> | <div><code>selected</code></div> | ||
<div><code>n/a</code></div> | <div><code>n/a</code></div> | ||
<div><code><nowiki>{{option| | <div><code><nowiki>{{option|s=}}</nowiki></code></div> | ||
<div>'''''Optional:''''' hide checkbox color.</div> | <div>'''''Optional:''''' hide checkbox color.</div> | ||
<div><code>d</code></div> | |||
<div><code>default</code></div> | <div><code>default</code></div> | ||
<div><code>n/a</code></div> | <div><code>n/a</code></div> | ||
<div><code><nowiki>{{option| | <div><code><nowiki>{{option|d=}}</nowiki></code></div> | ||
<div>'''''Optional:''''' hide default marker.</div> | <div>'''''Optional:''''' hide default marker.</div> | ||
<div><code>i</code></div> | |||
<div><code>indent</code></div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{option|i=1}}</nowiki></code></div> | |||
<div>'''''Optional:''''' indent the option in rem units | |||
<br>(for options that are sub-options of others).</div> | |||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 20:08, 24 February 2024
Option Description
Parameters
Id
Name
Default value
Example
Description
1
option value
Option description
{{option|Example}}
Required: specify a text value.
s
selected
n/a
{{option|s=}}
Optional: hide checkbox color.
d
default
n/a
{{option|d=}}
Optional: hide default marker.
i
indent
0
{{option|i=1}}
Optional: indent the option in rem units
(for options that are sub-options of others).
(for options that are sub-options of others).