This is a documentation for Board Game Arena: play board games online !
Template:Hex: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) mNo edit summary |
Sammy McSam (talk | contribs) m (ar) |
||
| Line 13: | Line 13: | ||
100% 33.2%,99.2% 29.7%,97.3% 26.2%,94.6% 23.1%,91.3% 20.7%, | 100% 33.2%,99.2% 29.7%,97.3% 26.2%,94.6% 23.1%,91.3% 20.7%, | ||
58.7% 4.33%,54.6% 3.11%,50% 2.67%,45.4% 3.11%,41.3% 4.33% | 58.7% 4.33%,54.6% 3.11%,50% 2.67%,45.4% 3.11%,41.3% 4.33% | ||
);c{{{c|l}}}ip-path:polygon(0 50%,50% -50%,100% 50%,50% 150%);{{{f|c}}}{{{c|l}}}ip-path:polygon(-50% 50%,50% 100%,150% 50%,50% 0);overflow:clip;background:{{{b|#ddd}}};"><div style="grid-area:1/1;">{{{1|​}}}</div><div style="grid-area:1/1;width:100%;height:100%;clip-path:polygon(0 50%,50% -50%,100% 50%,50% 150%,0 50%,{{{ew|4}}}px 50%,calc(25% + {{{ew|4}}}px*cos(60deg)) calc(100% - {{{ew|4}}}px*sin(60deg)),calc(75% - {{{ew|4}}}px*cos(60deg)) calc(100% - {{{ew|4}}}px*sin(60deg)),calc(100% - {{{ew|4}}}px) 50%,calc(75% - {{{ew|4}}}px*cos(60deg)) calc({{{ew|4}}}px*sin(60deg)),calc(25% + {{{ew|4}}}px*cos(60deg)) calc({{{ew|4}}}px*sin(60deg)),{{{ew|4}}}px 50%);{{{f|c}}}lip-path:polygon(50% 0,-50% 50%,50% 100%,150% 50%,50% 0,50% {{{ew|4}}}px,calc(100% - {{{ew|4}}}px*sin(60deg)) calc(25% + {{{ew|4}}}px*cos(60deg)),calc(100% - {{{ew|4}}}px*sin(60deg)) calc(75% - {{{ew|4}}}px*cos(60deg)),50% calc(100% - {{{ew|4}}}px),calc({{{ew|4}}}px*sin(60deg)) calc(75% - {{{ew|4}}}px*cos(60deg)),calc({{{ew|4}}}px*sin(60deg)) calc(25% + {{{ew|4}}}px*cos(60deg)),50% {{{ew|4}}}px);background:{{{ec|#0000}}}"></div><div style="grid-area:1/1;height:100%;rotate:calc(({{{ar|0}}} | );c{{{c|l}}}ip-path:polygon(0 50%,50% -50%,100% 50%,50% 150%);{{{f|c}}}{{{c|l}}}ip-path:polygon(-50% 50%,50% 100%,150% 50%,50% 0);overflow:clip;background:{{{b|#ddd}}};"><div style="grid-area:1/1;">{{{1|​}}}</div><div style="grid-area:1/1;width:100%;height:100%;clip-path:polygon(0 50%,50% -50%,100% 50%,50% 150%,0 50%,{{{ew|4}}}px 50%,calc(25% + {{{ew|4}}}px*cos(60deg)) calc(100% - {{{ew|4}}}px*sin(60deg)),calc(75% - {{{ew|4}}}px*cos(60deg)) calc(100% - {{{ew|4}}}px*sin(60deg)),calc(100% - {{{ew|4}}}px) 50%,calc(75% - {{{ew|4}}}px*cos(60deg)) calc({{{ew|4}}}px*sin(60deg)),calc(25% + {{{ew|4}}}px*cos(60deg)) calc({{{ew|4}}}px*sin(60deg)),{{{ew|4}}}px 50%);{{{f|c}}}lip-path:polygon(50% 0,-50% 50%,50% 100%,150% 50%,50% 0,50% {{{ew|4}}}px,calc(100% - {{{ew|4}}}px*sin(60deg)) calc(25% + {{{ew|4}}}px*cos(60deg)),calc(100% - {{{ew|4}}}px*sin(60deg)) calc(75% - {{{ew|4}}}px*cos(60deg)),50% calc(100% - {{{ew|4}}}px),calc({{{ew|4}}}px*sin(60deg)) calc(75% - {{{ew|4}}}px*cos(60deg)),calc({{{ew|4}}}px*sin(60deg)) calc(25% + {{{ew|4}}}px*cos(60deg)),50% {{{ew|4}}}px);background:{{{ec|#0000}}}"></div><div style="grid-area:1/1;height:100%;rotate:calc(({{{ar|0}}}{{{f| + .5}}})*60deg)"><div style="aspect-ratio:3/4;height:25%;clip-path:polygon(25% 0,25% 50%,0 50%,50% 100%,100% 50%,75% 50%,75% 0);background:{{{ac|#0000}}}"></div></div><div style="grid-area:1/1;rotate:calc({{{r|0}}}*-30deg);color:{{{tc|#fff}}};font-family:Roboto,Arial,sans-serif;font-weight:900;font-size:28px;-webkit-text-stroke:1.2px {{{to|#000}}};">{{{t|​}}}</div></div></onlyinclude> | ||
== Parameters == | == Parameters == | ||
Revision as of 01:44, 6 December 2025
Parameters
Id
Name
Default
Example
Result
Description
1
Image
empty
{{hex|{{TaluvaClearing}}}}
Optional: Template:GameIcon image.
r
Rotation
0
{{hex|{{TaluvaClearing}}|r=1}}
Optional: rotation in units of 30° (0-11).
f
Flat-top
pointed-top
{{hex|f=}}
Optional: transform to a flat-top hex.
c
Corners
n/a
{{hex|c=}}
Optional: rounded corners.
b
Background
#ddd
{{hex|b=green}}
Optional: background as a CSS color.
ec
Edge color
transparent
{{hex|ec=green}}
Optional: edge color as a CSS color.
ew
Edge width
4
{{hex|ec=black|ew=8}}
Optional: edge width in pixels.
ac
Arrow color
transparent
{{hex|ac=green}}
Optional: arrow color as a CSS color.
ar
Arrow rotation
0
{{hex|ac=black|ar=1}}
Optional: arrow rotation in units of 60° (0-5).
t
Text
empty
{{hex|t=1}}
1
Optional: text value.
tc
Text color
white
{{hex|t=1|tc=green}}
1
Optional: text color as a CSS color.
to
Text outline
black
{{hex|t=1|to=green}}
1
Optional: text outline color as a CSS color.
w
Width
67.195
{{hex|w=50}}
Optional: width of the hex.
x
X
1
{{hex|x=3}}
Optional: x coordinate of the hex on a Template:HexMap.
y
Y
1
{{hex|y=2}}
Optional: y coordinate of the hex on a Template:HexMap.
z
Z
empty
{{hex|z=2}}
Optional: z-axis position stacking order.
Category:ShapeTemplates
Pages using Template:Hex
- Gamehelphive (transclusion) (← links)
- Wiki formatting (transclusion) (← links)
- Template:Hex (transclusion) (← links)
- Template:HexMap (transclusion) (← links)
- Template:HiveAnt (transclusion) (← links)
- Template:HiveBeetle (transclusion) (← links)
- Template:HiveGrasshopper (transclusion) (← links)
- Template:HiveLadybug (transclusion) (← links)
- Template:HiveMosquito (transclusion) (← links)
- Template:HiveBee (transclusion) (← links)
- Template:HiveSpider (transclusion) (← links)
- Template:HivePillBug (transclusion) (← links)
- Template:HiveHexG (transclusion) (← links)
- Template:HiveHexR (transclusion) (← links)
- Template:HiveHexB (transclusion) (← links)
- Template:HiveHexW (transclusion) (← links)
