Difference between revisions of "Template:Area infobox"
Jump to navigation
Jump to search
m |
(first major pass) |
||
Line 11: | Line 11: | ||
|Has attuning crystals={{#var:attuning crystals}} | |Has attuning crystals={{#var:attuning crystals}} | ||
}} | }} | ||
}} }}<div class="infobox-n area"> | }}}}<div class="infobox-n area"> | ||
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | ||
<div class="statistics"> | <!-- $DISABLED <div class="statistics"> | ||
!-- Display map icons for objectives if non-zero: | |||
-- | --{{#ifeq: {{#var:quests|0}} | 0 || {{#var:quests}}{{map icon|quest}} | ||
}}{{#ifeq: {{#var:attuning crystals|0}} | 0 || {{#var:attuning crystals}}{{map icon|attuning crystal}} | }}{{#ifeq: {{#var:attuning crystals|0}} | 0 || {{#var:attuning crystals}}{{map icon|attuning crystal}} | ||
}} | }} | ||
</div>{{#ifexist: File:{{{map|{{PAGENAME}} map.jpg}}}|<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{map|{{PAGENAME}} map.jpg}}}{{!}}240x200px]]<br><small>''Map of {{{name|{{PAGENAME}}}}}''</small></p>|}}{{#ifexist: File:{{{locator|{{PAGENAME}} locator.svg}}}|<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{locator|{{PAGENAME}} locator.svg}}}{{!}}200x180px]]<br><small>''Location within {{{within|}}}''</small></p>|}}<div class="wrapper">{{#if: {{{levels|}}} | | </div> -->{{#ifexist: File:{{{map|{{PAGENAME}} map.jpg}}}|<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{map|{{PAGENAME}} map.jpg}}}{{!}}240x200px]]<br><small>''Map of {{{name|{{PAGENAME}}}}}''</small></p>|}}{{#ifexist: File:{{{locator|{{PAGENAME}} locator.svg}}}|<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{locator|{{PAGENAME}} locator.svg}}}{{!}}200x180px]]<br><small>''Location within {{{within|}}}''</small></p>|}}<div class="wrapper">{{#if: {{{levels|}}} | | ||
{{#switch:{{lc:{{{type}}}}} | {{#switch:{{lc:{{{type}}}}} | ||
|area = | |area = | ||
Line 39: | Line 39: | ||
;Type | ;Type | ||
:{{#switch: {{lc:{{{type|unknown}}}}} | :{{#switch: {{lc:{{{type|unknown}}}}} | ||
|unknown=''Unknown'' | |unknown=''Unknown'' | ||
|#default = [[Has location type::{{ucfirst:{{{type}}}}}]] | |#default = [[Has location type::{{ucfirst:{{{type}}}}}]] | ||
Line 65: | Line 64: | ||
}}{{#if: {{{connections|}}} | | }}{{#if: {{{connections|}}} | | ||
;Connects to | ;Connects to | ||
:{{ucfirst:{{{connections}}} | :{{ucfirst:{{{connections}}}}}}}<!-- | ||
--><!-- {{#switch:{{lc:{{{type|}}}}} | --><!-- $DISABLED {{#switch:{{lc:{{{type|}}}}} | ||
| poi | point of interest = !-- only display a chat link for points, nothing else creates a valid link (would include waypoints and vistas but they don't get pages) -- | | poi | point of interest = !-- only display a chat link for points, nothing else creates a valid link (would include waypoints and vistas but they don't get pages) -- | ||
;Game link | ;Game link | ||
Line 80: | Line 79: | ||
</div><!-- | </div><!-- | ||
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
-->{{#if: {{NAMESPACE}} | -->{{#if: {{NAMESPACE}} | <!-- Do not categorize --> | | ||
<!-- Categories based on location type --> | <!-- Categories based on location type --> | ||
{{#switch: {{lc:{{{type|}}}}} | {{#switch: {{lc:{{{type|}}}}} | ||
Line 93: | Line 89: | ||
| dungeon = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]] | | dungeon = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]] | ||
<!-- other types --> | <!-- other types --> | ||
| landmark = [[Category:Landmarks]] | | landmark = [[Category:Landmarks]] | ||
| mini-dungeon = [[Category:Mini-dungeons]] | | mini-dungeon = [[Category:Mini-dungeons]] | ||
Line 111: | Line 102: | ||
| guild hall <!-- these are located within regions (parent) --> | | guild hall <!-- these are located within regions (parent) --> | ||
| area <!-- these are located within cities, zones or dungeons (parent) --> | | area <!-- these are located within cities, zones or dungeons (parent) --> | ||
| raid = <!-- these are located within zones (parent) -->[[Category:{{{within|}}}]] | | raid = <!-- these are located within zones (parent) -->[[Category:{{{within|}}}]] | ||
| | | landmark = <!-- these are mostly located within areas (grandparent), caveats apply for some instances and raids (parent) --><!-- | ||
-->{{#if: {{#show:{{{within}}}|?Has location type}} | -->{{#if: {{#show:{{{within}}}|?Has location type}} | ||
| {{#switch: {{#show:{{{within}}}|?Has location type}} | | {{#switch: {{#show:{{{within}}}|?Has location type}} | ||
Line 120: | Line 110: | ||
}} | }} | ||
}} | }} | ||
| instance = <!-- these can be within regions (e.g. Chantry of Secrets), within cities (e.g. Hunter's Hearth), or within areas (e.g. The Command Core). --><!-- Do these categories manually. --> | | instance = <!-- these can be within regions (e.g. Chantry of Secrets), within cities (e.g. Hunter's Hearth), or within areas (e.g. The Command Core). --><!-- Do these categories manually. --> | ||
}} }} | }} }} | ||
Line 134: | Line 121: | ||
==Description== | ==Description== | ||
This infobox should be used for regions, zones, areas, | This infobox should be used for regions, zones, areas, landmarks, etc., i.e. all locations mentioned [[Location|here]]. See also parameter '''type''' below. | ||
<pre>{{Area infobox | <pre>{{Area infobox | ||
Line 183: | Line 170: | ||
; objectives | ; objectives | ||
: Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria). | : Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria). | ||
; release | ; release | ||
: The expansion required to access the content. Displays a notice of the release. | : The expansion required to access the content. Displays a notice of the release. | ||
Line 206: | Line 189: | ||
{{Area infobox | {{Area infobox | ||
| name = Salma District | | name = Salma District | ||
| | | landmarks = 5 | ||
| map = Salma District Map POI.jpg | | map = Salma District Map POI.jpg | ||
| type = Instance | | type = Instance | ||
Line 214: | Line 197: | ||
{{Area infobox | {{Area infobox | ||
| name = Barradin's Vaults | | name = Barradin's Vaults | ||
| type = | | type = Landmark | ||
| within = Charr's Triumph | | within = Charr's Triumph | ||
}} | }} | ||
Line 232: | Line 215: | ||
{{Area infobox | {{Area infobox | ||
| name = Salma District | | name = Salma District | ||
| | | landmarks = 5 | ||
| map = Salma District Map POI.jpg | | map = Salma District Map POI.jpg | ||
| type = Instance | | type = Instance | ||
Line 240: | Line 223: | ||
{{Area infobox | {{Area infobox | ||
| name = Barradin's Vaults | | name = Barradin's Vaults | ||
| type = | | type = Landmark | ||
| within = Charr's Triumph | | within = Charr's Triumph | ||
}} | }} |
Revision as of 17:21, 20 June 2017
Area infobox
- Type
- Unknown
}}
Description
This infobox should be used for regions, zones, areas, landmarks, etc., i.e. all locations mentioned here. See also parameter type below.
{{Area infobox | name = | type = | within = | quests = | attuning-crystals = | map = | levels = | connections = | loading-screen = | screenshot = | sstext = | id = }}
Parameters
All parameters are optional.
- name
- Location name. Defaults to {{PAGENAME}}
- type
- The type of location. Use plain text with no wiki-links.
- within
- The parent location of the location being described. Use plain text with no wiki-links. For zones, this should be a region; for areas, this should be a zone; for everything else, this will usually be an area. If within is an area or zone, the parent of within will be displayed underneath in small text.
- coordinates
- If specified, indicates position of a location within the world map.
- quests
- Number of quests
- attuning-crystals
- Number of attuning crystals
- map
- Map image (do not include the "File:" prefix). Defaults to '{{PAGENAME}} map.jpg'
- levels
- Depends on the type used, see as follows
- Zone: The level range for the zone. Separate minimum and maximum levels with a single hyphen "-", e.g.
60 - 70
- Area: The effective level of the area. For the case of dungeon areas where there is an explorable level and a story level, separate values with commas.
- connections
- Other locations that this one has connections to. Usually only specified on zones. Separate multiple connections with <br> and add your own wiki-links. The cardinal direction is usually specified in brackets after the zone name; (N), (S), (E), (W), (NE), etc. In the case of a portal, add (portal) instead of direction. See the Queensdale example below.
- loading-screen
- Loading screen image (do not include the "File:" prefix). Defaults to '{{PAGENAME}} loading screen.jpg'
- screenshot
- Screenshot (do not include the "File:" prefix). Defaults to '{{PAGENAME}}.jpg'
- sstext
- Screenshot text
- locator
- Optional. Use to specify the SVG locator image if the page name doesn't match the filename. Defaults to '{{PAGENAME}} locator.svg'
- objectives
- Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
- release
- The expansion required to access the content. Displays a notice of the release.
Examples
{{Area infobox | name = Queensdale | quests = 17 | attuning-crystals = 2 | map = Queensdale_map.jpg | levels = 1-17 | within = Kryta | type = Zone | connections = [[Divinity's Reach]] (N)<br>[[Gendarran Fields]] (E)<br>[[Kessex Hills]] (S) | pets = [[Krytan Drakehound]]<br>[[Forest Spider]]<br>[[Pig]]<br>[[River Drake]] | loading-screen = Queensdale loading screen.jpg }} {{Area infobox | name = Salma District | landmarks = 5 | map = Salma District Map POI.jpg | type = Instance | within = Divinity's Reach | loading-screen = Salma District loading screen.jpg }} {{Area infobox | name = Barradin's Vaults | type = Landmark | within = Charr's Triumph }}
Queensdale
- Levels
- 1 – 17
- Type
- Zone
- Within
- Kryta
- Connects to
- Divinity's Reach (N)
Gendarran Fields (E)
Kessex Hills (S)
}}
Salma District
- Type
- Instance
- Within
- Divinity's Reach
}}
Barradin's Vaults
- Type
- Landmark
- Within
- Charr's Triumph
}}