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

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

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

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

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

Текущая версия Ваш текст
Строка 1: Строка 1:
 
{{#set:Has context=Location}}<!--
 
{{#set:Has context=Location}}<!--
-->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
+
-->{{infobox status|{{{status|}}}|{{{status notes|}}}}}<!--
-->{{infobox requires|{{{requires|{{{release|}}}}}} }}<!--
+
-->{{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>{{#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.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: {{{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}}}|+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}}}}<!-- 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|{{#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}} |
+
{{#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;">[[Has appearance::File:{{{screenshot|{{PAGENAME}}.jpg}}}{{!}}240px]]<br/><small>''{{{sstext|{{{name|{{PAGENAME}}}}}}}}''</small></p>
}}{{#if: {{{coordinates|}}} | {{#switch: {{lc:{{{type|}}}}} | point of interest | landmark =
+
}}{{#if: {{{coordinates|}}} | {{#switch: {{lc:{{{type|}}}}} | point of interest =
<div style="padding:0 5px; text-align:center;">{{Infobox map | coordinates = {{{coordinates}}} | type = {{lc:{{{type|}}}}} | localtiles = {{{localtiles|{{#ifeq:{{{requires|{{{release|}}}}}}|lws4|y}} }}} }}</div>
+
<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, within zones (grandparent) -->
 
 
   | 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>{{Location infobox
+
<pre>{{Area infobox
 
| name =  
 
| name =  
 +
| type =
 +
| within =
 
| hearts =
 
| hearts =
 
| waypoints =
 
| waypoints =
Строка 189: Строка 169:
 
| vistas =  
 
| vistas =  
 
| map =
 
| map =
| map text =
 
 
| levels =
 
| levels =
| type =
 
| within =
 
 
| 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>'
; 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
 
; 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.
; 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
 
; 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-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).
+
: 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).
; 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
 
: 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>'
; coordinates
+
; objectives
: 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.
+
: Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
; localtiles
 
: Optional. If set, uses local wiki tiles instead of the API raster tiles. See [[:Category:Map raster tiles]].
 
 
; id
 
; 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.
+
: 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.
;status date
+
; release
:Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
+
: The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options.
; 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: Строка 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
{{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: Строка 261:
 
}}
 
}}
 
</pre>
 
</pre>
{{Location infobox
+
{{Area infobox
 
| name = Queensdale
 
| name = Queensdale
 
| hearts = 17
 
| hearts = 17
Строка 300: Строка 268:
 
| hero challenges = 7
 
| hero challenges = 7
 
| vistas = 3
 
| vistas = 3
| map = Queensdale map.jpg
+
| map = Queensdale_map.jpg
 +
| levels = 1-17
 +
| within = Kryta
 
| type = Zone
 
| type = Zone
| within = Kryta
 
| 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]]
Строка 309: Строка 277:
 
| categorize = n
 
| categorize = n
 
}}
 
}}
{{Location infobox
+
{{Area infobox
 
| name = Salma District
 
| name = Salma District
 
| points-of-interest = 5
 
| points-of-interest = 5
Строка 318: Строка 286:
 
| 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: Строка 298:
 
* [[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:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

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

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