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

Template:Hex

From Board Game Arena
Revision as of 15:34, 30 May 2024 by Sammy McSam (talk | contribs) (parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Parameters

Parameter
Default value
Example
Result
Description
1
​
{{hex |{{TaluvaClearing}} }}
Clearing
Optional: specify a Template:GameIcon image.
2
​
{{hex | |1 }}
1
Optional: specify a text value.
textColor
#fff (white)
{{hex | |1 |textColor=green }}
1
Optional: specify the text color as a CSS color.
textOutline
#000 (black)
{{hex | |1 |textOutline=green }}
1
Optional: specify the text outline color as a CSS color.
bg
#ddd
{{hex |bg=green }}
Optional: specify the background as a CSS color.
rounded
n/a
{{hex |rounded= }}
Optional: rounded corners.
w
67.195
{{hex |w=50 }}
Optional: specify the width of the hex.
x
1
{{hex |x=3 }}
Optional: specify the x co-ordinate of the hex on a Template:HexMap.
y
1
{{hex |y=2 }}
Optional: specify the y co-ordinate of the hex on a Template:HexMap.
z
null
{{hex |z=2 }}
Optional: specify the z-axis position.
r
0
{{hex |r=1 |🡅 }}
🡅
Optional: specify the rotation in units of 30° (0-11).
null
n/a
{{hex |= |🡅 }}
🡅
Optional: transform to a flat-top hex.