Template:Location Infobox/doc: Difference between revisions

Raven.Familiar (talk | contribs)
Created page with "{{Documentation/Header}} To use this template, add the {{T|{{BASEPAGENAME}}}} template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax. ==Syntax== <pre> {{Location Infobox |title = |image = |type = |plane = |planeAspect = |continent = |town = }} </pre> ==Parameters== * type ** The type of location. ** Acceptable types for a..."
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation/Header}}
{{Documentation/Header}}
To use this template, add the {{T|{{BASEPAGENAME}}}} template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses [[w:Help:Infoboxes|Fandom's infobox syntax]].
==Syntax==
==Syntax==
<pre>
<pre>
{{Location Infobox
{{Location Infobox
|title      =  
|title      = <!-- use only if different than actual page name -->
|image      =  
|image      =  
|type        =  
|type        =  
|plane      =  
|aspect      = <!-- use only for plane pages -->
|planeAspect =  
|novarch    = <!-- use only for plane pages -->
|plane      = <!-- actual name of plane -->
|planeAspect = <!-- use only if actual plane name doesn't specify aspect -->
|continent  =  
|continent  =  
|town        =  
|town        =  
Line 15: Line 15:
</pre>
</pre>


==Parameters==
==Example==
* type
===Iia===
** The type of location.
{{Location Infobox
** Acceptable types for auto-categorization: Plane, Continent, Town, Place 
|title      = Iia
|image      = Town Iia.png
|type       = Town
|aspect      =
|novarch    =
|plane      = Plane of Reality
|planeAspect =
|continent  = Lusciell
|town        =
}}
<pre>
{{Location Infobox
|title      = Iia
|image      = Town Iia.png
|type        = Town
|aspect      =
|novarch    =
|plane      = Plane of Reality
|planeAspect =
|continent  = Lusciell
|town        =
}}
</pre>


==Template Data==
==Template Data==
<templatedata>
<templatedata>
{
{
"format": "{{_\n|______________ = _\n}}\n",
"params": {
"params": {
"title": {
"label": "Title",
"description": "Name of location",
"type": "string",
"default": "{{PAGENAME}}"
},
"image": {
"label": "Image",
"description": "Location's image(s)",
"type": "content",
"required": true
},
"type": {
"type": {
"label": "Type",
"label": "Type",
"description": "The location's type"
"description": "Location's type",
"type": "string",
"required": true,
            "example": "Plane, Continent, Town, Place"
},
"aspect": {
"label": "Aspect",
"description": "Plane's Aspect, used only for Plane pages",
"type": "string",
            "example": "Beauty, Love, Peace"
},
"novarch": {
"label": "Novarch",
"description": "Plane's Novarch, used only for Plane pages",
"type": "string",
            "example": "Apeiron, Blade, Victus"
},
},
"plane": {
"plane": {
"description": "Plane which the location is located. Use Planes name if known, use \"Place of X\" if only Aspect is known"
"label": "Plane",
"description": "Location's associated Plane",
"type": "string",
            "example": "Circular Station, Court of Dragons, Plane of Reality"
},
},
"planeAspect": {
"planeAspect": {
"description": "If Plane name is known, use \"Place of X\" in this parameter"
"label": "Plane with Aspect",
"description": "Plane with Aspect, used only if actual Plane name doesn't specify Aspect",
"type": "string",
            "example": "Plane of Infinity, Plane of Order, Plane of Reality"
},
"continent": {
"label": "Continent",
"description": "Location's continent",
"type": "string",
            "example": "Lusciell"
},
},
"continent": {},
"town": {
"town": {},
"label": "Town",
"title": {}
"description": "Location's town",
"type": "string",
            "example": "Iia"
}
},
},
"paramOrder": [
"paramOrder": [
"title",
"title",
        "image",
"type",
"type",
"aspect",
"novarch",
"plane",
"plane",
"planeAspect",
"planeAspect",
"continent",
"continent",
"town"
"town"
]
],
"description": "Infobox used to display information about a location."
}
}
</templatedata>
</templatedata>