Difference between revisions of "Template:Area infobox"
Jump to navigation
Jump to search
m (Protected "Template:Area infobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m |
||
Line 2: | Line 2: | ||
--><!-- Count quests which have this location, defaults to zero otherwise -->{{#vardefine:quests|{{{quests|{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has quests | link = none | format = sum | default = 0 }}}}}}}<div class="infobox-n area"> | --><!-- Count quests which have this location, defaults to zero otherwise -->{{#vardefine:quests|{{{quests|{{#ask: [[Has context::Location]][[Has availability::Current]][[Located in::{{PAGENAME}}]] | ?Has quests | link = none | format = sum | default = 0 }}}}}}}<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> | ||
<!-- $DISABLED <div class="statistics"> | <!-- $DISABLED <div class="statistics"><!-- | ||
-->{{#if: {{{weather|}}} |{{#arraymap:{{{weather}}}|,|@@@|{{#switch:{{lc:@@@}} | |||
| blizzard = [[File:Blizzard (weather).png|18px|link=Blizzard (weather)]]{{#set:Has weather condition=Blizzard}} | |||
}}{{# | | thunder = [[File:Thunder (weather).png|18px|link=Thunder (weather)]]{{#set:Has weather condition=Thunder}} | ||
}} | | clear skies = [[File:Clear Skies.png|18px|link=Clear Skies]]{{#set:Has weather condition=Clear Skies}} | ||
</div> | | dust storms = [[File:Dust Storms.png|18px|link=Dust Storms]]{{#set:Has weather condition=Dust Storms}} | ||
| fair skies = [[File:Fair Skies.png|18px|link=Fair Skies]]{{#set:Has weather condition=Fair Skies}} | |||
| heat waves = [[File:Heat Waves.png|18px|link=Heat Waves]]{{#set:Has weather condition=Heat Waves}} | |||
| umbral static = [[File:Umbral Static.png|18px|link=Umbral Static]]{{#set:Has weather condition=Umbral Static}} | |||
| umbral wind = [[File:Umbral Wind.png|18px|link=Umbral Wind]]{{#set:Has weather condition=Umbral Wind}} | |||
| core radiation = [[File:Core Radiation.png|18px|link=Core Radiation]]{{#set:Has weather condition=Core Radiation}} | |||
| gales (garuda) = [[File:Gales (Garuda).png|18px|link=Gales (Garuda)]]{{#set:Has weather condition=Gales (Garuda)}} | |||
| gloom (king moggle mog) = [[File:Gloom (King Moggle Mog).png|18px|link=Gloom (King Moggle Mog)]]{{#set:Has weather condition=Gloom (King Moggle Mog)}} | |||
| heat wave = [[File:Heat Wave.png|18px|link=Heat Wave]]<!-- Ifrit -->{{#set:Has weather condition=Heat Wave}} | |||
| hot spells = [[File:Hot Spells.png|18px|link=Hot Spells]]{{#set:Has weather condition=Hot Spells}} | |||
| rough seas = [[File:Rough Seas.png|18px|link=Rough Seas]]{{#set:Has weather condition=Rough Seas}} | |||
| royal levin = [[File:Royal Levin.png|18px|link=Royal Levin]]{{#set:Has weather condition=Royal Levin}} | |||
| shelf clouds = [[File:Shelf Clouds.png|18px|link=Shelf Clouds]]{{#set:Has weather condition=Shelf Clouds}} | |||
| storm clouds = [[File:Storm Clouds.png|18px|link=Storm Clouds]]{{#set:Has weather condition=Storm Clouds}} | |||
| #default = [[File:@@@.png|18px|link=@@@]]{{#set:Has weather condition={{ucfirst:@@@}}}}}}| }} | |||
}}<!-- | |||
--></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 56: | Line 73: | ||
}}{{#if: {{{aetherytes|}}} | | }}{{#if: {{{aetherytes|}}} | | ||
;Aetherytes | ;Aetherytes | ||
:{{#arraymap:{{{aetherytes}}}|;|@@@|{{ | :{{#arraymap:{{{aetherytes}}}|;|@@@|{{Trim|{{#vardefineecho:aetheryte-name|{{#explode:@@@|~|0}}}}}} {{convert coordinate|{{#vardefineecho:aetheryte-coords|{{Trim|{{#explode:@@@|~|1}}}}}}}} {{#set:Has aetheryte={{#var:aetheryte-name}}~{{#var:aetheryte-coords}}}}|<br>}} | ||
}}<!-- | }}<!-- | ||
--> | |||
{{clear}} | {{clear}} | ||
</div> | </div> |
Revision as of 13:29, 11 December 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 = | aetherytes = | weather = | map = | levels = | connections = | loading-screen = | screenshot = | sstext = | id = }}
Parameters
All parameters are optional.
- name
- Location name. Defaults to {{PAGENAME}}
- type
- The type of location. Accepts: region, city, dungeon, raid, instance, landmark.
- 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
- aetherytes
- Aetherytes available in the current map. Accepts slash-separated list in the form
<aetheryte name>;<x,y,z coordinates>
. - weather
- Weather conditions. Accepts comma-separated names: Common — blizzard, clear skies, clouds, dust storms, fair skies, fog, gales, gloom, heat waves, rain, sandstorms, showers, snow, thunder, thunderstorms, umbral static, umbral wind, wind. Special — auroras, core radiation, darkness, eruptions, gales (garuda), gloom (king moggle), heat wave, hot spells, hyperelectricity, irradiance, louring, oppression, rough seas, royal levin, shelf clouds, smoke, storm clouds, tension.
- 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 are extra modes, 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.
- 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'
- release
- The expansion required to access the content. Displays a notice of the release.
Examples
{{Area infobox | name = South Shroud | map = South Shroud map.jpg | type = zone | within = The Black Shroud | quests = 58 | aetherytes = Quarrymill~25.0, 20.1; Camp Tranquil ~ 16.8, 28.6 | weather = gloom, fog, storm clouds, thunder, thunderstorms, tension | levels = 20 - 35 | connections = [[Central Shroud]] (NW)<br>[[East Shroud]] (N)<br>[[Eastern Thanalan]] (SW) }}
- Levels
- 20 – 35
- Type
- Zone
- Within
- The Black Shroud
- Connects to
- Central Shroud (NW)
East Shroud (N)
Eastern Thanalan (SW) - Aetherytes
- Quarrymill (X:25.0, Y:20.1)
Camp Tranquil (X:16.8, Y:28.6)