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

Template:TaluvaMap: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
No edit summary
(n n-c n-bg)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>
{{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'''.
A map for '''[[Template:TaluvaTile]]s'''.
Line 5: Line 13:
== Example ==
== Example ==


{{TaluvaMap|
<div style="display:flex;flex-wrap:wrap;gap:8px;">
{{TaluvaMap |n=1 |
 
{{TaluvaTile
{{TaluvaTile
|{{TaluvaClearing}} |1
|{{TaluvaSand}} |1
|{{TaluvaJungle}}   |1
|{{TaluvaClearing}} |{{TaluvaHut}}
}}
}}
{{TaluvaTile |x=7 |r=1
{{TaluvaTile |x=5 |r=1
|{{TaluvaRock}} |2
|{{TaluvaSand}} |1
|{{TaluvaSand}} |2
|{{TaluvaSand}} |1
}}
}}
{{TaluvaTile |x=12 |y=2 |r=2
 
|{{TaluvaLake}}    |3
}}{{TaluvaMap |n=2 |
|{{TaluvaClearing}} |3
 
}}
{{TaluvaTile
{{TaluvaTile |x=16 |y=2 |r=3
|{{TaluvaSand}} |{{TaluvaHut}}
|{{TaluvaJungle}} |{{TaluvaHut|2}}
|{{TaluvaClearing}} |{{TaluvaHut}}
|{{TaluvaRock}}  |{{TaluvaHut|2}}
}}
{{TaluvaTile |x=20 |y=2 |r=4
|{{TaluvaSand}} |{{TaluvaHut|3}}
|{{TaluvaLake}} |{{TaluvaTower}}
}}
}}
{{TaluvaTile |x=5 |r=1
|{{TaluvaSand}} |{{TaluvaHut}}
|{{TaluvaSand}} |{{TaluvaHut}}
}}
}}
}}</div>


<pre style="background:none;border:none;">
<pre style="background:none;border:none;">
{{TaluvaMap|
{{TaluvaMap |n=1 |


{{TaluvaTile
{{TaluvaTile
|{{TaluvaClearing}} |1
|{{TaluvaSand}} |1
|{{TaluvaJungle}}  |1
|{{TaluvaClearing}} |{{TaluvaHut}}
}}
{{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
{{TaluvaTile |x=5 |r=1
|{{TaluvaSand}} |{{TaluvaHut|3}}
|{{TaluvaSand}} |1
|{{TaluvaLake}} |{{TaluvaTower}}
|{{TaluvaSand}} |1
}}
}}


Line 62: Line 60:
   <div style="font-weight:bold;width:8rem;">Example</div>
   <div style="font-weight:bold;width:8rem;">Example</div>
   <div style="font-weight:bold;width:8rem;">Description</div>
   <div style="font-weight:bold;width:8rem;">Description</div>
   <div><code>width</code></div>
   <div><code>1</code></div>
   <div><code>auto-fill</code></div>
  <div><code>null</code></div>
   <div><code><nowiki>{{TaluvaMap |width=6}}</nowiki></code></div>
  <div><code><nowiki>{{TaluvaMap |{{TaluvaTile}} }}</nowiki></code></div>
   <div>'''''Optional:''''' specify the map width.</div>
  <div>'''''Optional:''''' place tiles on the map.</div>
   <div><code>height</code></div>
  <div><code>w</code></div>
   <div><code>3</code></div>
   <div><code>auto-fit</code></div>
   <div><code><nowiki>{{TaluvaMap |height=4}}</nowiki></code></div>
   <div><code><nowiki>{{hexMap |w=10 }}</nowiki></code></div>
   <div>'''''Optional:''''' specify the map height.</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

display:none


A map for Template:TaluvaTiles.

Example

1
Volcano
Sand
1
Clearing
Hut
Volcano
Sand
1
Sand
1


2
Volcano
Sand
Hut
Clearing
Hut
Volcano
Sand
Hut
Sand
Hut


{{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.