Template:Location: Difference between revisions

392 bytes added ,  22:14, 28 December 2021
no edit summary
mNo edit summary
No edit summary
 
(10 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 21: Line 23:


-->{{#cargo_store:_table=GeneralData
-->{{#cargo_store:_table=GeneralData
|DisplayName={{qud text|&amp;y{{#titleparts:{{BASEPAGENAME}}}}}}
|DisplayName={{qud text|&amp;y{{{title|{{#titleparts:{{BASEPAGENAME}}}}}}}}}
|Image={{#ifeq: {{{image|}}}| none ||{{{image}}}}}
|Image={{#ifeq: {{{image|}}}| none ||{{{image}}}}}
|PlainName={{StripFormatting|{{{title|{{#titleparts:{{PAGENAME}}}} }}} }}
|PlainName={{StripFormatting|{{{title|{{#titleparts:{{PAGENAME}}}} }}} }}
Line 32: Line 34:
-->{{#invoke:infobox|infobox
-->{{#invoke:infobox|infobox
| class = qud-location-infobox
| class = qud-location-infobox
| imagearea =
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} | {{#ifeq: {{{image|none}}} |none|| [[Image:{{{image}}}|160px]] }} }}
| rows =  
| rows =  
{{#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}}} }} }}
{{#if: {{{gotoid|}}}  | {{infobox row|{{tooltip|1=<span style="font-weight:normal;">You can use this ID to [[Wishes|wish]] yourself to this<br>location (<code>goto:{{{gotoid}}}</code>)</span>|Goto ID}}|{{{gotoid}}} }} }}
{{#if: {{{gotoid|}}}  | {{infobox row|{{tooltip
|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
|3=nosearch
}}|{{{gotoid}}} }} }}
}}
}}
{{#if: {{{desc|}}} | {{qud look|text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }}
{{#if: {{{desc|}}} | {{qud look|text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }}