Difference between revisions of "Location info"

m
m (Undo revision 6321 by Stratonian (talk))
Tag: Undo
Line 5: Line 5:
 
if a name parameter is given, it is assumed that the template isn't on the item's main article, therefore it isn't categorized
 
if a name parameter is given, it is assumed that the template isn't on the item's main article, therefore it isn't categorized
 
-->{{#vardefine:typeText|{{#switch:{{lc:{{{category|}}}}}
 
-->{{#vardefine:typeText|{{#switch:{{lc:{{{category|}}}}}
|camps=[[Camp]][[Category:Camps]]
+
|camps=[[Camp]]
|cities=[[City]][[Category:Cities]]
+
|cities=[[City]]
|dungeons=[[Dungeon]][[Category:Dungeons]]
+
|dungeons=[[Dungeon]]
|zones=[[Zone]][[Category:Zones]]
+
|zones=[[Zone]]
 
}}}}<!--
 
}}}}<!--
 +
-->{{#if:{{{name|}}}<!-- if a name parameter is not given
 +
-->||{{#if:{{#var:typeText}}<!-- if the type is correct (i.e. typeText exists)
 +
-->|[[Category:{{sc|{{{category}}}}}]]}}}}<!-- add to category
  
 
quests
 
quests

Revision as of 11:22, 31 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
pvp zones
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.