This is a documentation for Board Game Arena: play board games online !
Template:HexMap
Jump to navigation
Jump to search
A map for Template:Hexes and other hexagonal pieces.
Examples
1
2
{{hexMap |n=1 | {{hex |x=3 |y=1 |{{TaluvaSand}} |{{meeple|red}} }} {{hex |x=5 |y=1 |{{TaluvaSand}} }} {{hex |x=7 |y=1 |{{TaluvaSand}} }} {{hex |x=2 |y=2 |{{TaluvaSand}} }} {{hex |x=4 |y=2 |{{TaluvaJungle}} |{{meeple|green}} }} {{hex |x=6 |y=2 |{{TaluvaJungle}} }} {{hex |x=8 |y=2 |{{TaluvaJungle}} }} {{hex |x=1 |y=3 |{{TaluvaSand}} }} {{hex |x=3 |y=3 |{{TaluvaJungle}} }} {{hex |x=5 |y=3 |{{TaluvaClearing}} |{{meeple|blue}} }} {{hex |x=7 |y=3 |{{TaluvaClearing}} |{{meeple|red}} }} {{hex |x=2 |y=4 |{{TaluvaSand}} |{{meeple|green}} }} {{hex |x=4 |y=4 |{{TaluvaJungle}} }} {{hex |x=6 |y=4 |{{TaluvaClearing}} |{{meeple|blue}} }} {{hex |x=8 |y=4 |{{TaluvaClearing}} }} }}
1
2
{{hexMap|= |bg=transparent |n=1 | {{hiveBee |x=2 |y=2 }} {{hiveAnt |x=3 |y=5 }} {{hiveBeetle |x=1 |y=7 }} {{hiveGrasshopper |x=4 |y=8 }} {{hiveSpider |x=2 |y=4 }} {{hiveLadybug |x=2 |y=8 }} {{hiveBee|1 |x=2 |y=6 }} {{hiveAnt|1 |x=3 |y=1 }} {{hiveBeetle|1 |x=3 |y=3 }} {{hiveGrasshopper|1 |x=1 |y=3 }} {{hiveSpider|1 |x=3 |y=7 }} {{hiveLadybug|1 |x=4 |y=2 }} }}
Parameters
Parameter
Default value
Example
Description
1
null
{{HexMap |{{hex}} }}
Optional: place Template:Hex tiles on the map.
x
67.195
{{hexMap |x=80 }}
Optional: specify the grid hex width in px units.
w
auto-fit
{{hexMap |w=20 }}
Optional: specify the grid width in hexes.
bg
#199
(teal){{hexMap |bg=green }}
Optional: specify the background as a CSS color.
n
null
{{HexMap |n=1 }}
Optional: specify text in the top left corner of the map.
n-bg
#199
(teal){{hexMap |n-bg=green }}
Optional: specify the text background as a CSS color.