Template:Location Infobox: Difference between revisions

Raven.Familiar (talk | contribs)
No edit summary
cleanup, readability
 
(One intermediate revision by one other user 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|}}}]]</format>
<format>{{#ifexist:{{{type}}}|[[{{{type}}}]]|{{{type}}}}}</format>
</data>
</data>
<data source="aspect">
<data source="aspect">
Line 25: Line 22:
<data source="plane">
<data source="plane">
<label>Plane</label>
<label>Plane</label>
<format>[[{{{plane}}}]]<!--
<format>{{#ifexist:{{{plane}}}|[[{{{plane}}}]]|{{{plane}}}}}<!--
Plane of X -->{{#if:{{{planeAspect|}}}|<nowiki> </nowiki>({{{planeAspect}}})}}</format>
"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:Planes]]<!--
|Continent = [[Category:Continents]]
-->|Continent = [[Category:Continents]]<!--
|Town      = [[Category:Towns]]
-->|Town = [[Category:Towns]]<!--
|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>