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

Template:HiveLadybug: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(bg image to css)
(Template:Hex update)
Line 1: Line 1:
{{hex |rounded=
<onlyinclude>{{hex
|bg=linear-gradient(#000 0 {{{w|10}}}0%,#E6D3A0 {{{w|10}}}0% 100%);
|r=5.5
|r=clamp(0,{{{f|0}}},1)
|c=
|b=linear-gradient(#000 0 {{{w|10}}}0%,#E6D3A0 {{{w|10}}}0% 100%);
|w=60
|w=60
|x={{{x|1}}}
|x={{{x|1}}}
|y={{{y|1}}}
|y={{{y|1}}}
|{{hex
|ec={{{h|#0000}}}
|w=60
|ac={{{h|#0000}}}
|bg=transparent
|ar={{{ar|0}}}
|r=calc({{{r|0}}} - {{{f|0}}})
|t={{{t|}}}
|{{gameIcon
|{{gameIcon
|tooltip=Ladybug
|tooltip=Ladybug
Line 18: Line 19:
|y=calc(2.4 + 72 {{{w|- 72}}})
|y=calc(2.4 + 72 {{{w|- 72}}})
}}
}}
}}
}}</onlyinclude>
}}<noinclude>


== Parameters ==
== Parameters ==


<div style="display:grid;grid-template-columns:5rem min-content 18rem min-content 1fr;gap:0.25rem;overflow:auto;text-overflow:ellipsis;">
<div style="display:grid;grid-template-columns:repeat(5,max-content) 1fr;gap:0 0.25rem;overflow:auto;text-overflow:ellipsis;">
   <div style="font-weight:bold;width:8rem;">Parameter</div>
   <div>{{text|w=bold|Id}}</div>
   <div style="font-weight:bold;width:8rem;">Default value</div>
  <div>{{text|w=bold|Name}}</div>
   <div style="font-weight:bold;width:8rem;">Example</div>
   <div>{{text|w=bold|Default}}</div>
   <div style="font-weight:bold;width:8rem;">Result</div>
   <div>{{text|w=bold|Example}}</div>
   <div style="font-weight:bold;width:8rem;">Description</div>
   <div>{{text|w=bold|Result}}</div>
   <div>{{text|w=bold|Description}}</div>
   <div><code>w</code></div>
   <div><code>w</code></div>
   <div><code>n/a</code></div>
   <div>White</div>
   <div><code><nowiki>{{hiveLadybug |w= }}</nowiki></code></div>
  <div>black</div>
   <div>{{hiveLadybug |w= }}</div>
   <div>{{code|<nowiki>{{HiveLadybug</nowiki>{{text|<nowiki>|w=</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
   <div>{{HiveLadybug|w=}}</div>
   <div>'''''Optional:''''' change the hex color from black to white.</div>
   <div>'''''Optional:''''' change the hex color from black to white.</div>
  <div><code>r</code></div>
  <div>Rotation</div>
  <div><code>0</code></div>
  <div>{{code|<nowiki>{{HiveLadybug</nowiki>{{text|<nowiki>|r=1</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
  <div>{{HiveLadybug|r=1}}</div>
  <div>'''''Optional:''''' rotate in units of 30° (<code>0</code>-<code>11</code>).</div>
  <div>{{code|h}}</div>
  <div>Highlight</div>
  <div>transparent</div>
  <div>{{code|<nowiki>{{HiveLadybug</nowiki>{{text|<nowiki>|h=#0f0</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
  <div>{{HiveLadybug|h=#0f0}}</div>
  <div>'''''Optional:''''' highlight color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div>
  <div>{{code|ar}}</div>
  <div>Arrow rotation</div>
  <div>{{code|0}}</div>
  <div>{{code|<nowiki>{{HiveLadybug|h=lightgreen</nowiki>{{text|<nowiki>|ar=1</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
  <div>{{HiveLadybug|h=lightgreen|ar=1}}</div>
  <div>'''''Optional:''''' arrow rotation in units of 60° ({{code|0}}-{{code|5}}).</div>
  <div>{{code|t}}</div>
  <div>Text</div>
  <div>empty</div>
  <div>{{code|<nowiki>{{HiveLadybug</nowiki>{{text|<nowiki>|t=1</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
  <div>{{HiveLadybug|t=1}}</div>
  <div>'''''Optional:''''' text value.</div>
   <div><code>x</code></div>
   <div><code>x</code></div>
  <div>X</div>
   <div><code>1</code></div>
   <div><code>1</code></div>
   <div><code><nowiki>{{hiveLadybug |x=3 }}</nowiki></code></div>
   <div>{{code|<nowiki>{{HiveLadybug</nowiki>{{text|<nowiki>|x=3</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
   <div>{{hiveLadybug |x=3 }}</div>
   <div></div>
   <div>'''''Optional:''''' specify the x co-ordinate of the hex on a '''[[Template:HexMap]]'''.</div>
   <div>'''''Optional:''''' x co-ordinate on a '''[[Template:HexMap]]'''.</div>
   <div><code>y</code></div>
   <div><code>y</code></div>
  <div>Y</div>
   <div><code>1</code></div>
   <div><code>1</code></div>
   <div><code><nowiki>{{hiveLadybug |y=2 }}</nowiki></code></div>
   <div>{{code|<nowiki>{{HiveLadybug</nowiki>{{text|<nowiki>|y=2</nowiki>|#dfd}}<nowiki>}}</nowiki>}}</div>
   <div>{{hiveLadybug |y=2 }}</div>
   <div></div>
   <div>'''''Optional:''''' specify the y co-ordinate of the hex on a '''[[Template:HexMap]]'''.</div>
   <div>'''''Optional:''''' y co-ordinate on a '''[[Template:HexMap]]'''.</div>
  <div><code>r</code></div>
  <div><code>0</code></div>
  <div><code><nowiki>{{hiveLadybug |r=1 }}</nowiki></code></div>
  <div>{{hiveLadybug |r=1 }}</div>
  <div>'''''Optional:''''' rotate in units of 30° (<code>0</code>-<code>11</code>).</div>
  <div><code>f</code></div>
  <div><code>0</code></div>
  <div><code><nowiki>{{hiveLadybug |f=1 }}</nowiki></code></div>
  <div>{{hiveLadybug |f=1 }}</div>
  <div>'''''Optional:''''' transform from pointed-top hex (<code>0</code>) to flat-top hex (<code>1</code>).</div>
</div>
</div>


[[Category:HiveIcons]]
[[Category:HiveIcons]]
</noinclude>

Revision as of 23:25, 6 December 2025

Ladybug

Parameters

Id
Name
Default
Example
Result
Description
w
White
black
{{HiveLadybug|w=}}
Ladybug
Optional: change the hex color from black to white.
r
Rotation
0
{{HiveLadybug|r=1}}
Ladybug
Optional: rotate in units of 30° (0-11).
h
Highlight
transparent
{{HiveLadybug|h=#0f0}}
Ladybug
Optional: highlight color as a CSS color.
ar
Arrow rotation
0
{{HiveLadybug|h=lightgreen|ar=1}}
Ladybug
Optional: arrow rotation in units of 60° (0-5).
t
Text
empty
{{HiveLadybug|t=1}}
Ladybug
1
Optional: text value.
x
X
1
{{HiveLadybug|x=3}}
Optional: x co-ordinate on a Template:HexMap.
y
Y
1
{{HiveLadybug|y=2}}
Optional: y co-ordinate on a Template:HexMap.