This is a documentation for Board Game Arena: play board games online !
Template:HiveLadybug: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Template:HexMap coordinates) |
Sammy McSam (talk | contribs) (bg image to css) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{hex|= | {{hex |rounded= | ||
|bg= | |bg=linear-gradient(#000 0 {{{w|10}}}0%,#E6D3A0 {{{w|10}}}0% 100%); | ||
|w= | |r=clamp(0,{{{f|0}}},1) | ||
|w=60 | |||
|x={{{x|1}}} | |x={{{x|1}}} | ||
|y={{{y|1}}} | |y={{{y|1}}} | ||
|{{ | |{{hex | ||
|w=60 | |||
| | |||
|bg=transparent | |bg=transparent | ||
|r=calc({{{r|0}}} - {{{f|0}}}) | |||
|r=calc({{{r|0}}} | |||
|{{gameIcon | |{{gameIcon | ||
|tooltip=Ladybug | |tooltip=Ladybug | ||
|imageFileName=HiveIcons.png | |imageFileName=HiveIcons.png | ||
|scale=0.8 | |scale=0.8 | ||
|width= | |width=60 | ||
|height= | |height=67.2 | ||
|x=calc(3*72 | |x=calc(6 + 3*72) | ||
|y=calc({{{ | |y=calc(2.4 + 72 {{{w|- 72}}}) | ||
}} | }} | ||
}} | }} | ||
Line 36: | Line 29: | ||
<div style="font-weight:bold;width:8rem;">Result</div> | <div style="font-weight:bold;width:8rem;">Result</div> | ||
<div style="font-weight:bold;width:8rem;">Description</div> | <div style="font-weight:bold;width:8rem;">Description</div> | ||
<div><code> | <div><code>w</code></div> | ||
<div><code> | <div><code>n/a</code></div> | ||
<div><code><nowiki>{{hiveLadybug | | <div><code><nowiki>{{hiveLadybug |w= }}</nowiki></code></div> | ||
<div>{{hiveLadybug | | <div>{{hiveLadybug |w= }}</div> | ||
<div>'''''Optional:''''' | <div>'''''Optional:''''' change the hex color from black to white.</div> | ||
<div><code>x</code></div> | <div><code>x</code></div> | ||
<div><code>1</code></div> | <div><code>1</code></div> | ||
Line 55: | Line 48: | ||
<div><code><nowiki>{{hiveLadybug |r=1 }}</nowiki></code></div> | <div><code><nowiki>{{hiveLadybug |r=1 }}</nowiki></code></div> | ||
<div>{{hiveLadybug |r=1 }}</div> | <div>{{hiveLadybug |r=1 }}</div> | ||
<div>'''''Optional:''''' rotate in units of | <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> | </noinclude> |
Latest revision as of 23:09, 27 May 2024
Parameters
Parameter
Default value
Example
Result
Description
w
n/a
{{hiveLadybug |w= }}
Optional: change the hex color from black to white.
x
1
{{hiveLadybug |x=3 }}
Optional: specify the x co-ordinate of the hex on a Template:HexMap.
y
1
{{hiveLadybug |y=2 }}
Optional: specify the y co-ordinate of the hex on a Template:HexMap.
r
0
{{hiveLadybug |r=1 }}
Optional: rotate in units of 30° (
0
-11
).f
0
{{hiveLadybug |f=1 }}
Optional: transform from pointed-top hex (
0
) to flat-top hex (1
).