Template:Location: Difference between revisions
Jump to navigation
Jump to search
(don't try to load "none" image) |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|Description=String | |Description=String | ||
|TotalFloors=Integer | |TotalFloors=Integer | ||
|IsTerrain=Boolean | |||
|GotoID=Wikitext | |GotoID=Wikitext | ||
|JoinKey=String}}<!-- | |JoinKey=String}}<!-- | ||
Line 14: | Line 15: | ||
|Description={{{desc|}}} | |Description={{{desc|}}} | ||
|TotalFloors={{{floors|}}} | |TotalFloors={{{floors|}}} | ||
|IsTerrain={{#ifeq:{{lc:{{{terrain|no}}}}}|yes|yes|no}} | |||
|GotoID={{{gotoid|}}} | |GotoID={{{gotoid|}}} | ||
|JoinKey={{FULLPAGENAME}} | |JoinKey={{FULLPAGENAME}} | ||
Line 37: | Line 39: | ||
{{#if: {{{faction|}}} | {{infobox row|label=Faction|field=[[{{{faction}}}]] }} }} | {{#if: {{{faction|}}} | {{infobox row|label=Faction|field=[[{{{faction}}}]] }} }} | ||
{{#if: {{{biome|}}} | {{infobox row|label=Biome|field=[[{{{biome}}}]] }} }} | {{#if: {{{biome|}}} | {{infobox row|label=Biome|field=[[{{{biome}}}]] }} }} | ||
{{#ifeq: {{lc:{{{terrain|no}}}}} | yes | {{infobox row|field=<div style="text-align:center;"><i>[[World_map#Terrain|world map terrain]]</i></div> }} }} | |||
{{#if: {{{leader|}}} | {{infobox row|label=Leader|field={{Consecutive templates|{{{leader}}}|</br>|</br>|||favilink}} }} }} | {{#if: {{{leader|}}} | {{infobox row|label=Leader|field={{Consecutive templates|{{{leader}}}|</br>|</br>|||favilink}} }} }} | ||
{{#if: {{{floors|}}} | {{infobox row|Total Floors|{{{floors}}} }} }} | {{#if: {{{floors|}}} | {{infobox row|Total Floors|{{{floors}}} }} }} | ||
Line 42: | Line 45: | ||
|1=<span style="font-weight:normal;">You can use this ID to [[Wishes|wish]] yourself to this<br>location (<code>goto:{{{gotoid}}}</code>)</span> | |1=<span style="font-weight:normal;">You can use this ID to [[Wishes|wish]] yourself to this<br>location (<code>goto:{{{gotoid}}}</code>)</span> | ||
|2=Goto ID | |2=Goto ID | ||
|3=nosearch | |||
}}|{{{gotoid}}} }} }} | }}|{{{gotoid}}} }} }} | ||
}} | }} |
Latest revision as of 22:14, 28 December 2021
This template defines the table "Locations". View table.This template adds rows to the table "GeneralData", which is declared by the template General data table. 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 }}