Template:Location: Difference between revisions

179 bytes added ,  15:57, 27 December 2021
add "is terrain?" field to locations to indicate whether they are a type of world map terrain (versus a city/landmark/dungeon/etc)
m (suppress tooltip text from searches)
(add "is terrain?" field to locations to indicate whether they are a type of world map terrain (versus a city/landmark/dungeon/etc))
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}}}]] }} }}
{{#if: {{{terrain|}}} | {{infobox row|label=Is [[:Category:Terrain|Terrain]]?|field={{{terrain}}} }} }}
{{#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}}} }} }}