Template:Location Infobox: Difference between revisions
Appearance
this WILL need editing, as it's copied wholesale from ZZZ wiki. |
Updated to DRUID infobox |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Infobox|main | ||
|kind = Location | |||
|sep = , | |||
|title = {{{title|{{{name|{{PAGENAME}}}}}}}} | |||
|subtitle = {{{subtitle|}}} | |||
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}} | |||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |||
|sections = Information, Description | |||
|Information_collapsible = Yes | |||
|Information = Type | |||
|Type = <!-- | |||
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!-- | |||
-->{{Array|{{{type}}}|;|* [[{item}]]{newline} }}|<!-- | |||
-->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!-- | |||
-->}} | |||
|Description_collapsible = Yes | |||
|Description = DescriptionText | |||
|DescriptionText_wide = Yes | |||
|DescriptionText = {{{description|}}} | |||
}}<!-- | |||
-->{{Namespace|main=<!-- | |||
-->[[Category:Locations]]<!-- | |||
-->{{# | |||
-->{{ | |||
--> | |||
-->{{#if:{{{id|}}}|[[Category:Location|{{{id|}}}]]|[[Category:Location]][[Category:Locations Missing ID]]}}<!-- | -->{{#if:{{{id|}}}|[[Category:Location|{{{id|}}}]]|[[Category:Location]][[Category:Locations Missing ID]]}}<!-- | ||
-->{{#if:{{{type|}}}|<!-- | -->{{#if:{{{type|}}}|<!-- | ||
-->{{ | -->{{Array|{{{type}}}|;|3=<!-- | ||
--> | -->²{#switch:{item}<!-- | ||
--> | -->¦Area = [[Category:Areas]]<!-- | ||
--> | -->¦Region = [[Category:Regions]]<!-- | ||
--> | -->¦Shop = [[Category:Shops]]<!-- | ||
--> | -->¦Activity = [[Category:Activities]]<!-- | ||
--> | -->¦#default = [[Category:{item}]]<!-- | ||
-->| | -->}²<!-- | ||
-->|template=1}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--> | --></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||
Revision as of 13:21, 21 February 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template uses Module:Infobox, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Infobox.css.
Syntax
{{Location Infobox
|title =
|subtitle =
|image = if single image - no "File:"
|images = more than one image delimited with ; - no "File:"
|type =
|description =
}}
Parameters
- type: The type of location.
- Acceptable types for auto-categorization: Area, Region, Shop, Activity
Examples
|name = Loomix Mart
|type = Shop
}}
Template Data
Infobox for Locations. Regions use Region Infobox. Domains use Domain Infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Location Title | Unknown | optional |
| Name | name | Location Name | Unknown | optional |
| Subtitle | subtitle | Location subtitle | Unknown | optional |
| Image | image | Image of the location. | File | suggested |
| Image List | images | If more than one image, insert with semicolon as delimiter | Unknown | optional |
| Type | type | Type of location. If multiple, delimit with semicolon (;)
| String | required |
| Description | description | Location Description | Unknown | optional |