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

Template:HiveSpider: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(variables)
(bg image to css)
 
Line 1: Line 1:
{{hex|=
{{hex |rounded=
|bg=transparent
|bg=linear-gradient(#000 0 {{{w|10}}}0%,#E6D3A0 {{{w|10}}}0% 100%);
|w=68
|r=clamp(0,{{{f|0}}},1)
|r=(1 - clamp(0,{{{ft|0}}},1))
|w=60
|x={{{x|1}}}
|x={{{x|1}}}
|y={{{y|1}}}
|y={{{y|1}}}
|{{gameIcon
|{{hex
|imageFileName=HiveIcons.png
|w=60
|scale=0.8
|width=68
|height=62
|x=578.5
|y=calc({{{1|0}}}*72 + 4)
}}
|{{hex|=
|bg=transparent
|bg=transparent
|w=68
|r=calc({{{r|0}}} - {{{f|0}}})
|r={{{r|0}}}
|{{gameIcon
|{{gameIcon
|tooltip=Spider
|tooltip=Spider
|imageFileName=HiveIcons.png
|imageFileName=HiveIcons.png
|scale=0.8
|scale=0.8
|width=68
|width=60
|height=62
|height=67.2
|x=calc(6*72 + 2)
|x=calc(6 + 6*72)
|y=calc({{{1|0}}}*72 + 4)
|y=calc(2.4 + 72 {{{w|- 72}}})
}}
}}
}}
}}
Line 37: 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>1</code></div>
   <div><code>w</code></div>
   <div><code>0</code></div>
   <div><code>n/a</code></div>
   <div><code><nowiki>{{hiveSpider |1 }}</nowiki></code></div>
   <div><code><nowiki>{{hiveSpider |w= }}</nowiki></code></div>
   <div>{{hiveSpider |1 }}</div>
   <div>{{hiveSpider |w= }}</div>
   <div>'''''Optional:''''' dark (<code>0</code>) / light (<code>1</code>).</div>
   <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 57: Line 49:
   <div>{{hiveSpider |r=1 }}</div>
   <div>{{hiveSpider |r=1 }}</div>
   <div>'''''Optional:''''' rotate in units of 30° (<code>0</code>-<code>11</code>).</div>
   <div>'''''Optional:''''' rotate in units of 30° (<code>0</code>-<code>11</code>).</div>
   <div><code>ft</code></div>
   <div><code>f</code></div>
   <div><code>0</code></div>
   <div><code>0</code></div>
   <div><code><nowiki>{{hiveSpider |ft=1 }}</nowiki></code></div>
   <div><code><nowiki>{{hiveSpider |f=1 }}</nowiki></code></div>
   <div>{{hiveSpider |ft=1 }}</div>
   <div>{{hiveSpider |f=1 }}</div>
   <div>'''''Optional:''''' transform from pointed-top hex (<code>0</code>) to flat-top hex (<code>1</code>).</div>
   <div>'''''Optional:''''' transform from pointed-top hex (<code>0</code>) to flat-top hex (<code>1</code>).</div>
</div>
</div>

Latest revision as of 00:09, 28 May 2024

Spider

Parameters

Parameter
Default value
Example
Result
Description
w
n/a
{{hiveSpider |w= }}
Spider
Optional: change the hex color from black to white.
x
1
{{hiveSpider |x=3 }}
Spider
Optional: specify the x co-ordinate of the hex on a Template:HexMap.
y
1
{{hiveSpider |y=2 }}
Spider
Optional: specify the y co-ordinate of the hex on a Template:HexMap.
r
0
{{hiveSpider |r=1 }}
Spider
Optional: rotate in units of 30° (0-11).
f
0
{{hiveSpider |f=1 }}
Spider
Optional: transform from pointed-top hex (0) to flat-top hex (1).