Template:Location Infobox: Difference between revisions

Raven.Familiar (talk | contribs)
Taken partly from ZZZ
 
cleanup, readability
 
(12 intermediate revisions by 2 users not shown)
Line 3: Line 3:
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
</title>
</title>
<header name="secondary_title">{{{subtitle|}}}</header>
<header name="subtitle">{{{subtitle|}}}</header>
<image source="image">
<group>
<caption source="caption"/>
<image source="image"><caption source="caption"/></image>
</image>
</group>
<data source="description">
<format>{{{description|}}}</format>
</data>
<header>Details</header>
<header>Details</header>
<data source="type">
<data source="type">
<label>Type</label>
<label>Type</label>
<format>[[{{{type}}}]]{{#if:{{{type2|}}}|<br />[[{{{type2}}}]]}}{{#if:{{{type3|}}}|<br />[[{{{type3}}}]]}}{{#if:{{{type4|}}}|<br />[[{{{type4}}}]]}}{{#if:{{{type5|}}}|<br />[[{{{type5}}}]]}}</format>
<format>{{#ifexist:{{{type}}}|[[{{{type}}}]]|{{{type}}}}}</format>
</data>
<data source="aspect">
<label>Aspect</label>
<format>{{{{{aspect}}}}}</format>
</data>
</data>
<data source="group">
<data source="novarch">
<label>Group</label>
<label>Novarch</label>
<format>[[{{{group}}}]]{{#if:{{{group2|}}}|<br />[[{{{group2}}}]]}}{{#if:{{{group3|}}}|<br />[[{{{group3}}}]]}}{{#if:{{{group4|}}}|<br />[[{{{group4}}}]]}}{{#if:{{{group5|}}}|<br />[[{{{group5}}}]]}}</format>
<format>{{#ifexist:{{{novarch}}}|[[{{{novarch}}}]]|{{{novarch}}}}}</format>
</data>
</data>
<data source="plane">
<data source="plane">
<label>Plane</label>
<label>Plane</label>
<format>{{List Array|{{{plane|}}}|links=1}}</format>
<format>{{#ifexist:{{{plane}}}|[[{{{plane}}}]]|{{{plane}}}}}<!--
"Plane of X"
-->{{#if:{{{planeAspect|}}}|<nowiki> </nowiki>({{{planeAspect}}})}}</format>
</data>
</data>
<data source="continent">
<data source="continent">
<label>Continent</label>
<label>Continent</label>
<format>[[{{{continent|}}}]]</format>
<format>[[{{{continent}}}]]</format>
</data>
</data>
<data source="town">
<data source="town">
<label>Town</label>
<label>Town</label>
<format>[[{{{town|}}}]]</format>
<format>[[{{{town}}}]]</format>
</data>
</data>
</infobox>{{Namespace|main=[[Category:Locations]]<!--
</infobox><!--
Set page display title if title is different from page name
  Auto-Categorize Only in Main Namespace
-->{{Namespace|main=[[Category:Locations]]<!--
  Display Title
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{{PAGENAME}}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!--
  -->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!--
-->}}<!--
-->}}<!--
 
  Type
-->{{#if:{{{type|}}}|<!--
-->{{#if:{{{type|}}}|{{#switch:{{{type}}}<!--
-->{{#switch:{{{type}}}<!--
-->|Plane     = [[Category:Planes]]
-->|Plane = [[Category:Plane]]<!--
|Continent = [[Category:Continents]]
-->|Continent = [[Category:Continent]]<!--
|Town      = [[Category:Towns]]
-->|Town = [[Category:Town]]<!--
|Place    = [[Category:Places]]<!--
-->|Place = [[Category:Places]]<!--
-->}}|}}<!--
  Plane
-->{{#if:{{{plane|}}}<!--
-->|{{Array|{{{plane|}}}|;|[[Category:{item} Locations]]}}|}}<!--
  Continent
-->{{#if:{{{continent|}}}<!--
-->|[[Category:{{{continent|}}} Locations]]|}}<!--
  Town
-->{{#if:{{{town|}}}<!--
-->|[[Category:{{{town|}}} Locations]]|}}<!--
-->}}<!--
-->}}<!--
-->|}}<!--
--></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:{{{plane|}}}|<!---->{{Array|{{{plane|}}}|;|[[Category:{item} Locations]]}}<!---->|}}<!--
-->{{#if:{{{continent|}}}|[[Category:{{{continent|}}} Locations]]|}}<!--
-->{{#if:{{{town|}}}|[[Category:{{{town|}}} Locations]]|}}<!--
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>