Difference between revisions of "Location info"

m (parameter rename)
m ('Click to enlarge.' text)
Line 23: Line 23:
 
location map
 
location map
 
-->{{#if:{{{image|}}}<!-- if image exists
 
-->{{#if:{{{image|}}}<!-- if image exists
-->|[[{{{image}}}|278px]]<!-- use provided image
+
-->|[[{{{image}}}|278px]]<br><small>''Click to enlarge.''</small></center><!-- use provided image
 
-->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- else use default image
 
-->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- else use default image
 
-->{{#ifexist:{{#var:defaultImage}}<!-- if default image exists
 
-->{{#ifexist:{{#var:defaultImage}}<!-- if default image exists
-->|[[{{#var:defaultImage}}|278px]]<!-- use default image
+
-->|[[{{#var:defaultImage}}|278px]]<br><small>''Click to enlarge.''</small></center><!-- use default image
 
-->|[[{{#var:defaultImage}}|Upload location image or map.]]}}}}<!-- else prompt for image upload
 
-->|[[{{#var:defaultImage}}|Upload location image or map.]]}}}}<!-- else prompt for image upload
 
--></center>
 
--></center>
Line 45: Line 45:
 
loading screen
 
loading screen
 
-->{{#if:{{{loading screen|}}}<!-- if loading screen exists
 
-->{{#if:{{{loading screen|}}}<!-- if loading screen exists
-->|{{!}}colspan="2"{{!}}<center>[[{{{loading screen}}}|278px]]<br><small>''Loading screen''</small></center><!-- use provided loading screen
+
-->|{{!}}colspan="2"{{!}}<center>[[{{{loading screen}}}|278px]]<br><small>''Loading screen.''</small></center><!-- use provided loading screen
 
-->|{{#vardefine:loadingScreen|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} loading screen.jpg}}<!-- else define loading screen
 
-->|{{#vardefine:loadingScreen|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} loading screen.jpg}}<!-- else define loading screen
-->{{#ifexist:{{#var:loadingScreen}}|{{!}}colspan="2"{{!}}<center>[[{{#var:loadingScreen}}|278px]]<br><small>''Loading screen''</small></center>}}}}<!-- use loading screen -->
+
-->{{#ifexist:{{#var:loadingScreen}}|{{!}}colspan="2"{{!}}<center>[[{{#var:loadingScreen}}|278px]]<br><small>''Loading screen.''</small></center>}}}}<!-- use loading screen -->
 
|}</div><!--
 
|}</div><!--
 
DESCRIPTION
 
DESCRIPTION
 
-->{{{description|{{error|No description was provided. Add a description parameter.}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
-->{{{description|{{error|No description was provided. Add a description parameter.}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 19:33, 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
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.