Шаблон:Location infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
− | {{infobox status|{{{status|{{ | + | {{#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 |
− | + | The map objective count is the sum of all its children's map objectives | |
− | + | Locations that are map objectives such as PoIs do not have any children | |
− | |||
--> | --> | ||
− | {{#switch:{{lc:{{{type|}}}}} | + | {{#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>{{# | + | </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=,}} |
− | |||
|zone = | |zone = | ||
;Levels | ;Levels | ||
Строка 54: | Строка 56: | ||
;Type | ;Type | ||
:{{#switch: {{lc:{{{type|unknown}}}}} | :{{#switch: {{lc:{{{type|unknown}}}}} | ||
− | + | |point of interest = [[Has location type::Point of Interest]] | |
− | |||
|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:{{#var:parent-of-within}}}} | |
− | + | | region = ;Region<!-- | |
− | + | -->:{{cname|{{{within}}}}} | |
− | --> :{{cname|{{{within}}}}}<!-- | + | | city |
− | --><br><small>({{cname|{{#var:parent- | + | | zone = ;Zone<!-- |
− | + | -->:{{cname|{{{within}}}}}<!-- | |
− | --> :{{cname|{{{within}}}}}<!-- | + | --><br><small>({{cname|{{#var:parent-of-within}}}})</small> |
− | --><br><small>({{cname|{{#var:parent- | + | | area = ;Area<!-- |
− | + | -->:{{cname|{{{within}}}}}<!-- | |
− | --> :{{cname|{{ucfirst:{{{within}}}}}}} | + | --><br><small>({{cname|{{#var:parent-of-within}}}})</small> |
− | + | | dungeon = ;Dungeon<!-- | |
− | }}{{#switch: {{lc:{{{type}}}}} | dungeon = | #default = {{#set:Located in={{ucfirst:{{{within}}}}}}} }} | + | -->:{{cname|{{ucfirst:{{{within}}}}}}} |
− | + | | #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 to | ;Connects to | ||
− | :{{ucfirst:{{{connections}}}}}}}{{#if: {{{pets|}}} | | + | :{{ucfirst:{{{connections}}}}} |
+ | }}{{#if: {{{pets|}}} | | ||
;[[Pet]]s | ;[[Pet]]s | ||
− | :{{ucfirst:{{{pets}}}}}}}{{#if:{{{id|}}} | {{# | + | :{{ucfirst:{{{pets}}}}} |
− | --> | + | }}{{#if: {{{id|}}} | |
− | + | {{#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> | ||
− | {{# | + | {{#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> | ||
− | + | }}{{#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 }} | ||
− | |||
| <!-- 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 | + | <!-- usual types in descending order of size --> |
− | | area | + | | region = [[Category:Regions]] |
− | | | + | | city = [[Category:Cities]] |
− | | dungeon | + | | zone = [[Category:Zones]] [[Category:{{PAGENAME}}|*]] |
− | | | + | | area = [[Category:Areas]] |
− | | | + | | dungeon = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]] |
− | | dungeon | + | <!-- other types --> |
− | | | + | | activity = [[Category:Activities]] |
− | | | + | | guild hall = [[Category:Guild halls]] |
− | | | + | | guild puzzle = [[Category:Guild puzzles]] |
− | + | | instance = [[Category:Instances]] | |
− | | guild puzzle = [[Category: | + | | jumping puzzle = [[Category:Jumping puzzles]] |
− | | | + | | landmark = [[Category:Landmarks]] |
− | | | + | | 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}}|]|}} | ||
+ | }} | ||
}} | }} | ||
− | |||
− | |||
}}<noinclude> | }}<noinclude> | ||
==Description== | ==Description== | ||
− | This infobox should be used for regions, | + | 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>{{ | + | <pre>{{Location infobox |
| name = | | name = | ||
− | |||
− | |||
| 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. Defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt> | |
− | + | ; hearts | |
− | + | : Number of [[renown heart]]s | |
− | + | ; waypoints | |
− | + | : Number of [[waypoint]]s | |
− | + | ; points-of-interest | |
− | + | : Number of [[point of interest|points of interest]] | |
− | + | ; hero challenges | |
− | + | : Number of [[hero challenge]]s | |
− | + | ; vistas | |
− | + | : Number of [[vista]]s | |
− | + | ; map | |
− | + | : Map image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>' | |
− | + | ; map text | |
− | + | : 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. | |
− | + | ; 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> | |
− | + | : 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 <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. | |
− | + | ; pets | |
− | + | : 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). | |
− | + | ; 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 '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>' | |
− | + | ; screenshot | |
− | + | : Screenshot (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}}.jpg</nowiki></tt>' | |
− | + | ; sstext | |
− | + | : 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> | ||
− | {{ | + | {{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 | ||
− | |||
| levels = 1-17 | | levels = 1-17 | ||
− | |||
− | |||
| 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 | ||
}} | }} | ||
− | {{ | + | |
+ | {{Location infobox | ||
| name = Salma District | | name = Salma District | ||
− | |||
| 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 | ||
}} | }} | ||
− | {{ | + | |
+ | {{Location infobox | ||
| name = Barradin's Vaults | | name = Barradin's Vaults | ||
| type = Point of interest | | type = Point of interest | ||
Строка 210: | Строка 293: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ | + | {{Location infobox |
| name = Queensdale | | name = Queensdale | ||
| hearts = 17 | | hearts = 17 | ||
Строка 217: | Строка 300: | ||
| hero challenges = 7 | | hero challenges = 7 | ||
| vistas = 3 | | vistas = 3 | ||
− | | map = | + | | map = Queensdale map.jpg |
+ | | type = Zone | ||
+ | | within = Kryta | ||
| levels = 1-17 | | levels = 1-17 | ||
− | |||
− | |||
| 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 | ||
}} | }} | ||
− | {{ | + | {{Location infobox |
| name = Salma District | | name = Salma District | ||
| points-of-interest = 5 | | points-of-interest = 5 | ||
Строка 235: | Строка 318: | ||
| categorize = n | | categorize = n | ||
}} | }} | ||
− | {{ | + | {{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 | + | [[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
16 21 7 3
Ошибка создания миниатюры: Файл с размерами больше 12,5 MP
Map of Queensdale
- Levels
- 1 – 17
- Type
- Zone
- Within
- Kryta
- Connects to
- Divinity's Reach (N)
Gendarran Fields (E)
Kessex Hills (S) - Pets
- Krytan Drakehound
Forest Spider
Pig
River Drake