Template:Location: Difference between revisions
Jump to navigation
Jump to search
Syntaxaire (talk | contribs) m (add Templates category) |
(added cargo declare) |
||
Line 1: | Line 1: | ||
<includeonly> | <noinclude>{{#cargo_declare:_table=Locations|Factions=Page|Biome=Page|Leader=Page|Description=String|TotalFloors=Integer}}</noinclude> | ||
<includeonly>{{#cargo_store:_table=Locations|Factions={{{faction|}}}|Biome={{{biome|}}}|Leader={{{leader|}}}|Description={{{desc|}}}|TotalFloors={{{floors|}}}}} | |||
[[Category:Locations]] | [[Category:Locations]] | ||
{{#invoke:infobox|infobox | {{#invoke:infobox|infobox | ||
| rows = | | rows = | ||
{{#if: {{{faction|}}} | {{infobox row|label=Faction|field={{{faction}}} }} }} | {{#if: {{{faction|}}} | {{infobox row|label=Faction|field=[[{{{faction}}}]] }} }} | ||
{{#if: {{{factions|}}} | {{infobox row|label=Factions|field={{{factions}}} }} }} | {{#if: {{{factions|}}} | {{infobox row|label=Factions|field={{{factions}}} }} }} | ||
{{#if: {{{biome|}}} | {{infobox row|label=Biome|field={{{biome}}} }} }} | {{#if: {{{biome|}}} | {{infobox row|label=Biome|field=[[{{{biome}}}]] }} }} | ||
{{#if: {{{leader|}}} | {{infobox row|label=Leader|field={{{leader}}} }} }} | {{#if: {{{leader|}}} | {{infobox row|label=Leader|field=[[{{{leader}}}]] }} }} | ||
{{#if: {{{ | {{#if: {{{floors|}}} | {{infobox row|Total Floors|{{{floors}}} }} }} | ||
}} | }} | ||
{{#if: {{{desc|}}} | {{Quote | {{{desc}}} }} }} | {{#if: {{{desc|}}} | {{Quote | {{{desc}}} }} }} |
Revision as of 02:05, 14 July 2019
This template defines the table "Locations". View table.
Documentation
[purge]
Arguments
title | title. defaults to page name | string |
---|---|---|
faction | faction the location is associated with. | string (the template will autolink to the page) |
terrain | "yes" if this is a type of world map terrain. No by default. | boolean |
biome | the type of parent terrain that the location is located in. | string (the template will autolink to the page) |
leader | the leader of the place | string (the template will autolink to the page) |
floors | how deep in strata the bottom is. reserved for the more vertically inclined locations. | integer |
Usage Example
{{Location | title = Joppa | image = ovw_joppa.png | faction = Villagers of Joppa | biome = Salt Marsh | terrain = no | leader = Elder Irudad | desc = Ants in the viridian chaff, the farmers sap the last drops of pristine moisture out of the salt-spangled earth. | gotoid = JoppaWorld.11.22.1.1.10 }}