Difference between revisions of "Location info"

m (typo)
m (parameter rename)
Line 22: Line 22:
 
| colspan="2" | <center><!--
 
| colspan="2" | <center><!--
 
location map
 
location map
-->{{#if:{{{map|}}}<!-- if map exists
+
-->{{#if:{{{image|}}}<!-- if image exists
-->|[[{{{map}}}|278px]]<!-- use provided map
+
-->|[[{{{image}}}|278px]]<!-- use provided image
-->|{{#vardefine:defaultMap|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- else use default map
+
-->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- else use default image
-->{{#ifexist:{{#var:defaultMap}}<!-- if default map exists
+
-->{{#ifexist:{{#var:defaultImage}}<!-- if default image exists
-->|[[{{#var:defaultMap}}|278px]]<!-- use default map
+
-->|[[{{#var:defaultImage}}|278px]]<!-- use default image
-->|[[{{#var:defaultMap}}|Upload map.]]}}}}<!-- else prompt for map upload
+
-->|[[{{#var:defaultImage}}|Upload location image or map.]]}}}}<!-- else prompt for image upload
 
--></center>
 
--></center>
 
|-
 
|-

Revision as of 19:22, 18 August 2023

Description

Displays an information page about an location.

Usage

{{Location info|<image=image>|<name=name>|<description=description>|<category=category>|<quests=quests>|<loading screen=loading screen>}}

Parameters

Arrow.pngimage: A map or image of the location.
Optional. Defaults to '{{PAGENAME}}.jpg'.
Notes: Only use if the image name differs from the name of the page.
Arrow.pngname: The name of the location.
Optional. Defaults to '{{PAGENAME}}'.
Notes: Only use if the template is on a different page to the location's main article.
Arrow.pngdescription: A description of the location.
Optional.
Arrow.pngcategory: The location's category.
Optional.

Possible categories:

camps
dungeons
safe zones
protected zones (see Zone)
battleground zones (see Zone)
Arrow.pngpoints of interest: The semicolon-separated names of points of interest in the location.
Optional.
Notes: Add your own wiki links.
Arrow.pngconnections: The semicolon-separated names of zones connected to the location.
Optional.
Notes: Add your own wiki links. The cardinal direction is usually specified in brackets after the location name.

Errors

No description was provided. Add a description parameter.