This is a documentation for Board Game Arena: play board games online !
Template:WhiteDie: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Created page with "<div style="width:40px;height:40px;overflow:hidden;position:relative;"><div style="position:absolute;left:calc(40 - 40 * {{{|1}}}px);top:0px;">File:30_30_colored_dice.png|24...") |
Sammy McSam (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="width: | {{gameIcon | ||
< | |tooltip=white die | ||
[[Category:GamePieceTemplates | |imageFileName=30_30_colored_dice.png | ||
|scale=calc({{{size|40}}} / 30) | |||
|width={{{size|40}}} | |||
|height={{{size|40}}} | |||
|x=calc(({{{1|1}}} - 1) * {{{size|40}}}) | |||
|y=0 | |||
}}<noinclude> | |||
== Parameters == | |||
<div style="display:grid;grid-template-columns:repeat(4,max-content) 2fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | |||
<div style="font-weight:bold;width:8rem;">Parameter</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;">Result</div> | |||
<div style="font-weight:bold;width:8rem;">Description</div> | |||
<div><code>1</code></div> | |||
<div><code>1</code></div> | |||
<div><code><nowiki>{{WhiteDie|3}}</nowiki></code></div> | |||
<div>{{WhiteDie|3}}</div> | |||
<div>'''''Optional:''''' specify the die number.</div> | |||
<div><code>size</code></div> | |||
<div><code>40</code></div> | |||
<div><code><nowiki>{{WhiteDie|size=50}}</nowiki></code></div> | |||
<div>{{WhiteDie|size=50}}</div> | |||
<div>'''''Optional:''''' specify size in px units.</div> | |||
</div> | |||
[[Category:GameIconTemplates]] | |||
[[Category:GamePieceTemplates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 23:11, 12 February 2024
Parameters
Parameter
Default value
Example
Result
Description
1
1
{{WhiteDie|3}}
Optional: specify the die number.
size
40
{{WhiteDie|size=50}}
Optional: specify size in px units.