Template:Location Infobox: Difference between revisions
No edit summary |
cleanup, readability |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
<default>{{PAGENAME}}</default> | <default>{{PAGENAME}}</default> | ||
</title> | </title> | ||
<header name=" | <header name="subtitle">{{{subtitle|}}}</header> | ||
<image source="image"> | <group> | ||
<image source="image"><caption source="caption"/></image> | |||
</group> | |||
</ | |||
<header>Details</header> | <header>Details</header> | ||
<data source="type"> | <data source="type"> | ||
<label>Type</label> | <label>Type</label> | ||
<format>[[{{{type | <format>{{#ifexist:{{{type}}}|[[{{{type}}}]]|{{{type}}}}}</format> | ||
</data> | </data> | ||
<data source="aspect"> | <data source="aspect"> | ||
<label>Aspect</label> | <label>Aspect</label> | ||
<format>{{{{{aspect}}}}}</format> | <format>{{{{{aspect}}}}}</format> | ||
</data> | |||
<data source="novarch"> | |||
<label>Novarch</label> | |||
<format>{{#ifexist:{{{novarch}}}|[[{{{novarch}}}]]|{{{novarch}}}}}</format> | |||
</data> | </data> | ||
<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> | |||
</data> | </data> | ||
<data source="continent"> | <data source="continent"> | ||
<label>Continent</label> | <label>Continent</label> | ||
<format>[[{{{continent | <format>[[{{{continent}}}]]</format> | ||
</data> | </data> | ||
<data source="town"> | <data source="town"> | ||
<label>Town</label> | <label>Town</label> | ||
<format>[[{{{town | <format>[[{{{town}}}]]</format> | ||
</data> | </data> | ||
</infobox>{{Namespace|main=[[Category:Locations]]<!-- | </infobox><!-- | ||
Auto-Categorize Only in Main Namespace | |||
-->{{Namespace|main=[[Category:Locations]]<!-- | |||
Display Title | |||
-->{{#ifeq:{{NAMESPACE}}||<!-- | -->{{#ifeq:{{NAMESPACE}}||<!-- | ||
-->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq: | -->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Type | |||
-->{{#if:{{{type|}}}| | -->{{#if:{{{type|}}}|{{#switch:{{{type}}}<!-- | ||
-->|Plane = [[Category:Planes]] | |||
-->|Plane = [[Category:Planes]]<!-- | |Continent = [[Category:Continents]] | ||
-->| | |Town = [[Category:Towns]] | ||
-->| | |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> | ||