Редактирование: Шаблон:Location infobox
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
{{#set:Has context=Location}}<!-- | {{#set:Has context=Location}}<!-- | ||
− | -->{{infobox status|{{{status|}}}|{{{status notes | + | -->{{infobox status|{{{status|}}}|{{{status notes|}}}}}<!-- |
− | -->{{infobox | + | -->{{infobox release|{{{release|}}} }}<!-- |
-->{{#if: <!-- Hide whitespace --> | -->{{#if: <!-- Hide whitespace --> | ||
<!-- A location has map objectives if any of its children have map objectives | <!-- A location has map objectives if any of its children have map objectives | ||
Строка 35: | Строка 35: | ||
}}{{#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.svg}}}|<p class="image_wrapper" style="padding:0 5px; text-align: center;">[[File:{{{locator|{{PAGENAME}} locator.svg}}}{{!}}200x180px]]<br><small>''Location within {{{within|}}}''</small></p>|}}<div class="wrapper">{{#if: {{{levels|}}} | |
{{#switch:{{lc:{{{type}}}}} | {{#switch:{{lc:{{{type}}}}} | ||
|area = | |area = | ||
Строка 64: | Строка 64: | ||
-->{{#switch:{{lc:{{#var:parent-of-within}}}} | -->{{#switch:{{lc:{{#var:parent-of-within}}}} | ||
| region = ;Region<!-- | | region = ;Region<!-- | ||
− | -->:{{cname|{{{within}}}}} | + | --> :{{cname|{{{within}}}}} |
| city | | city | ||
| zone = ;Zone<!-- | | zone = ;Zone<!-- | ||
− | -->:{{cname|{{{within}}}}}<!-- | + | --> :{{cname|{{{within}}}}}<!-- |
--><br><small>({{cname|{{#var:parent-of-within}}}})</small> | --><br><small>({{cname|{{#var:parent-of-within}}}})</small> | ||
| area = ;Area<!-- | | area = ;Area<!-- | ||
− | -->:{{cname|{{{within}}}}}<!-- | + | --> :{{cname|{{{within}}}}}<!-- |
--><br><small>({{cname|{{#var:parent-of-within}}}})</small> | --><br><small>({{cname|{{#var:parent-of-within}}}})</small> | ||
| dungeon = ;Dungeon<!-- | | dungeon = ;Dungeon<!-- | ||
− | -->:{{cname|{{ucfirst:{{{within}}}}}}} | + | --> :{{cname|{{ucfirst:{{{within}}}}}}} |
| #default = ;Within<!-- | | #default = ;Within<!-- | ||
− | -->:{{cname|{{{within}}}}} | + | --> :{{cname|{{{within}}}}} |
}}{{#switch: {{lc:{{{type}}}}} | }}{{#switch: {{lc:{{{type}}}}} | ||
| dungeon = | | dungeon = | ||
| #default = {{#set:Located in={{ucfirst:{{{within}}}}}}} | | #default = {{#set:Located in={{ucfirst:{{{within}}}}}}} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}{{#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}}}|+sep=,}} {{#vardefine:mapID|{{#explode:{{{id}}}|,|0}}}} <!-- set property for SMW queries; variable for [[Template:Zone map v2]] |
− | }}{{#if: {{{id|}}} | | + | -->{{#switch:{{lc:{{{type|}}}}} |
− | {{#vardefine:mapID|{{#explode:{{{id}}}|,|0}}}}<!-- | + | | 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|{{#explode:{{{id}}}|,|0}}}} | :{{map link|{{#explode:{{{id}}}|,|0}}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} | ||
{{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;">[[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;">[[Has appearance::File:{{{screenshot|{{PAGENAME}}.jpg}}}{{!}}240px]]<br/><small>''{{{sstext|{{{name|{{PAGENAME}}}}}}}}''</small></p> | ||
− | }}{{#if: {{{coordinates|}}} | {{#switch: {{lc:{{{type|}}}}} | point of interest | + | }}{{#if: {{{coordinates|}}} | {{#switch: {{lc:{{{type|}}}}} | point of interest = |
− | <div style="padding:0 5px; text-align:center;">{{Infobox map | coordinates = {{{coordinates}}} | type = {{lc:{{{type| | + | <div style="padding:0 5px; text-align:center;">{{Infobox map | coordinates = {{{coordinates}}} | type = {{lc:{{{type|}}}}} }}</div> |
}} | }} | ||
}} | }} | ||
Строка 134: | Строка 112: | ||
| region = [[Category:Regions]] | | region = [[Category:Regions]] | ||
| city = [[Category:Cities]] | | city = [[Category:Cities]] | ||
− | | zone = [[Category:Zones]] [[Category:{{PAGENAME}}|*]] | + | | zone = [[Category:Zones]] [[Category:{{{name|{{PAGENAME}}}}}|*]] |
| area = [[Category:Areas]] | | area = [[Category:Areas]] | ||
| dungeon = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]] | | dungeon = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]] | ||
Строка 156: | Строка 134: | ||
| guild hall <!-- these are located within regions (parent) --> | | guild hall <!-- these are located within regions (parent) --> | ||
| area <!-- these are located within cities, zones or dungeons (parent) --> | | area <!-- these are located within cities, zones or dungeons (parent) --> | ||
+ | | activity <!-- these are located within cities or zones (parent) --> | ||
| raid = <!-- these are located within zones (parent) -->[[Category:{{{within|}}}]] | | 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) --><!-- | | point of interest = <!-- these are mostly located within areas (grandparent), caveats apply for some instances and raids (parent) --><!-- | ||
Строка 164: | Строка 143: | ||
}} | }} | ||
}} | }} | ||
− | + | | guild puzzle <!-- these are located within areas within zones (grandparent) --> | |
− | | guild puzzle <!-- these are located within areas | ||
| jumping puzzle = <!-- these are located within areas, within zones (grandparent) -->[[Category:{{#var:parent-of-within}}]] | | 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}}]] | | mini-dungeon = <!-- these are located within areas, within zones (grandparent) -->[[Category:{{#var:parent-of-within}}]] | ||
Строка 181: | Строка 159: | ||
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, 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: | Строка 169: | ||
| vistas = | | vistas = | ||
| map = | | map = | ||
− | |||
| levels = | | levels = | ||
− | |||
− | |||
| connections = | | connections = | ||
| pets = | | pets = | ||
Строка 205: | Строка 182: | ||
; name | ; name | ||
: Location name. Defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt> | : Location name. Defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt> | ||
+ | ; type | ||
+ | : The type of [[location]]. Use plain text with no wiki-links. | ||
+ | ; within | ||
+ | : The parent location of the location being described. Use plain text with no wiki-links. For zones, this should be a region; for areas, this should be a zone; for everything else, this will usually be an area. If ''within'' is an area or zone, the parent of ''within'' will be displayed underneath in small text. | ||
+ | ; coordinates | ||
+ | : If specified, indicates position of a location within the world map. | ||
; hearts | ; hearts | ||
: Number of [[renown heart]]s | : Number of [[renown heart]]s | ||
Строка 217: | Строка 200: | ||
; map | ; map | ||
: Map image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>' | : Map image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} map.jpg</nowiki></tt>' | ||
− | |||
− | |||
; levels | ; levels | ||
: Depends on the type used, see as follows | : 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. 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. For the case of dungeon areas where there is an explorable level and a story level, separate values with commas. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
; connections | ; 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. | : 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 | ; pets | ||
− | : Ranger- | + | : Ranger-teamable juvenile animals. Like "connections" above, 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 | ||
: Loading screen image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>' | : Loading screen image (do not include the "File:" prefix). Defaults to '<tt><nowiki>{{PAGENAME}} loading screen.jpg</nowiki></tt>' | ||
Строка 241: | Строка 215: | ||
: Screenshot text | : Screenshot text | ||
; locator | ; 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>' | + | : Optional. 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>' |
− | ; | + | ; objectives |
− | : Optional. | + | : Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria). |
− | |||
− | |||
; id | ; id | ||
− | : The game ID for the location, displayed as a game link. Only | + | : The game ID for the location, displayed as a game link. Only valid for waypoints and points of interest. |
; categorize | ; 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. | : "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. | ||
Строка 254: | Строка 226: | ||
; status notes | ; status notes | ||
: Additional notes to explain the given status. For example, if the content was only available during a specific release. | : Additional notes to explain the given status. For example, if the content was only available during a specific release. | ||
− | ; | + | ; release |
− | + | : The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options. | |
− | |||
− | : The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox | ||
===Examples=== | ===Examples=== | ||
<pre> | <pre> | ||
− | {{ | + | {{Area infobox |
| name = Queensdale | | name = Queensdale | ||
− | |||
− | |||
− | |||
| hearts = 17 | | hearts = 17 | ||
| waypoints = 16 | | waypoints = 16 | ||
Строка 271: | Строка 238: | ||
| hero challenges = 7 | | hero challenges = 7 | ||
| vistas = 3 | | vistas = 3 | ||
+ | | map = Queensdale_map.jpg | ||
| levels = 1-17 | | levels = 1-17 | ||
+ | | within = Kryta | ||
+ | | type = 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: | Строка 261: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ | + | {{Area infobox |
| name = Queensdale | | name = Queensdale | ||
| hearts = 17 | | hearts = 17 | ||
Строка 300: | Строка 268: | ||
| hero challenges = 7 | | hero challenges = 7 | ||
| vistas = 3 | | vistas = 3 | ||
− | | map = | + | | map = Queensdale_map.jpg |
+ | | levels = 1-17 | ||
+ | | within = Kryta | ||
| type = Zone | | type = 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: | Строка 277: | ||
| categorize = n | | categorize = n | ||
}} | }} | ||
− | {{ | + | {{Area infobox |
| name = Salma District | | name = Salma District | ||
| points-of-interest = 5 | | points-of-interest = 5 | ||
Строка 318: | Строка 286: | ||
| categorize = n | | categorize = n | ||
}} | }} | ||
− | {{ | + | {{Area infobox |
| name = Barradin's Vaults | | name = Barradin's Vaults | ||
| type = Point of interest | | type = Point of interest | ||
Строка 330: | Строка 298: | ||
* [[Guild Wars 2 Wiki:Location formatting]] | * [[Guild Wars 2 Wiki:Location formatting]] | ||
− | [[Category:Infobox templates]]</noinclude> | + | [[Category:Infobox templates|Area]]</noinclude> |