This is a documentation for Board Game Arena: play board games online !
Template:TaluvaMap: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Created page with "<div style="display:grid;grid:repeat({{{y|2}}},57.2px)/repeat(calc({{{x|4}}} * 2),33.6px);height:calc(({{{y|2}}} * 57.2px) + 16.8px);width:calc({{{x|4}}} * 67.2px);background:radial-gradient(circle,#1ADc 50%,#037c);border-radius:8.4px;padding:16.8px;"> <div style="grid-area:{{{y1|1}}}/{{{x1|1}}}/span 2/span 4;rotate:calc({{{r1|0}}} * 60deg);transform-origin:center 38.8px;">{{{1|}}}</div> <div style="grid-area:{{{y2|1}}}/{{{x2|4}}}/span 2/span 4;rotate:calc({{{r2|0}}} * 6...") |
Sammy McSam (talk | contribs) (n n-c n-bg) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{hexMap | |||
|bg=radial-gradient(circle,#1ADc 50%,#037c) | |||
|n={{{n|display:none}}} | |||
|n-c=#037c | |||
|n-bg=#fff8 | |||
|w={{{w|auto-fit}}} | |||
|{{{1|}}} | |||
}} | |||
<noinclude> | |||
A map for '''[[Template:TaluvaTile]]s'''. | |||
== Example == | == Example == | ||
<div style="display:flex;flex-wrap:wrap;gap: | <div style="display:flex;flex-wrap:wrap;gap:8px;"> | ||
{{TaluvaMap | | {{TaluvaMap |n=1 | | ||
| | {{TaluvaTile | ||
| | |{{TaluvaSand}} |1 | ||
|{{TaluvaClearing}} |{{TaluvaHut}} | |||
| | }} | ||
{{TaluvaTile |x=5 |r=1 | |||
|{{TaluvaSand}} |1 | |||
|{{TaluvaSand}} |1 | |||
}} | }} | ||
{{TaluvaMap | | }}{{TaluvaMap |n=2 | | ||
| | {{TaluvaTile | ||
| | |{{TaluvaSand}} |{{TaluvaHut}} | ||
|{{TaluvaClearing}} |{{TaluvaHut}} | |||
}} | |||
{{TaluvaTile |x=5 |r=1 | |||
|{{TaluvaSand}} |{{TaluvaHut}} | |||
|{{TaluvaSand}} |{{TaluvaHut}} | |||
}} | }} | ||
{{TaluvaMap | | }}</div> | ||
| | <pre style="background:none;border:none;"> | ||
| | {{TaluvaMap |n=1 | | ||
| | {{TaluvaTile | ||
|{{TaluvaSand}} |1 | |||
|{{TaluvaClearing}} |{{TaluvaHut}} | |||
}} | |||
{{TaluvaTile |x=5 |r=1 | |||
|{{TaluvaSand}} |1 | |||
|{{TaluvaSand}} |1 | |||
}} | }} | ||
}} | }} | ||
</pre> | |||
== Parameters == | |||
<div style="display:grid;grid-template-columns:repeat(3,max-content) 1fr;gap:0 0.25rem;overflow:auto;text-overflow:ellipsis;"> | |||
<div style="font-weight:bold;width:8rem;">Parameter</div> | |||
<div style="font-weight:bold;width:8rem;">Default value</div> | |||
<div style="font-weight:bold;width:8rem;">Example</div> | |||
<div style="font-weight:bold;width:8rem;">Description</div> | |||
<div><code>1</code></div> | |||
<div><code>null</code></div> | |||
<div><code><nowiki>{{TaluvaMap |{{TaluvaTile}} }}</nowiki></code></div> | |||
<div>'''''Optional:''''' place tiles on the map.</div> | |||
<div><code>w</code></div> | |||
<div><code>auto-fit</code></div> | |||
<div><code><nowiki>{{hexMap |w=10 }}</nowiki></code></div> | |||
<div>'''''Optional:''''' specify the grid width in hexes.</div> | |||
<div><code>n</code></div> | |||
<div><code>null</code></div> | |||
<div><code><nowiki>{{HexMap |n=1 }}</nowiki></code></div> | |||
<div>'''''Optional:''''' specify text in the top left corner of the map.</div> | |||
</div> | </div> | ||
[[Category:TaluvaIcons]] | [[Category:TaluvaIcons]] | ||
</noinclude> | </noinclude> |
Latest revision as of 14:59, 30 May 2024
A map for Template:TaluvaTiles.
Example
1
1
1
1
2
{{TaluvaMap |n=1 | {{TaluvaTile |{{TaluvaSand}} |1 |{{TaluvaClearing}} |{{TaluvaHut}} }} {{TaluvaTile |x=5 |r=1 |{{TaluvaSand}} |1 |{{TaluvaSand}} |1 }} }}
Parameters
Parameter
Default value
Example
Description
1
null
{{TaluvaMap |{{TaluvaTile}} }}
Optional: place tiles on the map.
w
auto-fit
{{hexMap |w=10 }}
Optional: specify the grid width in hexes.
n
null
{{HexMap |n=1 }}
Optional: specify text in the top left corner of the map.