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
(map numbering)
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>
<div style="position:relative;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;"><div style="position:absolute;top:8px;left:16px;color:#fffc;font-family:Roboto,Arial,sans-serif;font-weight:700;font-size:24px;text-shadow:1px 1px 5px #000;">{{{n|}}}</div>{{{1|}}}</div><noinclude>


A map for '''[[Template:TaluvaTile]]s'''.
A map for '''[[Template:TaluvaTile]]s'''.
Line 62: Line 62:
   <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>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>width</code></div>
   <div><code>width</code></div>
   <div><code>auto-fill</code></div>
   <div><code>auto-fill</code></div>
Line 70: Line 74:
   <div><code><nowiki>{{TaluvaMap |height=4}}</nowiki></code></div>
   <div><code><nowiki>{{TaluvaMap |height=4}}</nowiki></code></div>
   <div>'''''Optional:''''' specify the map height.</div>
   <div>'''''Optional:''''' specify the map height.</div>
  <div><code>n</code></div>
  <div><code>null</code></div>
  <div><code><nowiki>{{TaluvaMap |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>

Revision as of 18:02, 8 May 2024

A map for Template:TaluvaTiles.

Example

Volcano
Clearing
1
Jungle
1
Volcano
Rock
2
Sand
2
Volcano
Lake
3
Clearing
3
Volcano
Jungle
Hut2
Rock
Hut2
Volcano
Sand
Hut3
Lake
Tower
{{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
1
null
{{TaluvaMap |{{TaluvaTile}} }}
Optional: place tiles on the map.
width
auto-fill
{{TaluvaMap |width=6}}
Optional: specify the map width.
height
3
{{TaluvaMap |height=4}}
Optional: specify the map height.
n
null
{{TaluvaMap |n=1}}
Optional: specify text in the top left corner of the map.