Template:Infobox location: Difference between revisions
Appearance
No edit summary |
Erfxploded (talk | contribs) mNo edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Template:Infobox/styles.css" /> | ||
| class | {| class="wikitable infobox" style="width:20%;" | ||
| | ! colspan="4" | {{{name|{{PAGENAME}}}}} | ||
| | {{#if:{{{image|}}}| | ||
{{!}}- | |||
{{!}} colspan="4" style="text-align:center" {{!}} [[File:{{{image}}}{{!}}frameless]]<br/><span style="font-size:87%">{{{image_caption|}}}</span> | |||
}} | |||
{{#if:{{{type|}}}| | |||
{{!}}- | |||
| | ! colspan="2" {{!}} Type | ||
{{!}} colspan="2" {{!}} {{{type}}} | |||
}} | |||
{{#if:{{{region|}}}| | |||
| | {{!}}- | ||
! colspan="2" {{!}} Region | |||
}}</includeonly><noinclude> | {{!}} colspan="2" {{!}} {{{region}}} | ||
}} | |||
{{#if:{{{faction|}}}{{{species|}}}{{{population|}}}| | |||
{{!}}- | |||
! colspan="4" {{!}} Inhabitants | |||
}} | |||
{{#if:{{{faction|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Factions | |||
{{!}} colspan="2" {{!}} {{{faction}}} | |||
}} | |||
{{#if:{{{species|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Species | |||
{{!}} colspan="2" {{!}} {{{species}}} | |||
}} | |||
{{#if:{{{population|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Population | |||
{{!}} colspan="2" {{!}} {{{population}}} | |||
}} | |||
{{#if:{{{campaign|}}}{{{status|}}}| | |||
{{!}}- | |||
! colspan="4" {{!}} Meta | |||
}} | |||
{{#if:{{{campaign|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Campaign | |||
{{!}} colspan="2" {{!}} {{{campaign}}} | |||
}} | |||
{{#if:{{{status|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Status | |||
{{!}} colspan="2" {{!}} {{{status}}} | |||
}} | |||
|} | |||
{{#if:{{{nocat|}}}||[[Category:Locations]]}}</includeonly><noinclude> | |||
Character infobox. | |||
Base variables: ''name'', ''image'', ''image_caption'', ''type'', ''region''. | |||
Inhabitants variables: ''faction'', ''species'', ''population''. | |||
Meta variables: ''campaign'', ''status''. | |||
Function variables: ''nocat''. | |||
The Locations category is added whenever the template is used. If ''nocat'' is set (e.g. <nowiki>|nocat=1</nowiki>), no category is added. | |||
==Example== | |||
{{Infobox_location | |||
| name = Baldur's Gate | |||
| type = City | |||
| region = The Sword Coast, Faerun | |||
| population = 3,000,000 | |||
| faction = [[Zhentarim|Zhentarim]], [[Order of the Gauntlet|Order of the Gauntlet]], [[Flaming Fist|Flaming Fist]] | |||
| species = Humans, elves, dwarves, warforged | |||
| campaign =[[Heart of Gold]] | |||
| status = Burning as we speak | |||
| nocat = 1 | |||
}} | |||
<pre> | |||
{{Infobox_location | |||
| name = Baldur's Gate | |||
| type = City | |||
| region = The Sword Coast, Faerun | |||
| population = 3,000,000 | |||
| faction = [[Zhentarim|]], [[Order of the Gauntlet|]], [[Flaming Fist]] | |||
| species = Humans, elves, dwarves, warforged | |||
| campaign =[[Heart of Gold]] | |||
| status = Burning as we speak | |||
| nocat = 1 | |||
}} | |||
</pre> | |||
[[Category:Infobox Templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 22:46, 10 August 2026
Character infobox.
Base variables: name, image, image_caption, type, region.
Inhabitants variables: faction, species, population.
Meta variables: campaign, status.
Function variables: nocat.
The Locations category is added whenever the template is used. If nocat is set (e.g. |nocat=1), no category is added.
Example
| Baldur's Gate | |||
|---|---|---|---|
| Type | City | ||
| Region | The Sword Coast, Faerun | ||
| Inhabitants | |||
| Factions | Zhentarim, Order of the Gauntlet, Flaming Fist | ||
| Species | Humans, elves, dwarves, warforged | ||
| Population | 3,000,000 | ||
| Meta | |||
| Campaign | Heart of Gold | ||
| Status | Burning as we speak | ||
{{Infobox_location
| name = Baldur's Gate
| type = City
| region = The Sword Coast, Faerun
| population = 3,000,000
| faction = [[Zhentarim|]], [[Order of the Gauntlet|]], [[Flaming Fist]]
| species = Humans, elves, dwarves, warforged
| campaign =[[Heart of Gold]]
| status = Burning as we speak
| nocat = 1
}}