Template:Location Infobox: Difference between revisions

From Honkai: Nexus Anima Wiki
Jump to navigation Jump to search
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>

Latest revision as of 19:08, 4 September 2025

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

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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Titletitle

Name of location

Default
{{PAGENAME}}
Stringoptional
Imageimage

Location's image(s)

Contentrequired
Typetype

Location's type

Example
Plane, Continent, Town, Place
Stringrequired
Aspectaspect

Plane's Aspect, used only for Plane pages

Example
Beauty, Love, Peace
Stringoptional
Novarchnovarch

Plane's Novarch, used only for Plane pages

Example
Apeiron, Blade, Victus
Stringoptional
Planeplane

Location's associated Plane

Example
Circular Station, Court of Dragons, Plane of Reality
Stringoptional
Plane with AspectplaneAspect

Plane with Aspect, used only if actual Plane name doesn't specify Aspect

Example
Plane of Infinity, Plane of Order, Plane of Reality
Stringoptional
Continentcontinent

Location's continent

Example
Lusciell
Stringoptional
Towntown

Location's town

Example
Iia
Stringoptional