Редактирование: Шаблон:Location infobox

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск

Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.

Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.

На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.

Текущая версия Ваш текст
Строка 1: Строка 1:
{{#set:Has context=Location}}<!--
+
{{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}{{#set:Has context=Location}}<!--
-->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
 
-->{{infobox requires|{{{requires|{{{release|}}}}}} }}<!--
 
 
-->{{#if: <!-- Hide whitespace -->
 
-->{{#if: <!-- Hide whitespace -->
<!-- A location has map objectives if any of its children have map objectives
+
<!-- Only set these properties for spatial-type locations, they don't apply to landmarks/points
    The map objective count is the sum of all its children's map objectives
+
      Zones identify themselves as having map objectives contributing to map completion
    Locations that are map objectives such as PoIs do not have any children
+
      An area in a zone contributing to map completion will be true
 +
      These properties will "trickle up" from the objectives found in areas to the continent
 
-->
 
-->
{{#switch: {{lc:{{{type|}}}}} | continent | region | zone | city | area | dungeon | instance =
+
{{#switch:{{lc:{{{type|}}}}} | continent | region | zone | explorable zone | city | area | dungeon =
 
   <!-- 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 map objectives::true]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has renown hearts      | link = none | format = sum | default = 0 }}}}}}}
+
   {{#vardefine:renown hearts    |{{{hearts            |{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has renown hearts      | 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:waypoints        |{{{waypoints        |{{#ask: [[Has context::Location]][[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 map objectives::true]][[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 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 map objectives::true]][[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 availability::Current]][[Located in::{{PAGENAME}}]] | ?Has hero challenges    | 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 }}}}}}}
+
   {{#vardefine:vistas            |{{{vistas            |{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has vistas            | link = none | format = sum | default = 0 }}}}}}}
  
 
   {{#set:
 
   {{#set:
Строка 23: Строка 22:
 
   |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">
Строка 35: Строка 32:
 
}}{{#ifeq: {{#var:vistas|0}}            | 0 || {{#var:vistas}}{{map icon|vista}}
 
}}{{#ifeq: {{#var:vistas|0}}            | 0 || {{#var:vistas}}{{map icon|vista}}
 
}}
 
}}
</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|}}} |
+
</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|}}} |
 
{{#switch:{{lc:{{{type}}}}}
 
{{#switch:{{lc:{{{type}}}}}
 
|area =  
 
|area =  
 
;Level
 
;Level
:{{{levels}}}{{#set:Has effective level={{{levels|0}}}|+sep=,}}
+
:{{{levels}}}{{#set:Has effective level={{{levels|0}}}}}
 +
| explorable zone
 
|zone =  
 
|zone =  
 
;Levels
 
;Levels
Строка 56: Строка 54:
 
;Type
 
;Type
 
:{{#switch: {{lc:{{{type|unknown}}}}}
 
:{{#switch: {{lc:{{{type|unknown}}}}}
   |point of interest = [[Has location type::Point of Interest]]
+
   |poi|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|}}}
   | {{#vardefine:parent-of-within|{{#show:{{{within}}}|?Located in|link=none}}}}<!--
+
   | {{#switch:{{lc:{{#show:{{{within}}}|?Has location type|link=none}}}}
-->{{#switch:{{lc:{{#var:parent-of-within}}}}
+
    | region = ;Region :{{cname|{{{within}}}}}{{#set:Located in={{ucfirst:{{{within}}}}}}}
    | region = ;Region<!--
+
    | city | explorable zone
            -->:{{cname|{{{within}}}}}
+
    | zone = ;Zone {{#vardefine:parent-zone|{{#show:{{{within}}}|?Located in|link=none}}}}<!--
    | city
+
             --> :{{cname|{{{within}}}}}<!--
    | zone = ;Zone<!--
+
             --><br><small>({{cname|{{#var:parent-zone}}}})</small>
             -->:{{cname|{{{within}}}}}<!--
+
    | area = ;Area {{#vardefine:parent-zone|{{#show:{{{within}}}|?Located in|link=none}}}}<!--
             --><br><small>({{cname|{{#var:parent-of-within}}}})</small>
+
             --> :{{cname|{{{within}}}}}<!--
    | area = ;Area<!--
+
             --><br><small>({{cname|{{#var:parent-zone}}}})</small>
             -->:{{cname|{{{within}}}}}<!--
+
    | dungeon = ;Dungeon {{#vardefine:parent-zone|{{{within}}}}}<!--
             --><br><small>({{cname|{{#var:parent-of-within}}}})</small>
+
             --> :{{cname|{{ucfirst:{{{within}}}}}}}
    | dungeon = ;Dungeon<!--
+
    | #default = ;Within :{{cname|{{{within}}}}}
             -->:{{cname|{{ucfirst:{{{within}}}}}}}
+
     }}{{#switch: {{lc:{{{type}}}}} | dungeon = | #default = {{#set:Located in={{ucfirst:{{{within}}}}}}} }}
    | #default = ;Within<!--
+
  | ;Within :''Unknown''
            -->:{{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}}}}}
+
:{{ucfirst:{{{connections}}}}}}}{{#if: {{{pets|}}} |
}}{{#if: {{{pets|}}} |
 
 
;[[Pet]]s
 
;[[Pet]]s
:{{ucfirst:{{{pets}}}}}
+
:{{ucfirst:{{{pets}}}}}}}{{#if:{{{id|}}} | {{#set:Has game id={{{id}}}}} {{#vardefine:mapID|{{{id}}}}} <!-- set property for SMW queries; variable for [[Template:Zone map]]
}}{{#if: {{{id|}}} |
+
-->{{#switch:{{lc:{{{type|}}}}}
{{#vardefine:mapID|{{#explode:{{{id}}}|,|0}}}}<!-- Set a variable for [[Template:Zone map v2]]
+
| 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) -->
--><!-- 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|{{#explode:{{{id}}}|,|0}}}}
+
:{{map link|{{{id}}}}} }} }}
| #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>
{{#if: {{ifimage|{{{loading-screen|{{PAGENAME}} loading screen.jpg}}}|exists}} |
+
{{#ifexist:File:{{{loading-screen|{{PAGENAME}} loading screen.jpg}}}|
 
<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>
}}{{#if: {{ifimage|{{{screenshot|{{PAGENAME}}.jpg}}}|exists}} |
+
|}}{{#ifexist: File:{{{screenshot|{{PAGENAME}}.jpg}}}|
<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>
+
<p class="image_wrapper" style="padding:0 5px; text-align:center;">[[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
Строка 128: Строка 94:
 
           {{#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|}}}}}
  <!-- usual types in descending order of size -->
+
   | zone           = [[Category:Zones]][[Category:{{{name|{{PAGENAME}}}}}|*]]
  | region        = [[Category:Regions]]
+
   | area           = [[Category:Areas]]
  | city          = [[Category:Cities]]
+
   | region          = [[Category:Regions]][[Category:{{{name|{{PAGENAME}}}}}|*]]
   | zone           = [[Category:Zones]] [[Category:{{PAGENAME}}|*]]
+
   | dungeon        = [[Category:Dungeons]][[Category:{{{name|{{PAGENAME}}}}}|*]]
   | area           = [[Category:Areas]]
+
   | activity        = [[Category:Activities]]
   | dungeon        = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]]
+
   | city
  <!-- other types -->
+
   | dungeon
   | activity      = [[Category:Activities]]
+
   | instance
  | guild hall    = [[Category:Guild halls]]
+
   | lobby
  | guild puzzle  = [[Category:Guild puzzles]]
+
   | guild hall     = [[Category:{{{name|{{PAGENAME}}}}}|*]]
  | instance      = [[Category:Instances]]
+
  | jumping puzzle  = [[Category:Jumping puzzles]]
   | jumping puzzle = [[Category:Jumping puzzles]]
+
   | guild puzzle    = [[Category:Guild puzzles]]
   | landmark      = [[Category:Landmarks]]
+
   | super adventure zone = [[Category:Super Adventure Box zones]]
   | mini-dungeon   = [[Category:Mini-dungeons]]
+
   | raid            = [[Category:Raids]]
   | 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, 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, explorable zones, areas, points of interest, etc., i.e. all locations mentioned [[Location|here]]. See also parameter '''type''' below.
  
<pre>{{Location infobox
+
<pre>{{Area infobox
 
| name =  
 
| name =  
 +
| type =
 +
| within =
 
| hearts =
 
| hearts =
 
| waypoints =
 
| waypoints =
Строка 189: Строка 129:
 
| vistas =  
 
| vistas =  
 
| map =
 
| map =
| map text =
 
 
| levels =
 
| levels =
| type =
 
| within =
 
 
| connections =
 
| connections =
 
| pets =
 
| pets =
Строка 201: Строка 138:
 
}}</pre>
 
}}</pre>
  
=== Parameters ===
+
===Parameters===
 
All parameters are optional.
 
All parameters are optional.
; name
+
* '''name''': Location name
: Location name. Defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt>
+
** Default is <tt><nowiki>{{PAGENAME}}</nowiki></tt>
; hearts
+
* '''type''': The type of [[location]].
: Number of [[renown heart]]s
+
** Provide plain text, a '''link''' to the description page of the type is added automatically.
; waypoints
+
** A '''category''' for the type is added automatically.
: Number of [[waypoint]]s
+
* '''within''': The parent location of the location being described.
; points-of-interest
+
** For zones, this should be a region; for areas, this should be a zone; for everything else, this should usually be an area.
: Number of [[point of interest|points of interest]]
+
** If ''within'' is an area or zone, the parent of ''within'' will be displayed underneath in small text.
; hero challenges
+
** Provide plain text, the '''link''' is created automatically.
: Number of [[hero challenge]]s
+
** A '''category''' is created automatically.
; vistas
+
* '''hearts''': Number of [[renown heart]]s
: Number of [[vista]]s
+
* '''waypoints''': Number of [[waypoint]]s
; map
+
* '''points-of-interest''': Number of [[point of interest|points of interest]]
: Map image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>'
+
* '''hero challenges''': Number of [[hero challenge]]s
; map text
+
* '''vistas''': Number of [[vista]]s
: 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.
+
* '''map''': Map image (do not include File:)
; levels
+
** Default is '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>'
: Depends on the type used, see as follows
+
* '''levels''':
: 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. For the case of dungeon areas where there is an explorable level and a story level, separate values with commas.
+
** Area: The [[effective level]] of the area
; type
+
* '''connections''': Other locations (mainly used for zones) this one has connections to.
: The type of [[location]]. Use plain text with no wiki-links.
+
** Separate with '''<tt><nowiki><br></nowiki></tt>'''.
: Available options: "Continent", "Region", "Zone", "Area", "City", "Guild hall", "Dungeon", "Activity", "Raid", "Point of interest", "Landmark", "Jumping puzzle", "Mini-dungeon", "Guild puzzle", or "Instance".
+
** 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.
; within
+
** '''Links''' are '''not''' created automatically, so please state as '''<tt><nowiki>[[...]]</nowiki></tt>''' for location names.
: 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.
+
** ''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>
; connections
+
* '''pets''': Ranger-teamable juvenile animals.
: 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.
+
** 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).
; pets
+
* '''loading-screen''': Loading screen image (do not include File:)
: 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).
+
** Default is '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>'
; objectives
+
* '''screenshot''': Screenshot (do not include File:)
: Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
+
** Default is '<tt><nowiki>{{PAGENAME}}.jpg</nowiki></tt>'
; loading-screen
+
* '''sstext''': Screenshot text
: Loading screen image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>'
+
* '''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.
; screenshot
+
* '''id''': The game ID for the location, displayed as a game link. Only valid for waypoints and points of interest.
: Screenshot (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}}.jpg</nowiki></tt>'
+
* '''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.
; sstext
+
* '''status''': Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
: Screenshot text
+
* '''historical''': (legacy parameter). Duplicates function of setting <code>status = historical</code>. ''y'' displays the {{tl|historical content}} notice.
; 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>
{{Location infobox
+
{{Area infobox
 
| name = Queensdale
 
| name = Queensdale
| map = Queensdale map.jpg
 
| type = Zone
 
| within = Kryta
 
 
| hearts = 17
 
| hearts = 17
 
| waypoints = 16
 
| waypoints = 16
Строка 271: Строка 187:
 
| 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
Строка 293: Строка 210:
 
}}
 
}}
 
</pre>
 
</pre>
{{Location infobox
+
{{Area infobox
 
| name = Queensdale
 
| name = Queensdale
 
| hearts = 17
 
| hearts = 17
Строка 300: Строка 217:
 
| hero challenges = 7
 
| hero challenges = 7
 
| vistas = 3
 
| vistas = 3
| map = Queensdale map.jpg
+
| map = Queensdale_map.jpg
| type = Zone
+
| levels = 1-17
 
| within = Kryta
 
| within = Kryta
| levels = 1-17
+
| 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]]
Строка 309: Строка 226:
 
| categorize = n
 
| categorize = n
 
}}
 
}}
{{Location infobox
+
{{Area infobox
 
| name = Salma District
 
| name = Salma District
 
| points-of-interest = 5
 
| points-of-interest = 5
Строка 318: Строка 235:
 
| categorize = n
 
| categorize = n
 
}}
 
}}
{{Location infobox
+
{{Area infobox
 
| name = Barradin's Vaults
 
| name = Barradin's Vaults
 
| type = Point of interest
 
| type = Point of interest
Строка 330: Строка 247:
 
* [[Guild Wars 2 Wiki:Location formatting]]
 
* [[Guild Wars 2 Wiki:Location formatting]]
  
[[Category:Infobox templates]]</noinclude>
+
[[Category:Infobox templates|Area]]</noinclude>

Пожалуйста, учтите, что любой ваш вклад в проект «Guild Wars 2 wiki» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Guild Wars 2 wiki:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

Чтобы изменить эту страницу, пожалуйста, ответьте на приведённый ниже вопрос (подробнее):

Отменить | Справка по редактированию (в новом окне)