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) (Parameters) |
Sammy McSam (talk | contribs) (n n-c n-bg) |
||
(4 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 == | |||
== | <div style="display:flex;flex-wrap:wrap;gap:8px;"> | ||
{{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}} | |||
}} | }} | ||
}}</div> | |||
}} | |||
<pre style="background:none;border:none;"> | <pre style="background:none;border:none;"> | ||
{{TaluvaMap |n=1 | | |||
{{TaluvaMap | | |||
| | |||
{{ | {{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.