Template:Location Infobox: Difference between revisions
Jump to navigation
Jump to search
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=" | <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> | <format>{{#ifexist:{{{type}}}|[[{{{type}}}]]|{{{type}}}}}</format> | ||
</data> | |||
<data source="aspect"> | |||
<label>Aspect</label> | |||
<format>{{{{{aspect}}}}}</format> | |||
</data> | </data> | ||
<data source=" | <data source="novarch"> | ||
<label> | <label>Novarch</label> | ||
<format> | <format>{{#ifexist:{{{novarch}}}|[[{{{novarch}}}]]|{{{novarch}}}}}</format> | ||
</data> | </data> | ||
<data source="plane"> | <data source="plane"> | ||
<label>Plane</label> | <label>Plane</label> | ||
<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>[[{{{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: | |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> | ||
Latest revision as of 19:08, 4 September 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Syntax
{{Location Infobox
|title = <!-- use only if different than actual page name -->
|image =
|type =
|aspect = <!-- use only for plane pages -->
|novarch = <!-- use only for plane pages -->
|plane = <!-- actual name of plane -->
|planeAspect = <!-- use only if actual plane name doesn't specify aspect -->
|continent =
|town =
}}
Example
Iia
{{Location Infobox
|title = Iia
|image = Town Iia.png
|type = Town
|aspect =
|novarch =
|plane = Plane of Reality
|planeAspect =
|continent = Lusciell
|town =
}}
Template Data
Infobox used to display information about a location.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Name of location
| String | optional |
| Image | image | Location's image(s) | Content | required |
| Type | type | Location's type
| String | required |
| Aspect | aspect | Plane's Aspect, used only for Plane pages
| String | optional |
| Novarch | novarch | Plane's Novarch, used only for Plane pages
| String | optional |
| Plane | plane | Location's associated Plane
| String | optional |
| Plane with Aspect | planeAspect | Plane with Aspect, used only if actual Plane name doesn't specify Aspect
| String | optional |
| Continent | continent | Location's continent
| String | optional |
| Town | town | Location's town
| String | optional |