Difference between revisions of "Location info"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (center text) |
||
Line 23: | Line 23: | ||
location map | location map | ||
-->{{#if:{{{image|}}}<!-- if image exists | -->{{#if:{{{image|}}}<!-- if image exists | ||
− | -->|[[{{{image}}}|278px]]<br><small>''Click to enlarge.''</small | + | -->|[[{{{image}}}|278px]]<br><small>''Click to enlarge.''</small><!-- 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]]<br><small>''Click to enlarge.''</small | + | -->|[[{{#var:defaultImage}}|278px]]<br><small>''Click to enlarge.''</small><!-- 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> |
Revision as of 18:38, 1 October 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
- image: 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.
- name: 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.
Possible categories:
- points of interest: The semicolon-separated names of points of interest in the location.
- Optional.
- Notes: Add your own wiki links.
- connections: 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.