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)
(finish explode of builders)
Line 63: Line 63:
| {{#if: {{{realm|}}} | [[{{{realm|}}}]] | Unspecified (please fix)}}
| {{#if: {{{realm|}}} | [[{{{realm|}}}]] | Unspecified (please fix)}}
|-
|-
! 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}}}]] |}}
! Builder(s)  
| {{#if:{{#explode:{{{builders|}}}||0}}| [[{{#explode:{{{builders|}}}||0}}]] {{#if:{{#explode:{{{builders|}}}||1}}| [[{{#explode:{{{builders|}}}||1}}]]{{#if:{{#explode:{{{builders|}}}||2}}| [[{{#explode:{{{builders|}}}||2}}]]{{#if:{{#explode:{{{builders|}}}||3}}| [[{{#explode:{{{builders|}}}||3}}]]{{#if:{{#explode:{{{builders|}}}||4}}| [[{{#explode:{{{builders|}}}||4}}]]{{#if:{{#explode:{{{builders|}}}||5}}| [[{{#explode:{{{builders|}}}||5}}]]|}}|}}|}}|}}|}}| Unspecified (please fix) }}
|-
|-
! Level
! Level
Line 154: Line 155:
{{#ifeq: {{{align|}}} | evil | [[Category:Areas with evil align mobs]] }}
{{#ifeq: {{{align|}}} | evil | [[Category:Areas with evil align mobs]] }}


{{#switch:{{#explode:{{{builders|}}}||1}}
{{#switch:{{#explode:{{{builders|}}}||0}}
| dentin = [[Category:Areas built by {{ucfirst:{{{builder1|}}}}}]]
| dentin
| morpheus = [[Category:Areas built by {{ucfirst:{{{builder1|}}}}}]]
| morpheus
| draak
| draak
| shadowfax
| shadowfax
| gandor = [[Category:Areas built by {{ucfirst:{{{builder1}}}}}]]
| gandor = [[Category:Areas built by {{ucfirst:{{#explode:{{{builders|}}}||0}}}}]]
}}
}}


{{#switch:{{#explode:{{{builders|}}}||2}}
{{#switch:{{#explode:{{{builders|}}}||1}}
| dentin
| dentin
| morpheus
| morpheus
| draak
| draak
| shadowfax
| shadowfax
| gandor = [[Category:Areas built by {{ucfirst:{{{builder2}}}}}]]
| gandor = [[Category:Areas built by {{ucfirst:{{#explode:{{{builders|}}}||1}}}}]]
}}
}}



Revision as of 08:32, 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