Шаблон:Location infobox — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
{{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}{{#set:Has context=Location}}<!--
+
{{#set:Has context=Location}}<!--
 +
-->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
 +
-->{{infobox requires|{{{requires|{{{release|}}}}}} }}<!--
 
-->{{#if: <!-- Hide whitespace -->
 
-->{{#if: <!-- Hide whitespace -->
<!-- Only set these properties for spatial-type locations, they don't apply to landmarks/points
+
<!-- A location has map objectives if any of its children have map objectives
      Zones identify themselves as having map objectives contributing to map completion
+
    The map objective count is the sum of all its children's map objectives
      An area in a zone contributing to map completion will be true
+
    Locations that are map objectives such as PoIs do not have any children
      These properties will "trickle up" from the objectives found in areas to the continent
 
 
-->
 
-->
{{#switch:{{lc:{{{type|}}}}} | continent | region | zone | explorable zone | city | area | dungeon =
+
{{#switch: {{lc:{{{type|}}}}} | continent | region | zone | city | area | dungeon | instance =
 
   <!-- Define variables only for locations which would have these, defaults to zero otherwise -->
 
   <!-- Define variables only for locations which would have these, defaults to zero otherwise -->
   {{#vardefine:renown hearts    |{{{hearts            |{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has renown hearts      | link = none | format = sum | default = 0 }}}}}}}
+
   {{#vardefine:renown hearts    |{{{hearts            |{{#ask: [[Has context::Location]][[Has map objectives::true]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has renown hearts      | link = none | format = sum | default = 0 }}}}}}}
   {{#vardefine:waypoints        |{{{waypoints        |{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has waypoints          | link = none | format = sum | default = 0 }}}}}}}
+
   {{#vardefine:waypoints        |{{{waypoints        |{{#ask: [[Has context::Location]][[Has map objectives::true]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has waypoints          | link = none | format = sum | default = 0 }}}}}}}
   {{#vardefine:points of interest|{{{points-of-interest|{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has points of interest | link = none | format = sum | default = 0 }}}}}}}
+
   {{#vardefine:points of interest|{{{points-of-interest|{{#ask: [[Has context::Location]][[Has map objectives::true]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has points of interest | link = none | format = sum | default = 0 }}}}}}}
   {{#vardefine:hero challenges  |{{{hero challenges  |{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has hero challenges    | link = none | format = sum | default = 0 }}}}}}}
+
   {{#vardefine:hero challenges  |{{{hero challenges  |{{#ask: [[Has context::Location]][[Has map objectives::true]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has hero challenges    | link = none | format = sum | default = 0 }}}}}}}
   {{#vardefine:vistas            |{{{vistas            |{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has vistas            | link = none | format = sum | default = 0 }}}}}}}
+
   {{#vardefine:vistas            |{{{vistas            |{{#ask: [[Has context::Location]][[Has map objectives::true]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has vistas            | link = none | format = sum | default = 0 }}}}}}}
  
 
   {{#set:
 
   {{#set:
Строка 22: Строка 23:
 
   |Has vistas={{#var:vistas}}
 
   |Has vistas={{#var:vistas}}
 
   }}
 
   }}
}} }}<div class="infobox area">
+
}}
 +
{{#switch: {{lc:{{{type|}}}}} | point of interest | landmark = {{#set:Has map objectives=false}} }}
 +
}}<div class="infobox area">
 
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
 
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
 
<div class="statistics">
 
<div class="statistics">
Строка 32: Строка 35:
 
}}{{#ifeq: {{#var:vistas|0}}            | 0 || {{#var:vistas}}{{map icon|vista}}
 
}}{{#ifeq: {{#var:vistas|0}}            | 0 || {{#var:vistas}}{{map icon|vista}}
 
}}
 
}}
</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.jpg}}}|<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{locator|{{PAGENAME}} locator.jpg}}}{{!}}200x180px]]<br><small>''Location within {{{within|}}}''</small></p>|}}<div class="wrapper">{{#if: {{{levels|}}} |
+
</div>{{#if: {{ifimage|{{{map|{{PAGENAME}} map.jpg}}}|exists}} |<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{map|{{PAGENAME}} map.jpg}}}{{!}}240x200px]]<br><small>''{{{map text|Map of {{{name|{{PAGENAME}}}}}}}}''</small></p>|}}{{#if: {{ifimage|{{{locator|{{PAGENAME}} locator.svg}}}|exists}} |<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 =  
 
;Level
 
;Level
:{{{levels}}}{{#set:Has effective level={{{levels|0}}}}}
+
:{{{levels}}}{{#set:Has effective level={{{levels|0}}}|+sep=,}}
| explorable zone
 
 
|zone =  
 
|zone =  
 
;Levels
 
;Levels
Строка 54: Строка 56:
 
;Type
 
;Type
 
:{{#switch: {{lc:{{{type|unknown}}}}}
 
:{{#switch: {{lc:{{{type|unknown}}}}}
   |poi|point of interest = [[Has location type::Point of Interest]]
+
   |point of interest = [[Has location type::Point of Interest]]
  |explorable zone|zone=[[Has location type::Zone]]
 
 
   |unknown=''Unknown''
 
   |unknown=''Unknown''
 
   |#default = [[Has location type::{{ucfirst:{{{type}}}}}]]  
 
   |#default = [[Has location type::{{ucfirst:{{{type}}}}}]]  
 
}}
 
}}
 
{{#if:{{{within|}}}
 
{{#if:{{{within|}}}
   | {{#switch:{{lc:{{#show:{{{within}}}|?Has location type|link=none}}}}
+
   | {{#vardefine:parent-of-within|{{#show:{{{within}}}|?Located in|link=none}}}}<!--
    | region = ;Region :{{cname|{{{within}}}}}{{#set:Located in={{ucfirst:{{{within}}}}}}}
+
-->{{#switch:{{lc:{{#var:parent-of-within}}}}
    | city | explorable zone
+
    | region = ;Region<!--
    | zone = ;Zone {{#vardefine:parent-zone|{{#show:{{{within}}}|?Located in|link=none}}}}<!--
+
            -->:{{cname|{{{within}}}}}
             --> :{{cname|{{{within}}}}}<!--
+
    | city
             --><br><small>({{cname|{{#var:parent-zone}}}})</small>
+
    | zone = ;Zone<!--
    | area = ;Area {{#vardefine:parent-zone|{{#show:{{{within}}}|?Located in|link=none}}}}<!--
+
             -->:{{cname|{{{within}}}}}<!--
             --> :{{cname|{{{within}}}}}<!--
+
             --><br><small>({{cname|{{#var:parent-of-within}}}})</small>
             --><br><small>({{cname|{{#var:parent-zone}}}})</small>
+
    | area = ;Area<!--
    | dungeon = ;Dungeon {{#vardefine:parent-zone|{{{within}}}}}<!--
+
             -->:{{cname|{{{within}}}}}<!--
             --> :{{cname|{{ucfirst:{{{within}}}}}}}
+
             --><br><small>({{cname|{{#var:parent-of-within}}}})</small>
    | #default = ;Within :{{cname|{{{within}}}}}
+
    | dungeon = ;Dungeon<!--
     }}{{#switch: {{lc:{{{type}}}}} | dungeon = | #default = {{#set:Located in={{ucfirst:{{{within}}}}}}} }}
+
             -->:{{cname|{{ucfirst:{{{within}}}}}}}
  | ;Within :''Unknown''
+
    | #default = ;Within<!--
 +
            -->:{{cname|{{{within}}}}}
 +
     }}{{#switch: {{lc:{{{type}}}}}
 +
    | dungeon =
 +
    | #default = {{#set:Located in={{ucfirst:{{{within}}}}}}}
 +
    }}
 +
}}{{#if: {{{within|}}} |
 +
  {{#if: {{{type|}}} |
 +
    {{#ifeq: {{{type|}}} | Continent
 +
    | <!-- don't set anything for continents -->
 +
    | {{#ifeq: {{#show: {{{within}}} | ?Has location type | default = Unset | link = none }} | Continent
 +
        | {{#set: Located in tree={{{within|}}} }}
 +
        | {{#set: Located in tree={{#show: {{{within}}} | ?Located in tree | default=Unset}};{{{within|}}} }}
 +
      }}
 +
    }}
 +
  }}
 
}}{{#if: {{{connections|}}} |
 
}}{{#if: {{{connections|}}} |
 
;Connects&nbsp;to
 
;Connects&nbsp;to
:{{ucfirst:{{{connections}}}}}}}{{#if: {{{pets|}}} |
+
:{{ucfirst:{{{connections}}}}}
 +
}}{{#if: {{{pets|}}} |
 
;[[Pet]]s
 
;[[Pet]]s
:{{ucfirst:{{{pets}}}}}}}{{#if:{{{id|}}} | {{#set:Has game id={{{id}}}}} {{#vardefine:mapID|{{{id}}}}} <!-- set property for SMW queries; variable for [[Template:Zone map]]
+
:{{ucfirst:{{{pets}}}}}
-->{{#switch:{{lc:{{{type|}}}}}
+
}}{{#if: {{{id|}}} |
| 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) -->
+
{{#vardefine:mapID|{{#explode:{{{id}}}|,|0}}}}<!-- Set a variable for [[Template:Zone map v2]]
 +
--><!-- only display a chat link for Points of Interest, nothing else creates a valid link (would include waypoints and vistas but they don't get pages) -->{{#switch: {{lc:{{{type|}}}}}
 +
| point of interest = {{#set:Has game id={{{id}}}|+sep=,}}
 
;Game link
 
;Game link
:{{map link|{{{id}}}}} }} }}
+
:{{map link|{{#explode:{{{id}}}|,|0}}}}
 +
| #default = {{#set:Has area id={{{id}}}|+sep=,}}
 +
}}{{#switch: {{lc:{{{type|}}}}}
 +
| city
 +
| zone
 +
| dungeon
 +
| guild hall
 +
| raid =
 +
;API
 +
:[https://api.guildwars2.com/v2/maps?ids={{#replace:{{{id}}}&lang=en| |}} API] <!-- "&lang=" is being left in on purpose to make it easier to search for interwiki names of maps by switching "en" to "es/fr/de" -->
 +
}}
 +
}}
 
{{clear}}
 
{{clear}}
 
</div>
 
</div>
{{#ifexist:File:{{{loading-screen|{{PAGENAME}} loading screen.jpg}}}|
+
{{#if: {{ifimage|{{{loading-screen|{{PAGENAME}} loading screen.jpg}}}|exists}} |
 
<p class="image_wrapper" style="padding:0 5px; text-align:center;">[[File:{{{loading-screen|{{PAGENAME}} loading screen.jpg}}}{{!}}240px]]<br><small>''Loading screen''</small></p>
 
<p class="image_wrapper" style="padding:0 5px; text-align:center;">[[File:{{{loading-screen|{{PAGENAME}} loading screen.jpg}}}{{!}}240px]]<br><small>''Loading screen''</small></p>
|}}{{#ifexist: File:{{{screenshot|{{PAGENAME}}.jpg}}}|
+
}}{{#if: {{ifimage|{{{screenshot|{{PAGENAME}}.jpg}}}|exists}} |
<p class="image_wrapper" style="padding:0 5px; text-align:center;">[[File:{{{screenshot|{{PAGENAME}}.jpg}}}{{!}}240px]]<br/><small>''{{{sstext|{{{name|{{PAGENAME}}}}}}}}''</small></p>|}}
+
<p class="image_wrapper" style="padding:0 5px; text-align:center;">[[Has appearance::File:{{{screenshot|{{PAGENAME}}.jpg}}}{{!}}240px]]<br/><small>''{{{sstext|{{{name|{{PAGENAME}}}}}}}}''</small></p>
 +
}}{{#if: {{{coordinates|}}} | {{#switch: {{lc:{{{type|}}}}} | point of interest | landmark =
 +
<div style="padding:0 5px; text-align:center;">{{Infobox map | coordinates = {{{coordinates}}} | type = {{lc:{{{type|}}}}} | localtiles = {{{localtiles|{{#ifeq:{{{requires|{{{release|}}}}}}|lws4|y}} }}} }}</div>
 +
}}
 +
}}
 
</div><!--
 
</div><!--
 
AUTOCATEGORIZATION
 
AUTOCATEGORIZATION
Строка 94: Строка 128:
 
           {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }}
 
           {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }}
 
           {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }}
 
           {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }}
          {{#ifeq: {{lc:{{{historical}}}}} | y | do not categorize }}<!-- legacy support -->
 
 
  | <!-- Do not categorize -->{{#ifeq: {{lc:{{{type|}}}}} | dungeon | [[Category:{{{name|{{PAGENAME}}}}}|*]] }}<!-- keeps historical dungeons categorized -->  |
 
  | <!-- Do not categorize -->{{#ifeq: {{lc:{{{type|}}}}} | dungeon | [[Category:{{{name|{{PAGENAME}}}}}|*]] }}<!-- keeps historical dungeons categorized -->  |
 +
<!-- Categories based on location type -->
 
   {{#switch: {{lc:{{{type|}}}}}
 
   {{#switch: {{lc:{{{type|}}}}}
   | zone           = [[Category:Zones]][[Category:{{{name|{{PAGENAME}}}}}|*]]
+
  <!-- usual types in descending order of size -->
   | area           = [[Category:Areas]]
+
  | region        = [[Category:Regions]]
   | region          = [[Category:Regions]][[Category:{{{name|{{PAGENAME}}}}}|*]]
+
  | city          = [[Category:Cities]]
   | dungeon         = [[Category:Dungeons]][[Category:{{{name|{{PAGENAME}}}}}|*]]
+
   | zone           = [[Category:Zones]] [[Category:{{PAGENAME}}|*]]
   | activity        = [[Category:Activities]]
+
   | area           = [[Category:Areas]]
   | city
+
   | dungeon        = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]]
   | dungeon
+
  <!-- other types -->
   | instance
+
  | activity      = [[Category:Activities]]
   | lobby
+
  | guild hall    = [[Category:Guild halls]]
   | guild hall      = [[Category:{{{name|{{PAGENAME}}}}}|*]]
+
  | guild puzzle  = [[Category:Guild puzzles]]
  | jumping puzzle  = [[Category:Jumping puzzles]]
+
  | instance      = [[Category:Instances]]
   | guild puzzle    = [[Category:Guild puzzles]]
+
   | jumping puzzle = [[Category:Jumping puzzles]]
   | super adventure zone = [[Category:Super Adventure Box zones]]
+
  | landmark      = [[Category:Landmarks]]
   | raid            = [[Category:Raids]]
+
  | mini-dungeon   = [[Category:Mini-dungeons]]
 +
  | raid          = [[Category:Raids]]
 +
  }}
 +
<!-- Categories based on parent location type -->
 +
  {{#if: {{{within|}}} | {{#switch: {{lc:{{{type|}}}}}
 +
  <!-- usual types in descending order of size -->
 +
  | region              <!-- these are located within continents (parent) -->
 +
   | city                <!-- these are located within regions (parent) -->
 +
   | zone                <!-- these are located within regions (parent) -->
 +
   | dungeon             <!-- these are mostly (*excluding historicals) located within regions (parent) -->
 +
   | guild hall          <!-- these are located within regions (parent) -->
 +
   | area                <!-- these are located within cities, zones or dungeons (parent) -->
 +
   | raid              = <!-- these are located within zones (parent) -->[[Category:{{{within|}}}]]
 +
  | point of interest = <!-- these are mostly located within areas (grandparent), caveats apply for some instances and raids (parent) --><!--
 +
                      -->{{#if: {{#show:{{{within}}}|?Has location type}}
 +
                          | {{#switch: {{#show:{{{within}}}|?Has location type}}
 +
                            | Raid | Region | Instance = [[Category:{{{within|}}}]]
 +
                            | #default = [[Category:{{#var:parent-of-within}}]]
 +
                          }}
 +
                        }}
 +
 
 +
   | guild puzzle        <!-- these are located within areas, within zones (grandparent) -->
 +
  | jumping puzzle    = <!-- these are located within areas, within zones (grandparent) -->[[Category:{{#var:parent-of-within}}]]
 +
   | mini-dungeon      = <!-- these are located within areas, within zones (grandparent) -->[[Category:{{#var:parent-of-within}}]]
 +
   | 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. -->
 +
  }} }}
 +
  {{#if: {{{coordinates|}}} |
 +
  {{#set:
 +
    | Has x coordinate = {{#replace:{{#explode: {{{coordinates|}}} |,|0}}|[|}}
 +
    | Has y coordinate = {{#replace:{{#explode: {{{coordinates|}}} |,|1}}|]|}}
 +
  }}
 
   }}
 
   }}
  {{#if:{{#var:parent-zone}}|[[Category:{{#var:parent-zone}}]]}}
 
  {{#ifeq:{{ucfirst:{{{type|}}}}}|Landmark|[[Category:Landmarks]]}}
 
 
}}<noinclude>
 
}}<noinclude>
  
 
==Description==
 
==Description==
This infobox should be used for regions, explorable zones, areas, points of interest, etc., i.e. all locations mentioned [[Location|here]]. See also parameter '''type''' below.
+
This infobox should be used for regions, zones, areas, points of interest, etc., i.e. all locations mentioned [[Location|here]]. See also parameter '''type''' below.
  
<pre>{{Area infobox
+
<pre>{{Location infobox
 
| name =  
 
| name =  
| type =
 
| within =
 
 
| hearts =
 
| hearts =
 
| waypoints =
 
| waypoints =
Строка 129: Строка 189:
 
| vistas =  
 
| vistas =  
 
| map =
 
| map =
 +
| map text =
 
| levels =
 
| levels =
 +
| type =
 +
| within =
 
| connections =
 
| connections =
 
| pets =
 
| pets =
Строка 138: Строка 201:
 
}}</pre>
 
}}</pre>
  
===Parameters===
+
=== Parameters ===
 
All parameters are optional.
 
All parameters are optional.
* '''name''': Location name
+
; name
** Default is <tt><nowiki>{{PAGENAME}}</nowiki></tt>
+
: Location name. Defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt>
* '''type''': The type of [[location]].
+
; hearts
** Provide plain text, a '''link''' to the description page of the type is added automatically.
+
: Number of [[renown heart]]s
** A '''category''' for the type is added automatically.
+
; waypoints
* '''within''': The parent location of the location being described.
+
: Number of [[waypoint]]s
** For zones, this should be a region; for areas, this should be a zone; for everything else, this should usually be an area.
+
; points-of-interest
** If ''within'' is an area or zone, the parent of ''within'' will be displayed underneath in small text.
+
: Number of [[point of interest|points of interest]]
** Provide plain text, the '''link''' is created automatically.
+
; hero challenges
** A '''category''' is created automatically.
+
: Number of [[hero challenge]]s
* '''hearts''': Number of [[renown heart]]s
+
; vistas
* '''waypoints''': Number of [[waypoint]]s
+
: Number of [[vista]]s
* '''points-of-interest''': Number of [[point of interest|points of interest]]
+
; map
* '''hero challenges''': Number of [[hero challenge]]s
+
: Map image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>'
* '''vistas''': Number of [[vista]]s
+
; map text
* '''map''': Map image (do not include File:)
+
: Optional. Defaults to "Map of <nowiki>{{{name|{{PAGENAME}}}}}</nowiki>". As an example, this could be used on zone articles with multiple layers to label that the particular area is on the Depths level.
** Default is '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>'
+
; levels
* '''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. <code><nowiki>60 - 70</nowiki></code>
+
: Zone: The level range for the zone. Separate minimum and maximum levels with a single hyphen "-", e.g. <code><nowiki>60 - 70</nowiki></code>
** Area: The [[effective level]] of the area
+
: 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 (mainly used for zones) this one has connections to.
+
; type
** Separate with '''<tt><nowiki><br></nowiki></tt>'''.
+
: The type of [[location]]. Use plain text with no wiki-links.
** Optional (see discussion page): Add the direction as (N), (S), (E), (W), (NE), etc. In case of a '''portal''' add <tt>(portal)</tt> instead of direction.
+
: Available options: "Continent", "Region", "Zone", "Area", "City", "Guild hall", "Dungeon", "Activity", "Raid", "Point of interest", "Landmark", "Jumping puzzle", "Mini-dungeon", "Guild puzzle", or "Instance".
** '''Links''' are '''not''' created automatically, so please state as '''<tt><nowiki>[[...]]</nowiki></tt>''' for location names.
+
; within
** ''Example: The code for the example below looks like this:'' <tt><nowiki>[[Divinity's Reach]] (N)<br>[[Gendarran Fields]] (E)<br>[[Kessex Hills]] (S)</nowiki></tt>
+
: 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.
* '''pets''': Ranger-teamable juvenile animals.
+
; connections
** Like 'connects to' separate with '''<tt><nowiki><br></nowiki></tt>''' and provide links manually. Include for zone infoboxes, redundant for area infoboxes(see discussion page).
+
: Other locations that this one has connections to. Usually only specified on zones. Separate multiple connections with <tt><nowiki><br></nowiki></tt> 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 <tt>(portal)</tt> instead of direction. See the Queensdale example below.
* '''loading-screen''': Loading screen image (do not include File:)
+
; pets
** Default is '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>'
+
: Ranger-tameable juvenile animals. Like "connections" above, separate with <tt><nowiki><br></nowiki></tt> and provide links manually. Include for zone infoboxes, redundant for location infoboxes (see discussion page).
* '''screenshot''': Screenshot (do not include File:)
+
; objectives
** Default is '<tt><nowiki>{{PAGENAME}}.jpg</nowiki></tt>'
+
: Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
* '''sstext''': Screenshot text
+
; loading-screen
* '''locator''': Optional. Use to specify the SVG locator image if the page name doesn't match the filename. Don't specify the file prefix, do specify the file suffix.
+
: Loading screen image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>'
* '''id''': The game ID for the location, displayed as a game link. Only valid for waypoints and points of interest.
+
; screenshot
* '''categorize''': "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
+
: Screenshot (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}}.jpg</nowiki></tt>'
* '''status''': Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
+
; sstext
* '''historical''': (legacy parameter). Duplicates function of setting <code>status = historical</code>. ''y'' displays the {{tl|historical content}} notice.
+
: Screenshot text
 +
; locator
 +
: Use to specify the SVG locator image if the page name doesn't match the filename. Defaults to '<tt><nowiki>{{PAGENAME}} locator.svg</nowiki></tt>'
 +
; coordinates
 +
: Optional. The X and Y coordinates for the location. Displays an interactive map with a marker at the given location. e.g. <code>[12345, 31321]</code>. Only displayed for pages with the "type" set equal to "Point of interest" or "Landmark". See [[Template:Infobox map]] for details on how to capture coordinates.
 +
; localtiles
 +
: Optional. If set, uses local wiki tiles instead of the API raster tiles. See [[:Category:Map raster tiles]].
 +
; id
 +
: The game ID for the location, displayed as a game link. Only shown for points of interest, but should also be set on Zone articles as this allows [[Template:Zone map v2]] to work.
 +
; categorize
 +
: "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
 +
; status
 +
: Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default). See {{tl|infobox status}} for options.
 +
; status notes
 +
: Additional notes to explain the given status. For example, if the content was only available during a specific release.
 +
;status date
 +
:Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
 +
; requires
 +
: The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options.
  
 
===Examples===
 
===Examples===
 
<pre>
 
<pre>
{{Area infobox
+
{{Location infobox
 
| name = Queensdale
 
| name = Queensdale
 +
| map = Queensdale map.jpg
 +
| type = Zone
 +
| within = Kryta
 
| hearts = 17
 
| hearts = 17
 
| waypoints = 16
 
| waypoints = 16
Строка 187: Строка 271:
 
| hero challenges = 7
 
| hero challenges = 7
 
| vistas = 3
 
| vistas = 3
| map = Queensdale_map.jpg
 
 
| levels = 1-17
 
| levels = 1-17
| within = Kryta
 
| type = Explorable zone
 
 
| connections = [[Divinity's Reach]] (N)<br>[[Gendarran Fields]] (E)<br>[[Kessex Hills]] (S)
 
| connections = [[Divinity's Reach]] (N)<br>[[Gendarran Fields]] (E)<br>[[Kessex Hills]] (S)
 
| pets = [[Krytan Drakehound]]<br>[[Forest Spider]]<br>[[Pig]]<br>[[River Drake]]
 
| pets = [[Krytan Drakehound]]<br>[[Forest Spider]]<br>[[Pig]]<br>[[River Drake]]
 
| loading-screen = Queensdale loading screen.jpg
 
| loading-screen = Queensdale loading screen.jpg
 
}}
 
}}
{{Area infobox
+
 
 +
{{Location infobox
 
| name = Salma District
 
| name = Salma District
| points-of-interest = 5
 
 
| map = Salma District Map POI.jpg
 
| map = Salma District Map POI.jpg
 
| type = Instance
 
| type = Instance
 
| within = Divinity's Reach
 
| within = Divinity's Reach
 +
| points-of-interest = 5
 
| loading-screen = Salma District loading screen.jpg
 
| loading-screen = Salma District loading screen.jpg
 
}}
 
}}
{{Area infobox
+
 
 +
{{Location infobox
 
| name = Barradin's Vaults
 
| name = Barradin's Vaults
 
| type = Point of interest
 
| type = Point of interest
Строка 210: Строка 293:
 
}}
 
}}
 
</pre>
 
</pre>
{{Area infobox
+
{{Location infobox
 
| name = Queensdale
 
| name = Queensdale
 
| hearts = 17
 
| hearts = 17
Строка 217: Строка 300:
 
| hero challenges = 7
 
| hero challenges = 7
 
| vistas = 3
 
| vistas = 3
| map = Queensdale_map.jpg
+
| map = Queensdale map.jpg
 +
| type = Zone
 +
| within = Kryta
 
| levels = 1-17
 
| levels = 1-17
| within = Kryta
 
| type = Explorable zone
 
 
| connections = [[Divinity's Reach]] (N)<br>[[Gendarran Fields]] (E)<br>[[Kessex Hills]] (S)
 
| connections = [[Divinity's Reach]] (N)<br>[[Gendarran Fields]] (E)<br>[[Kessex Hills]] (S)
 
| pets = [[Krytan Drakehound]]<br>[[Forest Spider]]<br>[[Pig]]<br>[[River Drake]]
 
| pets = [[Krytan Drakehound]]<br>[[Forest Spider]]<br>[[Pig]]<br>[[River Drake]]
Строка 226: Строка 309:
 
| categorize = n
 
| categorize = n
 
}}
 
}}
{{Area infobox
+
{{Location infobox
 
| name = Salma District
 
| name = Salma District
 
| points-of-interest = 5
 
| points-of-interest = 5
Строка 235: Строка 318:
 
| categorize = n
 
| categorize = n
 
}}
 
}}
{{Area infobox
+
{{Location infobox
 
| name = Barradin's Vaults
 
| name = Barradin's Vaults
 
| type = Point of interest
 
| type = Point of interest
Строка 247: Строка 330:
 
* [[Guild Wars 2 Wiki:Location formatting]]
 
* [[Guild Wars 2 Wiki:Location formatting]]
  
[[Category:Infobox templates|Area]]</noinclude>
+
[[Category:Infobox templates]]</noinclude>

Текущая версия на 00:02, 5 июня 2019

Location infobox

Type
Unknown

Description[править]

This infobox should be used for regions, zones, areas, points of interest, etc., i.e. all locations mentioned here. See also parameter type below.

{{Location infobox
| name = 
| hearts =
| waypoints =
| points-of-interest =
| hero challenges =
| vistas = 
| map =
| map text = 
| levels =
| type =
| within =
| connections =
| pets =
| loading-screen =
| screenshot =
| sstext =
| id =
}}

Parameters[править]

All parameters are optional.

name
Location name. Defaults to {{PAGENAME}}
hearts
Number of renown hearts
waypoints
Number of waypoints
points-of-interest
Number of points of interest
hero challenges
Number of hero challenges
vistas
Number of vistas
map
Map image (do not include the "File:" prefix). Defaults to '{{PAGENAME}} map.jpg'
map text
Optional. Defaults to "Map of {{{name|{{PAGENAME}}}}}". As an example, this could be used on zone articles with multiple layers to label that the particular area is on the Depths level.
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.
type
The type of location. Use plain text with no wiki-links.
Available options: "Continent", "Region", "Zone", "Area", "City", "Guild hall", "Dungeon", "Activity", "Raid", "Point of interest", "Landmark", "Jumping puzzle", "Mini-dungeon", "Guild puzzle", or "Instance".
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.
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.
pets
Ranger-tameable juvenile animals. Like "connections" above, separate with <br> and provide links manually. Include for zone infoboxes, redundant for location infoboxes (see discussion page).
objectives
Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
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
Use to specify the SVG locator image if the page name doesn't match the filename. Defaults to '{{PAGENAME}} locator.svg'
coordinates
Optional. The X and Y coordinates for the location. Displays an interactive map with a marker at the given location. e.g. [12345, 31321]. Only displayed for pages with the "type" set equal to "Point of interest" or "Landmark". See Template:Infobox map for details on how to capture coordinates.
localtiles
Optional. If set, uses local wiki tiles instead of the API raster tiles. See Category:Map raster tiles.
id
The game ID for the location, displayed as a game link. Only shown for points of interest, but should also be set on Zone articles as this allows Template:Zone map v2 to work.
categorize
"y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
status
Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default). See {{infobox status}} for options.
status notes
Additional notes to explain the given status. For example, if the content was only available during a specific release.
status date
Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
requires
The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} for options.

Examples[править]

{{Location infobox
| name = Queensdale
| map = Queensdale map.jpg
| type = Zone
| within = Kryta
| hearts = 17
| waypoints = 16
| points-of-interest = 21
| hero challenges = 7
| vistas = 3
| levels = 1-17
| 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
}}

{{Location infobox
| name = Salma District
| map = Salma District Map POI.jpg
| type = Instance
| within = Divinity's Reach
| points-of-interest = 5
| loading-screen = Salma District loading screen.jpg
}}

{{Location infobox
| name = Barradin's Vaults
| type = Point of interest
| within = Charr's Triumph
| id = 1458
}}

Queensdale

17
Complete heart (map icon).png
 16
Waypoint (tango icon).png
 21
Point of interest.png
 7
Hero point.png
 3
Vista.png

Ошибка создания миниатюры: Файл с размерами больше 12,5 MP

Map of Queensdale

Queensdale loading screen.jpg
Loading screen

Salma District

5
Point of interest.png
 

Salma District Map POI.jpg
Map of Salma District

Salma District loading screen.jpg
Loading screen

Barradin's Vaults

5
Point of interest.png
 
Type
Point of Interest
Within
Charr's Triumph
Game link

See also[править]