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

Template:Hex: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(u & l)
mNo edit summary
 
Line 1: Line 1:
<onlyinclude><div style="container-type:size;display:inline-grid;place-items:center;grid-area:{{{y|1}}}/{{{x|1}}}/span 1/span 2;z-index:{{{z}}};position:relative;left:calc(-1*{{{l|0}}}px);top:calc(-1*{{{u|0}}}px);{{{f|w}}}height:{{{w|67.195}}}px;{{{f|w}}}idth:{{{w|67.195}}}px;aspect-ratio:calc(1/({{{f|1/}}}cos(30deg)));clip-path:polygon(
<onlyinclude><div style="container-type:size;display:inline-grid;place-items:center;grid-area:{{{y|1}}}/{{{x|1}}}/span 1/span 2;z-index:{{{z}}};position:relative;left:calc(-1px*({{{l|0}}}));top:calc(-1px*({{{u|0}}}));{{{f|w}}}height:{{{w|67.195}}}px;{{{f|w}}}idth:{{{w|67.195}}}px;aspect-ratio:calc(1/({{{f|1/}}}cos(30deg)));clip-path:polygon(
20.6% 8.66%,23.1% 5.40%,26.2% 2.67%,29.7% 0.822%,33.2% 0,
20.6% 8.66%,23.1% 5.40%,26.2% 2.67%,29.7% 0.822%,33.2% 0,
66.8% 0,70.3% 0.822%,73.8% 2.67%,76.9% 5.40%,79.3% 8.66%,
66.8% 0,70.3% 0.822%,73.8% 2.67%,76.9% 5.40%,79.3% 8.66%,

Latest revision as of 15:31, 9 December 2025

Parameters

Id
Name
Default
Example
Result
Description
1
Image
empty
{{hex|{{TaluvaClearing}}}}
Clearing
r
Rotation
0
{{hex|{{TaluvaClearing}}|r=1}}
Clearing
rotation in units of 60° (0-5).
f
Flat-top
pointed-top
{{hex|f=}}
transform to a flat-top hex.
c
Corners
n/a
{{hex|c=}}
rounded corners.
b
Background
#ddd
{{hex|b=green}}
background as a CSS color.
ec
Edge color
transparent
{{hex|ec=green}}
edge color as a CSS color.
ew
Edge width
8
{{hex|ec=black|ew=12}}
edge width as a percentage of the hex width.
ac
Arrow color
transparent
{{hex|ac=green}}
arrow color as a CSS color.
ar
Arrow rotation
0
{{hex|ac=black|ar=1}}
arrow rotation in units of 60° (0-5).
t
Text
empty
{{hex|t=1}}
1
text value.
tc
Text color
white
{{hex|t=1|tc=green}}
1
text color as a CSS color.
to
Text outline
black
{{hex|t=1|to=green}}
1
text outline color as a CSS color.
w
Width
67.195
{{hex|w=50}}
width in pixels.
u
Up
0
{{hex|u=8}}
translate up in pixels.
l
Left
0
{{hex|l=8}}
translate left in pixels.
x
X
1
{{hex|x=3}}
x coordinate on a Template:HexMap.
y
Y
1
{{hex|y=2}}
y coordinate on a Template:HexMap.
z
Z
empty
{{hex|z=2}}
z coordinate on a Template:HexMap.

Category:ShapeTemplates

Category:ShapeTemplates

Pages using Template:Hex