Difference between revisions of "Template:Area"

From Alter Aeon Wiki
(line break after main content, other + location sections, test of string explode parser function for builders)
Line 63: Line 63:
| {{#if: {{{realm|}}} | [[{{{realm|}}}]] | Unspecified (please fix)}}
| {{#if: {{{realm|}}} | [[{{{realm|}}}]] | Unspecified (please fix)}}
|-
|-
! Builder(s)
! Builder(s) | {{#if:{{#explode:{{{builders|}}}||1}}| [[{{#explode:{{{builders|}}}||1}}]] |Unspecified (please fix) }}{{#if:{{#explode:{{{builders|}}}||2}}| [[{{#explode:{{{builders|}}}||2}}]]|}}{{#if:{{{builder3|}}}| [[{{{builder3}}}]]   |}}{{#if:{{{builder4|}}}| [[{{{builder4}}}]] |}}{{#if:{{{builder5|}}}| [[{{{builder5}}}]] |}}{{#if:{{{builder6|}}}| [[{{{builder6}}}]] |}}
| |{{#if:{{{builder1|}}}| [[{{{builder1}}}]] |Unspecified (please fix) }}{{#if:{{{builder2|}}}| [[{{{builder2}}}]]|}}{{#if:{{{builder3|}}}| [[{{{builder3}}}]]   |}}{{#if:{{{builder4|}}}| [[{{{builder4}}}]] |}}{{#if:{{{builder5|}}}| [[{{{builder5}}}]] |}}{{#if:{{{builder6|}}}| [[{{{builder6}}}]] |}}
|-
|-
! Level
! Level
| {{{level|Unspecified (please fix)}}}
| {{{level|Unspecified (please fix)}}}
{{TableRowIf | {{{aggro_type|}}} | Aggro type}}{{TableRowIf | {{{eps|}}} | [[Explorer Point]]s}}{{TableRowIf | {{{fame|}}} | [[Fame]]}}{{TableRowIf | {{{waypoints|}}} | [[Waypoint]]s}}{{TableRowIf | {{{donation_room|}}} | [[Donation Room]]}}{{TableRowIf | {{{area_size|}}} | Area Size}}{{TableRowIf | {{{terrain|}}} | Terrain}}{{TableRowIf | {{{mob_types|}}} | Mob Types}}{{TableRowIf | {{{num_shops|}}} | [[Shop|Number of Shops]]}}{{TableRowIf | {{{num_trainers|}}} | [[Trainer|Number of Trainers]]}}{{TableRowIf | {{{num_questors|}}} | [[Questor|Number of Questors]]}}{{TableRowIf | {{{repop|}}} | [[repop|Reset time]]}}{{TableRowIf | {{{landmarks|}}} | Landmarks}}{{TableRowIf | {{{coords|}}} | Coords }}{{TableRowIf | {{{align|}}} | Align }}
{{TableRowIf | {{{aggro_type|}}} | Aggro type}}{{TableRowIf | {{{eps|}}} | [[Explorer Point]]s}}{{TableRowIf | {{{fame|}}} | [[Fame]]}}{{TableRowIf | {{{waypoints|}}} | [[Waypoint]]s}}{{TableRowIf | {{{donation_room|}}} | [[Donation Room]]}}{{TableRowIf | {{{area_size|}}} | Area Size}}{{TableRowIf | {{{terrain|}}} | Terrain}}{{TableRowIf | {{{mob_types|}}} | Mob Types}}{{TableRowIf | {{{num_shops|}}} | [[Shop|Number of Shops]]}}{{TableRowIf | {{{num_trainers|}}} | [[Trainer|Number of Trainers]]}}{{TableRowIf | {{{num_questors|}}} | [[Questor|Number of Questors]]}}{{TableRowIf | {{{repop|}}} | [[repop|Reset time]]}}{{TableRowIf | {{{landmarks|}}} | Landmarks}}{{TableRowIf | {{{coords|}}} | Coords }}{{TableRowIf | {{{align|}}} | Align }}
|}{{#if:{{{summary|}}}|{{{summary|}}}}}{{#if:{{{mobs|}}}|
|}{{#if:{{{summary|}}}|{{{summary|}}}<br />}}{{#if:{{{mobs|}}}|
<br />
<br />
==Inhabitants==
==Inhabitants==
Line 104: Line 103:
==Quests==
==Quests==
{{{quests}}}
{{{quests}}}
}}{{#if:{{{location|}}}|
<br />
==Location==
{{{location}}}
}}{{#if:{{{areas_nearby|}}}|
}}{{#if:{{{areas_nearby|}}}|
<br />
<br />
==Surrounding Areas==
==Surrounding Areas==
{{{areas_nearby}}}
{{{areas_nearby}}}
}}{{#if:{{{other|}}}|
<br />
{{{other|}}}
}}{{#if:{{{poi|}}}|
}}{{#if:{{{poi|}}}|
<br />
<br />
Line 148: Line 154:
{{#ifeq: {{{align|}}} | evil | [[Category:Areas with evil align mobs]] }}
{{#ifeq: {{{align|}}} | evil | [[Category:Areas with evil align mobs]] }}


{{#switch:{{{builder1|}}}
{{#switch:{{#explode:{{{builders|}}}||1}}
| dentin = [[Category:Areas built by {{ucfirst:{{{builder1|}}}}}]]
| dentin = [[Category:Areas built by {{ucfirst:{{{builder1|}}}}}]]
| morpheus = [[Category:Areas built by {{ucfirst:{{{builder1|}}}}}]]
| morpheus = [[Category:Areas built by {{ucfirst:{{{builder1|}}}}}]]
Line 156: Line 162:
}}
}}


{{#switch:{{{builder2|}}}
{{#switch:{{#explode:{{{builders|}}}||2}}
| dentin
| dentin
| morpheus
| morpheus
| draak
| draak

Revision as of 08:06, 20 May 2017

Template:Area/Doc

fields

Required

  • area_id (needed for url) (note: the area name is not needed as this is taken from the page name)
  • builders
  • level

Floating table

  • instance (yes/no)
  • major (yes/no) - This is for major cities and towns
  • aggro_type (friendly/aggro/good aggro/neut aggro/evil aggro)
  • eps
  • fame
  • waypoints
  • donation_room
  • area_size
  • terrain
  • mob_types
  • num_shops
  • num_trainers
  • num_questors
  • repop
  • landmarks
  • coords
  • align (for primary good/evil mob areas)

sections

  • summary
  • mobs
  • shops
  • quests
  • area_nearby

Categories

  • Areas by Realm
  • Areas by builder
  • Areas by align
  • Level
  • Areas with shops/quests/jobs/donation rooms/priests/trainers/waypoints