Jump to content

Template:Infobox location: Difference between revisions

From Elysium D&D
mNo edit summary
mNo edit summary
Line 5: Line 5:
{{!}}-
{{!}}-
{{!}} colspan="4" style="text-align:center" {{!}} [[File:{{{image}}}{{!}}frameless]]<br/><span style="font-size:87%">{{{image_caption|}}}</span>
{{!}} colspan="4" style="text-align:center" {{!}} [[File:{{{image}}}{{!}}frameless]]<br/><span style="font-size:87%">{{{image_caption|}}}</span>
}}
}}{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Type
! colspan="2" {{!}} Type
{{!}} colspan="2" {{!}} {{{type}}}
{{!}} colspan="2" {{!}} {{{type}}}
}}
}}{{#if:{{{region|}}}|
{{#if:{{{region|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Region
! colspan="2" {{!}} Region
{{!}} colspan="2" {{!}} {{{region}}}
{{!}} colspan="2" {{!}} {{{region}}}
}}
}}{{#if:{{{faction|}}}{{{species|}}}{{{population|}}}|
{{#if:{{{faction|}}}{{{species|}}}{{{population|}}}|
{{!}}-
{{!}}-
! colspan="4" {{!}} Inhabitants}}
! colspan="4" {{!}} Inhabitants
{{#if:{{{faction|}}}|
}}{{#if:{{{faction|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Factions
! colspan="2" {{!}} Factions
{{!}} colspan="2" {{!}} {{{faction}}}
{{!}} colspan="2" {{!}} {{{faction}}}
}}
}}{{#if:{{{species|}}}|
{{#if:{{{species|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Species
! colspan="2" {{!}} Species
{{!}} colspan="2" {{!}} {{{species}}}
{{!}} colspan="2" {{!}} {{{species}}}
}}
}}{{#if:{{{population|}}}|
{{#if:{{{population|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Population
! colspan="2" {{!}} Population
{{!}} colspan="2" {{!}} {{{population}}}
{{!}} colspan="2" {{!}} {{{population}}}
}}
}}{{#if:{{{campaign|}}}{{{status|}}}|
{{#if:{{{campaign|}}}{{{status|}}}|
{{!}}-
{{!}}-
! colspan="4" {{!}} Meta
! colspan="4" {{!}} Meta
}}
}}{{#if:{{{campaign|}}}|
{{#if:{{{campaign|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Campaign
! colspan="2" {{!}} Campaign
{{!}} colspan="2" {{!}} {{{campaign}}}
{{!}} colspan="2" {{!}} {{{campaign}}}
}}
}}{{#if:{{{status|}}}|
{{#if:{{{status|}}}|
{{!}}-
{{!}}-
! colspan="2" {{!}} Status
! colspan="2" {{!}} Status
{{!}} colspan="2" {{!}} {{{status}}}
{{!}} colspan="2" {{!}} {{{status}}}
}}
}}|}
|}
{{#if:{{{nocat|}}}||[[Category:Locations]]}}</includeonly><noinclude>
{{#if:{{{nocat|}}}||[[Category:Locations]]}}</includeonly><noinclude>
Character infobox.
Character infobox.

Revision as of 22:39, 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|- 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|]]
| species = Humans, elves, dwarves, warforged
| campaign =[[Heart of Gold]]
| status = burning as we speak
| nocat = 1
}}