Jump to content

Template:Location Infobox: Difference between revisions

From The Petit Planet Wiki
Eleiyas (talk | contribs)
this WILL need editing, as it's copied wholesale from ZZZ wiki.
 
Updated to DRUID infobox
Line 1: Line 1:
<includeonly><infobox>
<includeonly>{{#invoke:Infobox|main
<title source="title">
|kind = Location
<default>{{PAGENAME}}</default>
|sep = ,
</title>
|title = {{{title|{{{name|{{PAGENAME}}}}}}}}
<header name="secondary_title">{{{subtitle|}}}</header>
|subtitle = {{{subtitle|}}}
<image source="image">
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
<caption source="caption"/>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
</image>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
<data source="description">
|sections = Information, Description
<format>{{{description|}}}</format>
 
</data>
|Information_collapsible = Yes
<header>Details</header>
|Information = Type
<data source="type">
|Type = <!--
<label>Type</label>
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!--
<format>[[{{{type}}}]]{{#if:{{{type2|}}}|<br />[[{{{type2}}}]]}}{{#if:{{{type3|}}}|<br />[[{{{type3}}}]]}}{{#if:{{{type4|}}}|<br />[[{{{type4}}}]]}}{{#if:{{{type5|}}}|<br />[[{{{type5}}}]]}}</format>
  -->{{Array|{{{type}}}|;|* [[{item}]]{newline} }}|<!--
</data>
  -->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!--
<data source="group">
-->}}
<label>Group</label>
 
<format>[[{{{group}}}]]{{#if:{{{group2|}}}|<br />[[{{{group2}}}]]}}{{#if:{{{group3|}}}|<br />[[{{{group3}}}]]}}{{#if:{{{group4|}}}|<br />[[{{{group4}}}]]}}{{#if:{{{group5|}}}|<br />[[{{{group5}}}]]}}</format>
|Description_collapsible = Yes
</data>
|Description = DescriptionText
<data source="area">
|DescriptionText_wide = Yes
<label>Area(s)</label>
|DescriptionText = {{{description|}}}
<format>{{List Array|{{{area|}}}|links=1}}</format>
}}<!--
</data>
 
<data source="region">
-->{{Namespace|main=<!--
<label>Region</label>
-->[[Category:Locations]]<!--
<format>[[{{{region|}}}]]</format>
</data>
<data source="city">
<label>City</label>
<format>[[{{{city|}}}]]</format>
</data>
<data source="connections">
<label>Connections</label>
<format>{{List Array|{{{connections|}}}|links=1}}</format>
</data>
<section>
<label>Map</label>
<image source="map">
<caption source="caption"/>
          </image>
</section>
</infobox>{{Namespace|main=[[Category:Locations]]<!--
Set page display title if title is different from page name
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{{PAGENAME}}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!--
-->}}<!--


-->{{#if:{{{id|}}}|[[Category:Location|{{{id|}}}]]|[[Category:Location]][[Category:Locations Missing ID]]}}<!--
-->{{#if:{{{id|}}}|[[Category:Location|{{{id|}}}]]|[[Category:Location]][[Category:Locations Missing ID]]}}<!--


-->{{#if:{{{type|}}}|<!--
-->{{#if:{{{type|}}}|<!--
-->{{#switch:{{{type}}}<!--
  -->{{Array|{{{type}}}|;|3=<!--
-->|District = [[Category:Districts]]<!--
    -->²{#switch:{item}<!--
-->|Point of Interest = [[Category:Points of Interest]]<!--
    -->¦Area = [[Category:Areas]]<!--
-->|Area = [[Category:Areas]]<!--
    -->¦Region = [[Category:Regions]]<!--
-->|Region = [[Category:Regions]]<!--
    -->¦Shop = [[Category:Shops]]<!--
-->|City = [[Category:Cities]]<!--
    -->¦Activity = [[Category:Activities]]<!--
-->|Shop = [[Category:Shops]]<!--
    -->¦#default = [[Category:{item}]]<!--
-->|Activity = [[Category:Activities]]<!--
    -->}²<!--
  -->|template=1}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->|}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
-->{{#if:{{{type2|}}}|[[Category:{{{type2|}}}]]}}<!--
-->{{#if:{{{type3|}}}|[[Category:{{{type3|}}}]]}}<!--
-->{{#if:{{{type4|}}}|[[Category:{{{type4|}}}]]}}<!--
-->{{#if:{{{type5|}}}|[[Category:{{{type5|}}}]]}}<!--
 
-->{{#if:{{{group|}}}|[[Category:{{{group|}}}]]}}<!--
-->{{#if:{{{group2|}}}|[[Category:{{{group2|}}}]]}}<!--
-->{{#if:{{{group3|}}}|[[Category:{{{group3|}}}]]}}<!--
-->{{#if:{{{group4|}}}|[[Category:{{{group4|}}}]]}}<!--
-->{{#if:{{{group5|}}}|[[Category:{{{group5|}}}]]}}<!--
 
-->{{#if:{{{area|}}}|<!---->{{Array|{{{area|}}}|;|[[Category:{item} Locations]]}}<!---->|}}<!--
-->{{#if:{{{region|}}}|[[Category:{{{region|}}} Locations]]|}}<!--
-->{{#if:{{{city|}}}|[[Category:{{{city|}}} Locations]]|}}<!--
 
-->{{#if:{{{district|}}}|[[Category:{{{district|}}} Locations]]}}<!--
-->{{#if:{{{district2|}}}|[[Category:{{{district2|}}} Locations]]}}<!--
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

Revision as of 13:21, 21 February 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

The documentation for this template is missing. Click here to create it.