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

Template:WhiteDie: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<div style="display:inline-block;width:40px;height:40px;overflow:hidden;vertical-align:middle;position:relative;"><div style="position:absolute;left:calc(40px - 40 * {{{|1}}}px);top:0px;">[[File:30_30_colored_dice.png|240px|White die]]</div></div><noinclude>
{{gameIcon
|tooltip=white die
|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:GamePieceTemplates|Game piece templates]]
[[Category:GamePieceTemplates|Game piece templates]]
</noinclude>
</noinclude>

Revision as of 21:24, 12 February 2024

white die

Parameters

Parameter
Default value
Example
Result
Description
1
1
{{WhiteDie|3}}
white die
Optional: specify the die number.
size
40
{{WhiteDie|size=50}}
white die
Optional: specify size in px units.