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

Шаблон:HexMap

Матеріал з Board Game Arena
Версія від 12:38, 15 серпня 2026, створена Illia yarosh (обговорення | внесок) (Створена сторінка: <div style="position:relative;display:grid;grid:auto-flow calc(0.5px*{{{x|67.195}}})/repeat({{{w|auto-fit}}},calc(0.75px*{{{x|67.195}}}/cos(30deg)));{{{|g}}}rid:auto-flow calc(0.75px*{{{x|67.195}}}/cos(30deg))/repeat({{{w|auto-fit}}},calc(0.5px*{{{x|67.195}}}));place-items:center;gap:calc(1px*{{{gap|0}}});width:fit-content;max-width:100vw;background:{{{bg|transparent}}};border-radius:8px;padding:16px;margin-top:8px;white-space:nowrap;"><div style="position...)
(різн.) ← Попередня версія | Поточна версія (різн.) | Новіша версія → (різн.)
Перейти до навігації Перейти до пошуку

A map for Template:Hexes and other hexagonal pieces.

Examples

Hive

Soldier Ant​
Beetle​
Grasshopper​
Spider​
Queen Bee​
Grasshopper​
Spider​
{{hexMap|gap=2|
{{hiveAnt           |x=1 |y=2 }}
{{hiveBeetle        |x=2 |y=3 }}
{{hiveGrasshopper   |x=4 |y=3 }}
{{hiveSpider        |x=5 |y=2 }}

{{hiveBee|w=        |x=3 |y=2 }}
{{hiveGrasshopper|w=|x=2 |y=1 }}
{{hiveSpider|w=     |x=4 |y=1 }}
}}

1
Sand​
red meeple​
Sand​
​
Sand​
​
Sand​
​
Jungle​
green meeple​
Jungle​
​
Jungle​
​
Sand​
​
Jungle​
​
Clearing​
blue meeple​
Clearing​
red meeple​
Sand​
green meeple​
Jungle​
​
Clearing​
blue meeple​
Clearing​
​
2
Sand​
red meeple​
Sand​
​
Sand​
​
Sand​
red meeple​
Jungle​
green meeple​
Jungle​
green meeple​
Jungle​
​
Sand​
​
Jungle​
​
Clearing​
blue meeple​
Clearing​
red meeple​
Sand​
green meeple​
Jungle​
​
Clearing​
blue meeple​blue meeple​
Clearing​
​
{{hexMap |n=1 |
{{hex |x=3 |y=1 |{{TaluvaSand}} |t={{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}} |t={{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}} |t={{meeple|blue}}
}}
{{hex |x=7 |y=3 |{{TaluvaClearing}} |t={{meeple|red}}
}}
{{hex |x=2 |y=4 |{{TaluvaSand}} |t={{meeple|green}}
}}
{{hex |x=4 |y=4 |{{TaluvaJungle}}
}}
{{hex |x=6 |y=4 |{{TaluvaClearing}} |t={{meeple|blue}}
}}
{{hex |x=8 |y=4 |{{TaluvaClearing}}
}}
}}

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.
gap
0
{{hexMap |gap=4 }}
Optional: specify the gap between hexes in px units.
w
auto-fit
{{hexMap |w=20 }}
Optional: specify the grid width in hexes.
bg
transparent
{{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-c
#fff (white)
{{hexMap |n-c=green }}
Optional: specify the text color as a CSS color.
n-bg
#199 (teal)
{{hexMap |n-bg=green }}
Optional: specify the text background as a CSS color.

Category:GameBoardTemplates

Pages using Шаблон:HexMap