Редактирование: Шаблон:Location infobox
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
− | + | {{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}{{#set:Has context=Location}}<!-- | |
− | |||
− | |||
-->{{#if: <!-- Hide whitespace --> | -->{{#if: <!-- Hide whitespace --> | ||
− | <!-- | + | <!-- Only set these properties for spatial-type locations, they don't apply to landmarks/points |
− | + | Zones identify themselves as having map objectives contributing to map completion | |
− | + | 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 | + | {{#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 | + | {{#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 | + | {{#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 | + | {{#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 | + | {{#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 | + | {{#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"> |
− | |||
− | }}<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>{{# | + | </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}}} | + | :{{{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|}}} | ||
− | | {{# | + | | {{#switch:{{lc:{{#show:{{{within}}}|?Has location type|link=none}}}} |
− | + | | region = ;Region :{{cname|{{{within}}}}}{{#set:Located in={{ucfirst:{{{within}}}}}}} | |
− | + | | city | explorable zone | |
− | + | | zone = ;Zone {{#vardefine:parent-zone|{{#show:{{{within}}}|?Located in|link=none}}}}<!-- | |
− | + | --> :{{cname|{{{within}}}}}<!-- | |
− | + | --><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- | + | --> :{{cname|{{{within}}}}}<!-- |
− | + | --><br><small>({{cname|{{#var:parent-zone}}}})</small> | |
− | -->:{{cname|{{{within}}}}}<!-- | + | | dungeon = ;Dungeon {{#vardefine:parent-zone|{{{within}}}}}<!-- |
− | --><br><small>({{cname|{{#var:parent- | + | --> :{{cname|{{ucfirst:{{{within}}}}}}} |
− | + | | #default = ;Within :{{cname|{{{within}}}}} | |
− | -->:{{cname|{{ucfirst:{{{within}}}}}}} | + | }}{{#switch: {{lc:{{{type}}}}} | dungeon = | #default = {{#set:Located in={{ucfirst:{{{within}}}}}}} }} |
− | + | | ;Within :''Unknown'' | |
− | |||
− | }}{{#switch: {{lc:{{{type}}}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}{{#if: {{{connections|}}} | | }}{{#if: {{{connections|}}} | | ||
;Connects to | ;Connects 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|}}}}} |
− | {{# | + | | 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 | ||
− | |||
;Game link | ;Game link | ||
− | :{{map link| | + | :{{map link|{{{id}}}}} }} }} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | }} | ||
{{clear}} | {{clear}} | ||
</div> | </div> | ||
− | {{# | + | {{#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> | ||
− | }}{{# | + | |}}{{#ifexist: File:{{{screenshot|{{PAGENAME}}.jpg}}}| |
− | <p class="image_wrapper" style="padding:0 5px; text-align:center;">[[ | + | <p class="image_wrapper" style="padding:0 5px; text-align:center;">[[File:{{{screenshot|{{PAGENAME}}.jpg}}}{{!}}240px]]<br/><small>''{{{sstext|{{{name|{{PAGENAME}}}}}}}}''</small></p>|}} |
− | |||
− | |||
− | |||
− | }} | ||
</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 --> | | ||
− | |||
{{#switch: {{lc:{{{type|}}}}} | {{#switch: {{lc:{{{type|}}}}} | ||
− | + | | zone = [[Category:Zones]][[Category:{{{name|{{PAGENAME}}}}}|*]] | |
− | + | | area = [[Category:Areas]] | |
− | + | | region = [[Category:Regions]][[Category:{{{name|{{PAGENAME}}}}}|*]] | |
− | | zone | + | | dungeon = [[Category:Dungeons]][[Category:{{{name|{{PAGENAME}}}}}|*]] |
− | | area | + | | activity = [[Category:Activities]] |
− | | | + | | city |
− | + | | dungeon | |
− | | | + | | instance |
− | + | | lobby | |
− | + | | guild hall = [[Category:{{{name|{{PAGENAME}}}}}|*]] | |
− | + | | jumping puzzle = [[Category:Jumping puzzles]] | |
− | | | + | | guild puzzle = [[Category:Guild puzzles]] |
− | | | + | | super adventure zone = [[Category:Super Adventure Box zones]] |
− | | | + | | raid = [[Category:Raids]] |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | guild hall | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | guild | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
+ | {{#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>{{ | + | <pre>{{Area infobox |
| name = | | name = | ||
+ | | type = | ||
+ | | within = | ||
| hearts = | | hearts = | ||
| waypoints = | | waypoints = | ||
Строка 189: | Строка 129: | ||
| vistas = | | vistas = | ||
| map = | | map = | ||
− | |||
| levels = | | levels = | ||
− | |||
− | |||
| connections = | | connections = | ||
| pets = | | pets = | ||
Строка 201: | Строка 138: | ||
}}</pre> | }}</pre> | ||
− | === Parameters === | + | ===Parameters=== |
All parameters are optional. | All parameters are optional. | ||
− | + | * '''name''': Location name | |
− | : Location name | + | ** 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. |
− | + | ** A '''category''' for the type is added automatically. | |
− | : Number of [[waypoint]]s | + | * '''within''': The parent location of the location being described. |
− | + | ** 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. |
− | + | ** Provide plain text, the '''link''' is created automatically. | |
− | : Number of [[hero challenge]]s | + | ** A '''category''' is created automatically. |
− | + | * '''hearts''': Number of [[renown heart]]s | |
− | : Number of [[vista]]s | + | * '''waypoints''': Number of [[waypoint]]s |
− | + | * '''points-of-interest''': Number of [[point of interest|points of interest]] | |
− | : Map image (do not include | + | * '''hero challenges''': Number of [[hero challenge]]s |
− | + | * '''vistas''': Number of [[vista]]s | |
− | + | * '''map''': Map image (do not include File:) | |
− | + | ** Default is '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>' | |
− | : | + | * '''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> | |
− | + | ** Area: The [[effective level]] of the area | |
− | + | * '''connections''': Other locations (mainly used for zones) this one has connections to. | |
− | + | ** Separate with '''<tt><nowiki><br></nowiki></tt>'''. | |
− | + | ** 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. | |
− | + | ** '''Links''' are '''not''' created automatically, so please state as '''<tt><nowiki>[[...]]</nowiki></tt>''' for location names. | |
− | + | ** ''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> | |
− | + | * '''pets''': Ranger-teamable juvenile animals. | |
− | : Other locations | + | ** 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). |
− | + | * '''loading-screen''': Loading screen image (do not include File:) | |
− | : Ranger- | + | ** Default is '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>' |
− | + | * '''screenshot''': Screenshot (do not include File:) | |
− | + | ** Default is '<tt><nowiki>{{PAGENAME}}.jpg</nowiki></tt>' | |
− | + | * '''sstext''': Screenshot text | |
− | : Loading screen image (do not include | + | * '''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. |
− | + | * '''id''': The game ID for the location, displayed as a game link. Only valid for waypoints and points of interest. | |
− | : Screenshot (do not include | + | * '''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). | |
− | : Screenshot text | + | * '''historical''': (legacy parameter). Duplicates function of setting <code>status = historical</code>. ''y'' displays the {{tl|historical content}} notice. |
− | |||
− | : Use to specify the SVG locator image if the page name doesn't match the filename. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | : The game ID for the location, displayed as a game link. Only | ||
− | |||
− | : "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 of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default) | ||
− | |||
− | : | ||
− | |||
− | |||
− | |||
− | |||
===Examples=== | ===Examples=== | ||
<pre> | <pre> | ||
− | {{ | + | {{Area infobox |
| name = Queensdale | | name = Queensdale | ||
− | |||
− | |||
− | |||
| 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 | |
− | {{ | ||
| 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 | ||
− | |||
| loading-screen = Salma District loading screen.jpg | | loading-screen = Salma District loading screen.jpg | ||
}} | }} | ||
− | + | {{Area infobox | |
− | {{ | ||
| name = Barradin's Vaults | | name = Barradin's Vaults | ||
| type = Point of interest | | type = Point of interest | ||
Строка 293: | Строка 210: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ | + | {{Area infobox |
| name = Queensdale | | name = Queensdale | ||
| hearts = 17 | | hearts = 17 | ||
Строка 300: | Строка 217: | ||
| hero challenges = 7 | | hero challenges = 7 | ||
| vistas = 3 | | vistas = 3 | ||
− | | map = | + | | map = Queensdale_map.jpg |
− | | | + | | levels = 1-17 |
| within = Kryta | | 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]] | ||
Строка 309: | Строка 226: | ||
| categorize = n | | categorize = n | ||
}} | }} | ||
− | {{ | + | {{Area infobox |
| name = Salma District | | name = Salma District | ||
| points-of-interest = 5 | | points-of-interest = 5 | ||
Строка 318: | Строка 235: | ||
| categorize = n | | categorize = n | ||
}} | }} | ||
− | {{ | + | {{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> |