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) No edit summary |
||
Line 1: | Line 1: | ||
<div style="display:grid;grid:repeat({{{ | <div style="display:grid;grid:repeat({{{height|3}}},57.6px)/repeat({{{width|auto-fill}}},33.6px);background:radial-gradient(circle,#1ADc 50%,#037c);border-radius:8px;padding:16px;">{{{1|}}}</div><noinclude> | ||
</div><noinclude> | |||
A map for '''[[Template:TaluvaTile]]s'''. | |||
== Example == | == Example == | ||
{{TaluvaMap| | |||
{{TaluvaMap | | {{TaluvaTile | ||
|{{TaluvaClearing}} |1 | |||
| | |{{TaluvaJungle}} |1 | ||
|{{ | |||
}} | }} | ||
{{TaluvaTile |x=7 |r=1 | |||
{{ | |{{TaluvaRock}} |2 | ||
|{{TaluvaTile|{{ | |{{TaluvaSand}} |2 | ||
| | }} | ||
| | {{TaluvaTile |x=12 |y=2 |r=2 | ||
|{{TaluvaLake}} |3 | |||
|{{TaluvaClearing}} |3 | |||
}} | |||
{{TaluvaTile |x=16 |y=2 |r=3 | |||
|{{TaluvaJungle}} |{{TaluvaHut|2}} | |||
|{{TaluvaRock}} |{{TaluvaHut|2}} | |||
}} | |||
{{TaluvaTile |x=20 |y=2 |r=4 | |||
|{{TaluvaSand}} |{{TaluvaHut|3}} | |||
|{{TaluvaLake}} |{{TaluvaTower}} | |||
}} | }} | ||
}} | }} | ||
<pre style="background:none;border:none;"> | |||
{{TaluvaMap| | |||
{{ | {{TaluvaTile | ||
|{{TaluvaClearing}} |1 | |||
|{{TaluvaJungle}} |1 | |||
| | |||
}} | }} | ||
{{TaluvaTile |x=7 |r=1 | |||
{{ | |{{TaluvaRock}} |2 | ||
|{{TaluvaSand}} |2 | |||
|{{ | |||
| | |||
}} | }} | ||
{{TaluvaTile |x=12 |y=2 |r=2 | |||
|{{TaluvaLake}} |3 | |||
|{{TaluvaClearing}} |3 | |||
{{ | |||
|{{ | |||
| | |||
|{{ | |||
}} | }} | ||
{{TaluvaTile |x=16 |y=2 |r=3 | |||
{{ | |{{TaluvaJungle}} |{{TaluvaHut|2}} | ||
|{{ | |{{TaluvaRock}} |{{TaluvaHut|2}} | ||
|{{ | |||
}} | }} | ||
{{TaluvaTile |x=20 |y=2 |r=4 | |||
{{ | |{{TaluvaSand}} |{{TaluvaHut|3}} | ||
|{{TaluvaLake}} |{{TaluvaTower}} | |||
|{{ | |||
}} | }} | ||
}} | }} | ||
</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>width</code></div> | |||
<div><code>auto-fill</code></div> | |||
<div><code><nowiki>{{TaluvaMap |width=6}}</nowiki></code></div> | |||
<div>'''''Optional:''''' specify the map width.</div> | |||
<div><code>height</code></div> | |||
<div><code>3</code></div> | |||
<div><code><nowiki>{{TaluvaMap |height=4}}</nowiki></code></div> | |||
<div>'''''Optional:''''' specify the map height.</div> | |||
| | |||
</div> | </div> | ||
[[Category:TaluvaIcons]] | [[Category:TaluvaIcons]] | ||
</noinclude> | </noinclude> |
Revision as of 16:27, 8 May 2024
A map for Template:TaluvaTiles.
Example
1
1
2
2
3
3
{{TaluvaMap| {{TaluvaTile |{{TaluvaClearing}} |1 |{{TaluvaJungle}} |1 }} {{TaluvaTile |x=7 |r=1 |{{TaluvaRock}} |2 |{{TaluvaSand}} |2 }} {{TaluvaTile |x=12 |y=2 |r=2 |{{TaluvaLake}} |3 |{{TaluvaClearing}} |3 }} {{TaluvaTile |x=16 |y=2 |r=3 |{{TaluvaJungle}} |{{TaluvaHut|2}} |{{TaluvaRock}} |{{TaluvaHut|2}} }} {{TaluvaTile |x=20 |y=2 |r=4 |{{TaluvaSand}} |{{TaluvaHut|3}} |{{TaluvaLake}} |{{TaluvaTower}} }} }}
Parameters
Parameter
Default value
Example
Description
width
auto-fill
{{TaluvaMap |width=6}}
Optional: specify the map width.
height
3
{{TaluvaMap |height=4}}
Optional: specify the map height.