This is a documentation for Board Game Arena: play board games online !
Template:HexMap: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (gap parameter, place-items:center) |
Sammy McSam (talk | contribs) (Template:Hex update) |
||
| Line 8: | Line 8: | ||
{{hexMap| | {{hexMap| | ||
{{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 }} | |||
{{hiveBee|w= | |||
{{hiveGrasshopper|w= | |||
{{hiveSpider|w= | |||
}} | }} | ||
<pre style="background:none;border:none;"> | <pre style="background:none;border:none;"> | ||
{{hexMap|gap=2| | {{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 }} | |||
{{hiveBee|w= | |||
{{hiveGrasshopper|w= | |||
{{hiveSpider|w= | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 35: | Line 33: | ||
<div style="display:flex;gap:0 8px;flex-wrap:wrap;"> | <div style="display:flex;gap:0 8px;flex-wrap:wrap;"> | ||
{{hexMap |n=1 | | {{hexMap |n=1 | | ||
{{hex |x=3 |y=1 |{{TaluvaSand}} |{{meeple|red}} | {{hex |x=3 |y=1 |{{TaluvaSand}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=5 |y=1 |{{TaluvaSand}} | {{hex |x=5 |y=1 |{{TaluvaSand}} | ||
| Line 43: | Line 41: | ||
{{hex |x=2 |y=2 |{{TaluvaSand}} | {{hex |x=2 |y=2 |{{TaluvaSand}} | ||
}} | }} | ||
{{hex |x=4 |y=2 |{{TaluvaJungle}} |{{meeple|green}} | {{hex |x=4 |y=2 |{{TaluvaJungle}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=6 |y=2 |{{TaluvaJungle}} | {{hex |x=6 |y=2 |{{TaluvaJungle}} | ||
| Line 53: | Line 51: | ||
{{hex |x=3 |y=3 |{{TaluvaJungle}} | {{hex |x=3 |y=3 |{{TaluvaJungle}} | ||
}} | }} | ||
{{hex |x=5 |y=3 |{{TaluvaClearing}} |{{meeple|blue}} | {{hex |x=5 |y=3 |{{TaluvaClearing}} |t={{meeple|blue}} | ||
}} | }} | ||
{{hex |x=7 |y=3 |{{TaluvaClearing}} |{{meeple|red}} | {{hex |x=7 |y=3 |{{TaluvaClearing}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=2 |y=4 |{{TaluvaSand}} |{{meeple|green}} | {{hex |x=2 |y=4 |{{TaluvaSand}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=4 |y=4 |{{TaluvaJungle}} | {{hex |x=4 |y=4 |{{TaluvaJungle}} | ||
}} | }} | ||
{{hex |x=6 |y=4 |{{TaluvaClearing}} |{{meeple|blue}} | {{hex |x=6 |y=4 |{{TaluvaClearing}} |t={{meeple|blue}} | ||
}} | }} | ||
{{hex |x=8 |y=4 |{{TaluvaClearing}} | {{hex |x=8 |y=4 |{{TaluvaClearing}} | ||
| Line 68: | Line 66: | ||
{{hexMap |n=2 | | {{hexMap |n=2 | | ||
{{hex |x=3 |y=1 |{{TaluvaSand}} |{{meeple|red}} | {{hex |x=3 |y=1 |{{TaluvaSand}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=5 |y=1 |{{TaluvaSand}} | {{hex |x=5 |y=1 |{{TaluvaSand}} | ||
| Line 74: | Line 72: | ||
{{hex |x=7 |y=1 |{{TaluvaSand}} | {{hex |x=7 |y=1 |{{TaluvaSand}} | ||
}} | }} | ||
{{hex |x=2 |y=2 |{{TaluvaSand}} |{{meeple|red}} | {{hex |x=2 |y=2 |{{TaluvaSand}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=4 |y=2 |{{TaluvaJungle}} |{{meeple|green}} | {{hex |x=4 |y=2 |{{TaluvaJungle}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=6 |y=2 |{{TaluvaJungle}} |{{meeple|green}} | {{hex |x=6 |y=2 |{{TaluvaJungle}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=8 |y=2 |{{TaluvaJungle}} | {{hex |x=8 |y=2 |{{TaluvaJungle}} | ||
| Line 86: | Line 84: | ||
{{hex |x=3 |y=3 |{{TaluvaJungle}} | {{hex |x=3 |y=3 |{{TaluvaJungle}} | ||
}} | }} | ||
{{hex |x=5 |y=3 |{{TaluvaClearing}} |{{meeple|blue}} | {{hex |x=5 |y=3 |{{TaluvaClearing}} |t={{meeple|blue}} | ||
}} | }} | ||
{{hex |x=7 |y=3 |{{TaluvaClearing}} |{{meeple|red}} | {{hex |x=7 |y=3 |{{TaluvaClearing}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=2 |y=4 |{{TaluvaSand}} |{{meeple|green}} | {{hex |x=2 |y=4 |{{TaluvaSand}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=4 |y=4 |{{TaluvaJungle}} | {{hex |x=4 |y=4 |{{TaluvaJungle}} | ||
}} | }} | ||
{{hex |x=6 |y=4 |{{TaluvaClearing}} |{{meeple|blue}}{{meeple|blue}} | {{hex |x=6 |y=4 |{{TaluvaClearing}} |t={{meeple|blue}}{{meeple|blue}} | ||
}} | }} | ||
{{hex |x=8 |y=4 |{{TaluvaClearing}} | {{hex |x=8 |y=4 |{{TaluvaClearing}} | ||
| Line 103: | Line 101: | ||
<pre style="background:none;border:none;"> | <pre style="background:none;border:none;"> | ||
{{hexMap |n=1 | | {{hexMap |n=1 | | ||
{{hex |x=3 |y=1 |{{TaluvaSand}} |{{meeple|red}} | {{hex |x=3 |y=1 |{{TaluvaSand}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=5 |y=1 |{{TaluvaSand}} | {{hex |x=5 |y=1 |{{TaluvaSand}} | ||
| Line 111: | Line 109: | ||
{{hex |x=2 |y=2 |{{TaluvaSand}} | {{hex |x=2 |y=2 |{{TaluvaSand}} | ||
}} | }} | ||
{{hex |x=4 |y=2 |{{TaluvaJungle}} |{{meeple|green}} | {{hex |x=4 |y=2 |{{TaluvaJungle}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=6 |y=2 |{{TaluvaJungle}} | {{hex |x=6 |y=2 |{{TaluvaJungle}} | ||
| Line 121: | Line 119: | ||
{{hex |x=3 |y=3 |{{TaluvaJungle}} | {{hex |x=3 |y=3 |{{TaluvaJungle}} | ||
}} | }} | ||
{{hex |x=5 |y=3 |{{TaluvaClearing}} |{{meeple|blue}} | {{hex |x=5 |y=3 |{{TaluvaClearing}} |t={{meeple|blue}} | ||
}} | }} | ||
{{hex |x=7 |y=3 |{{TaluvaClearing}} |{{meeple|red}} | {{hex |x=7 |y=3 |{{TaluvaClearing}} |t={{meeple|red}} | ||
}} | }} | ||
{{hex |x=2 |y=4 |{{TaluvaSand}} |{{meeple|green}} | {{hex |x=2 |y=4 |{{TaluvaSand}} |t={{meeple|green}} | ||
}} | }} | ||
{{hex |x=4 |y=4 |{{TaluvaJungle}} | {{hex |x=4 |y=4 |{{TaluvaJungle}} | ||
}} | }} | ||
{{hex |x=6 |y=4 |{{TaluvaClearing}} |{{meeple|blue}} | {{hex |x=6 |y=4 |{{TaluvaClearing}} |t={{meeple|blue}} | ||
}} | }} | ||
{{hex |x=8 |y=4 |{{TaluvaClearing}} | {{hex |x=8 |y=4 |{{TaluvaClearing}} | ||
| Line 176: | Line 174: | ||
<div>'''''Optional:''''' specify the text background as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div> | <div>'''''Optional:''''' specify the text background as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div> | ||
</div> | </div> | ||
<noinclude> | |||
== [[:Category:GameBoardTemplates]] == | |||
{{Category:GameBoardTemplates}} | |||
== Pages using {{FULLPAGENAME}} == | |||
{{Special:WhatLinksHere/{{FULLPAGENAME}}}} | |||
</noinclude> | |||
[[Category:GameBoardTemplates]] | [[Category:GameBoardTemplates]] | ||
Latest revision as of 23:45, 6 December 2025
A map for Template:Hexes and other hexagonal pieces.
Examples
Hive
{{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
2
{{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
1null{{HexMap |{{hex}} }}Optional: place Template:Hex tiles on the map.
x67.195{{hexMap |x=80 }}Optional: specify the grid hex width in px units.
gap0{{hexMap |gap=4 }}Optional: specify the gap between hexes in px units.
wauto-fit{{hexMap |w=20 }}Optional: specify the grid width in hexes.
bgtransparent{{hexMap |bg=green }}Optional: specify the background as a CSS color.
nnull{{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
For documentation on using game board templates on BGA wiki pages, see Template:Chessboard and Template:Goboard9.
Pages using Template:HexMap
- Gamehelphive (transclusion) (← links)
- Gamehelptaluva (transclusion) (← links)
- Tips taluva (transclusion) (← links)
- Wiki formatting (transclusion) (← links)
- Template:TaluvaTile (transclusion) (← links)
- Template:TaluvaMap (transclusion) (← links)
- Template:Hex (← links)
- Template:HexMap (transclusion) (← links)
- Template:HiveAnt (← links)
- Template:HiveBeetle (← links)
- Template:HiveGrasshopper (← links)
- Template:HiveLadybug (← links)
- Template:HiveMosquito (← links)
- Template:HiveBee (← links)
- Template:HiveSpider (← links)
- Template:HivePillBug (← links)
- Template:HiveHexG (← links)
- Template:HiveHexR (← links)
- Template:HiveHexB (← links)
- Template:Ellipse (← links)
- Template:HiveHexW (← links)
