Difference between revisions of "Template:Area infobox"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
(first major pass)
Line 11: Line 11:
   |Has attuning crystals={{#var:attuning crystals}}
   |Has attuning crystals={{#var:attuning crystals}}
   }}
   }}
}} }}<div class="infobox-n area">
}}}}<div class="infobox-n area">
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
<div class="statistics">
<!-- $DISABLED <div class="statistics">
<!-- Display map icons for objectives if non-zero:
!-- Display map icons for objectives if non-zero:
-->{{#ifeq: {{#var:quests|0}}            | 0 || {{#var:quests}}{{map icon|quest}}&nbsp;
--{{#ifeq: {{#var:quests|0}}            | 0 || {{#var:quests}}{{map icon|quest}}&nbsp;
}}{{#ifeq: {{#var:attuning crystals|0}}  | 0 || {{#var:attuning crystals}}{{map icon|attuning crystal}}&nbsp;
}}{{#ifeq: {{#var:attuning crystals|0}}  | 0 || {{#var:attuning crystals}}{{map icon|attuning crystal}}&nbsp;
}}
}}
</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|}}} |
</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 =  
Line 39: Line 39:
;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}}}}}]]  
Line 65: Line 64:
}}{{#if: {{{connections|}}} |
}}{{#if: {{{connections|}}} |
;Connects&nbsp;to
;Connects&nbsp;to
:{{ucfirst:{{{connections}}}}}}}{{#if:{{{id|}}} | {{#set:Has game id={{{id}}}|+sep=,}} {{#vardefine:mapID|{{#explode:{{{id}}}|,|0}}}} <!-- set property for SMW queries; variable for [[Template:Zone map v2]]
:{{ucfirst:{{{connections}}}}}}}<!--
--><!-- {{#switch:{{lc:{{{type|}}}}}
--><!-- $DISABLED {{#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) --
| 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) --
;Game link
;Game link
Line 80: Line 79:
</div><!--
</div><!--
AUTOCATEGORIZATION
AUTOCATEGORIZATION
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace -->
-->{{#if: {{NAMESPACE}} | <!-- Do not categorize --> |
          {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }}
          {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }}
| <!-- Do not categorize -->{{#ifeq: {{lc:{{{type|}}}}} | dungeon | [[Category:{{{name|{{PAGENAME}}}}}|*]] }}<!-- keeps historical dungeons categorized -->  |
  <!-- Categories based on location type -->
  <!-- Categories based on location type -->
   {{#switch: {{lc:{{{type|}}}}}
   {{#switch: {{lc:{{{type|}}}}}
Line 93: Line 89:
   | dungeon        = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]]
   | dungeon        = [[Category:Dungeons]] [[Category:{{{name|{{PAGENAME}}}}}|*]]
   <!-- other types -->
   <!-- other types -->
  | activity      = [[Category:Activities]]
  | guild hall    = [[Category:Guild halls]]
  | guild puzzle  = [[Category:Guild puzzles]]
  | instance      = [[Category:Instances]]
  | jumping puzzle = [[Category:Jumping puzzles]]
   | landmark      = [[Category:Landmarks]]
   | landmark      = [[Category:Landmarks]]
   | mini-dungeon  = [[Category:Mini-dungeons]]
   | mini-dungeon  = [[Category:Mini-dungeons]]
Line 111: Line 102:
   | 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) --><!--
   | landmark          = <!-- these are mostly located within areas (grandparent), caveats apply for some instances and raids (parent) --><!--
                       -->{{#if: {{#show:{{{within}}}|?Has location type}}
                       -->{{#if: {{#show:{{{within}}}|?Has location type}}
                           | {{#switch: {{#show:{{{within}}}|?Has location type}}
                           | {{#switch: {{#show:{{{within}}}|?Has location type}}
Line 120: Line 110:
                           }}
                           }}
                         }}
                         }}
  | 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. -->
   | 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. -->
   }} }}
   }} }}
Line 134: Line 121:


==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, zones, areas, landmarks, etc., i.e. all locations mentioned [[Location|here]]. See also parameter '''type''' below.


<pre>{{Area infobox
<pre>{{Area infobox
Line 183: Line 170:
; objectives
; objectives
: Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
: Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
; id
: The game ID for the location, displayed as a game link. Only valid for waypoints and points of interest.
; 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.
; release
; release
: The expansion required to access the content. Displays a notice of the release.
: The expansion required to access the content. Displays a notice of the release.
Line 206: Line 189:
{{Area infobox
{{Area infobox
| name = Salma District
| name = Salma District
| points-of-interest = 5
| landmarks = 5
| map = Salma District Map POI.jpg
| map = Salma District Map POI.jpg
| type = Instance
| type = Instance
Line 214: Line 197:
{{Area infobox
{{Area infobox
| name = Barradin's Vaults
| name = Barradin's Vaults
| type = Point of interest
| type = Landmark
| within = Charr's Triumph
| within = Charr's Triumph
}}
}}
Line 232: Line 215:
{{Area infobox
{{Area infobox
| name = Salma District
| name = Salma District
| points-of-interest = 5
| landmarks = 5
| map = Salma District Map POI.jpg
| map = Salma District Map POI.jpg
| type = Instance
| type = Instance
Line 240: Line 223:
{{Area infobox
{{Area infobox
| name = Barradin's Vaults
| name = Barradin's Vaults
| type = Point of interest
| type = Landmark
| within = Charr's Triumph
| within = Charr's Triumph
}}
}}

Revision as of 17:21, 20 June 2017

Area infobox

Type
Unknown

}}

Description

This infobox should be used for regions, zones, areas, landmarks, etc., i.e. all locations mentioned here. See also parameter type below.

{{Area infobox
| name = 
| type =
| within =
| quests =
| attuning-crystals = 
| map =
| levels =
| connections =
| loading-screen =
| screenshot =
| sstext =
| id =
}}

Parameters

All parameters are optional.

name
Location name. Defaults to {{PAGENAME}}
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.
quests
Number of quests
attuning-crystals
Number of attuning crystals
map
Map image (do not include the "File:" prefix). Defaults to '{{PAGENAME}} map.jpg'
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.
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.
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
Optional. Use to specify the SVG locator image if the page name doesn't match the filename. Defaults to '{{PAGENAME}} locator.svg'
objectives
Optional. Defaults to "n". Only set equal to "y" if the location has map objectives that contribute towards world completion (core tyria).
release
The expansion required to access the content. Displays a notice of the release.

Examples

{{Area infobox
| name = Queensdale
| quests = 17
| attuning-crystals = 2
| map = Queensdale_map.jpg
| levels = 1-17
| within = Kryta
| type = Zone
| 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
}}
{{Area infobox
| name = Salma District
| landmarks = 5
| map = Salma District Map POI.jpg
| type = Instance
| within = Divinity's Reach
| loading-screen = Salma District loading screen.jpg
}}
{{Area infobox
| name = Barradin's Vaults
| type = Landmark
| within = Charr's Triumph
}}

Queensdale

Levels
1 – 17
Type
Zone
Within
Kryta
Connects to
Divinity's Reach (N)
Gendarran Fields (E)
Kessex Hills (S)

}}

Salma District

Type
Instance
Within
Divinity's Reach

}}

Barradin's Vaults

Type
Landmark
Within
Charr's Triumph

}}