Difference between revisions of "Template:Infobox Location"
From The Battle for Wesnoth Wiki
(Modifying and simplifying template) |
(Adding race column) |
||
Line 4: | Line 4: | ||
{| class="infobox bordered" style="width: 37.5em; text-align: center; font-size: 100%;" | {| class="infobox bordered" style="width: 37.5em; text-align: center; font-size: 100%;" | ||
|- | |- | ||
− | | style="font-size: large;" | '''{{{name|Location}}}''' | + | | style="font-size: large; colspan=2;" | '''{{{name|Location}}}''' |
|- | |- | ||
− | | {{Location pointer | image={{{map|}}} | x={{{x|}}} | y={{{y|}}} }} | + | | style="colspan=2;" | {{Location pointer | image={{{map|}}} | x={{{x|}}} | y={{{y|}}} }} |
|- | |- | ||
− | | {{{caption|}}} | + | | style="colspan=2;" | {{{caption|}}} |
|- | |- | ||
+ | {{#if: {{{races|}}} | <tr><td>Races</td><td>{{{races|}}}</tr>}} | ||
|} | |} | ||
</div> | </div> |
Revision as of 18:41, 7 August 2019
Location | |
| |
This template creates an infobox describing a place.
Parameters
name denotes the name of the place.
map denotes the image location for the map on which the place is displayed.
x denotes the x position of the pointer on the map.
y denotes the y position of the pointer on the map.
caption denotes the caption below the map.
races denotes a list of the races that inhabit the location.
Usage
{{Infobox Location |name=Kingdom of Stormvale |map=https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/campaigns/The_Rise_Of_Wesnoth/images/maps/green_isle.png |x=137 |y=159 |caption=Kingdom of Stormvale on a map of the Green Isle. |races= * [[Humans]] }}
Kingdom of Stormvale | ||
| ||
Kingdom of Stormvale on a map of the Green Isle. | ||
Races |