Difference between revisions of "Template:Infobox Location"
From The Battle for Wesnoth Wiki
m (Fixed template) |
(Making caption optional) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<div class="thumb tright"> | <div class="thumb tright"> | ||
<div> | <div> | ||
− | {| class="infobox bordered" style="width: 37.5em | + | {| class="infobox bordered" style="width: {{#if: {{{map|}}} | 37.5em | 25em}}; font-size: 100%;" |
|- | |- | ||
− | | colspan="2" style="text-align:center | + | | colspan="2" style="font-size: large; text-align: center;" | '''{{{name|Location}}}''' |
|- | |- | ||
− | | colspan="2" style="text-align:center;" | + | {{#if: {{{map|}}} | <tr><td colspan="2" style="text-align: center;">{{Location pointer | image={{{map|}}} | x={{{x|}}} | y={{{y|}}} }}</td></tr><tr><td colspan="2" style="text-align: center;">{{{caption|}}} {{#if: {{{races|}}} | <div style="height: 15px;"></div> }} |
+ | </td></tr> }} | ||
|- | |- | ||
+ | {{#if: {{{races|}}} | <tr><td style="vertical-align:top;">Races</td><td style="text-align: left;"> | ||
+ | {{{races|}}}</tr>}} | ||
|} | |} | ||
</div> | </div> |
Latest revision as of 09:13, 8 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 |
This page was last edited on 8 August 2019, at 09:13.