This is a documentation for Board Game Arena: play board games online !
Template:HiveHexR: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Created page with "{{hex|= |bg=transparent |w=68 |r=(1 - clamp(0,{{{ft|0}}},1)) |x={{{x|1}}} |y={{{y|1}}} |{{gameIcon |imageFileName=HiveIcons.png |scale=0.8 |width=68 |height=72 |x=722.5 |y=72 }} |{{hex|= |bg=transparent |w=68 |r={{{r|0}}} |{{gameIcon |imageFileName=HiveIcons.png |scale=0.8 |width=68 |height=72 |x=calc(12*72 + 2) |y=72 }} |textColor=#D3162E |outlineColor=#fff |{{{1|{{gameIcon |tooltip=cannot move here |imageFileName=HiveIcons.png |scale=0.8 |width=68 |height=72 |x=calc(11...") |
Sammy McSam (talk | contribs) (z-axis) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
|x={{{x|1}}} | |x={{{x|1}}} | ||
|y={{{y|1}}} | |y={{{y|1}}} | ||
|z=2 | |||
|{{gameIcon | |{{gameIcon | ||
|imageFileName=HiveIcons.png | |imageFileName=HiveIcons.png | ||
|scale=0.8 | |scale=0.8 | ||
|width=68 | |width=68 | ||
|height= | |height=62 | ||
|x=722.5 | |x=722.5 | ||
|y= | |y=76 | ||
|z=2 | |||
}} | }} | ||
|{{hex|= | |{{hex|= | ||
|bg=transparent | |bg=transparent | ||
|w=68 | |w=68 | ||
|r={{{r| | |r={{{r|11}}} | ||
|{{gameIcon | |z=4 | ||
|{{{a|{{gameIcon | |||
|imageFileName=HiveIcons.png | |imageFileName=HiveIcons.png | ||
|scale=0.8 | |scale=0.8 | ||
Line 24: | Line 27: | ||
|x=calc(12*72 + 2) | |x=calc(12*72 + 2) | ||
|y=72 | |y=72 | ||
}} | |z=4 | ||
}}}}} | |||
|textColor=#D3162E | |textColor=#D3162E | ||
|outlineColor=#fff | |outlineColor=#fff | ||
Line 35: | Line 39: | ||
|x=calc(11*72 + 2) | |x=calc(11*72 + 2) | ||
|y=72 | |y=72 | ||
|z=3 | |||
}}}}} | }}}}} | ||
}} | }} | ||
Line 48: | Line 53: | ||
<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>1</code></div> | ||
<div> | <div>'''[[Template:GameIcon]]''' (cross mark)</div> | ||
<div><code><nowiki>{{HiveHexR |1 }}</nowiki></code></div> | <div><code><nowiki>{{HiveHexR |1 }}</nowiki></code></div> | ||
<div>{{HiveHexR |1 }}</div> | <div>{{HiveHexR |1 }}</div> | ||
<div>'''''Optional:''''' replace the cross mark with text.</div> | <div>'''''Optional:''''' replace the cross mark with text.</div> | ||
<div><code>a</code></div> | |||
<div>'''[[Template:GameIcon]]''' (arrow)</div> | |||
<div><code><nowiki>{{HiveHexR |a= }}</nowiki></code></div> | |||
<div>{{HiveHexR |a= }}</div> | |||
<div>'''''Optional:''''' hide the arrow.</div> | |||
<div><code>x</code></div> | <div><code>x</code></div> | ||
<div><code>1</code></div> | <div><code>1</code></div> | ||
Line 63: | Line 73: | ||
<div>'''''Optional:''''' specify the y co-ordinate of the hex on a '''[[Template:HexMap]]'''.</div> | <div>'''''Optional:''''' specify the y co-ordinate of the hex on a '''[[Template:HexMap]]'''.</div> | ||
<div><code>r</code></div> | <div><code>r</code></div> | ||
<div><code> | <div><code>11</code></div> | ||
<div><code><nowiki>{{HiveHexR |r=1 }}</nowiki></code></div> | <div><code><nowiki>{{HiveHexR |r=1 }}</nowiki></code></div> | ||
<div>{{HiveHexR |r=1 }}</div> | <div>{{HiveHexR |r=1 }}</div> |
Latest revision as of 02:16, 25 May 2024
Parameters
Parameter
Default value
Example
Result
Description
1
Template:GameIcon (cross mark)
{{HiveHexR |1 }}
1
Optional: replace the cross mark with text.
a
Template:GameIcon (arrow)
{{HiveHexR |a= }}
Optional: hide the arrow.
x
1
{{HiveHexR |x=3 }}
Optional: specify the x co-ordinate of the hex on a Template:HexMap.
y
1
{{HiveHexR |y=2 }}
Optional: specify the y co-ordinate of the hex on a Template:HexMap.
r
11
{{HiveHexR |r=1 }}
Optional: rotate the arrow in units of 30° (
0
-11
).ft
0
{{HiveHexR |ft=1 }}
Optional: transform from pointed-top hex (
0
) to flat-top hex (1
).