This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Template:ClassSpellTable

From Project 1999 Wiki
Jump to: navigation, search

Contents

Documentation

Welcome to the Smart Spell Table Templates. These templates consist of the following pages:

These sets of templates have been designed for two purposes

  1. Make the spell tables look pretty
  2. Remove duplication of data between Class Pages and spell pages

Outstanding Tasks

  1. Fix the last "Mana" cell from top-alignment... Many things have been tried, for some reason the data is being put before the

    not inside it. don't know why!
  2. Reduce number of template calls to reduce load on server
  3. Add flag to SpellSlotRowSmart to "hide" line from the Main Page, which usually duplicate information for the table view

Usage

ClassSpellTable is used to embed the spells/songs - this creates a table with the correct Column headings. Each Spell/Song is then included in the table - all of these require Table=(1|2|3) to tell it which table to use (Spell/SpellNew/Song). Because the same spell can be used on different classes, each having a different level when it is achieved, the level for that spell is passed in during the include into the table. NB: parameters are case sensitive

{{ClassSpellTable| Table = 3 |
{{:Chant of Battle | TableLevel = 1 | Table = 3 }}
{{:Chords of Dissonance | TableLevel = 2 | Table = 3 }}
{{:Jaxan's Jig o' Vigor | TableLevel = 3 | Table = 3 }}
{{:Lyssa's Locating Lyric | TableLevel = 4 | Table = 3 }}
{{:Selo's Accelerando | TableLevel = 5 | Table = 3 }}
{{:Hymn of Restoration | TableLevel = 6 | Table = 3 }}
{{:Jonthan's Whistling Warsong | TableLevel = 7 | Table = 3 }}
{{:Kelin's Lugubrious Lament | TableLevel = 8 | Table = 3 }}
{{:Elemental Rhythms | TableLevel = 9 | Table = 3 }}
{{:Anthem De Arms | TableLevel = 10 | Table = 3 }}
}}

Differences between TableTypes

  • Spell/SpellNew/Song
  • Class/Class/Instrument
  • Type/TableType/Type
  • Mana/Mana/Empty

Migration

Before Spells/Songs can be put into a table they first need to be changed from using the Spellpage template to using to Spellpagesmart template. To do this follow the process below.

  • 1. Edit the spell page
  • 2. Put the following text in the Summary box "Upgrading to Spellpagesmart"
  • 3. Check the "This is a minor edit" box
  • 4.1 Replace Spellpage with Spellpagesmart
  • 4.2 make sure that all tags above Spellpage are put inside noinclude tags eg.
    <noinclude>{{Velious Era}}</noinclude>
  • 5.1 After description = "some long text goes here describing the spell" put in the following text: this passes through Table and TableLevel parameters from the include in the table through to the template. NB: parameters are case sensitive
    | Table = {{{Table|0}}}
  • 5.2 After the newly added Table parameter, add in
    | TableLevel = {{{TableLevel|}}}
  • 6.1 For each SpellSlotRow, change the template to SpellSlotRowSmart and add the following code to the end (before the final }} brackets)
    | simple = {{#ifeq:{{{Table|0}}}|0|0|1}}
  • 6.2 The finished SpellSlotRowSmart should look like the following
    {{SpellSlotRowSmart | 2 | Decrease Hitpoints by 1 @L1 to 3 @L4 per tick | simple = {{#ifeq:{{{Table|0}}}|0|0|1}} }}
  • 7.1 Add in extra SpellSlotRowSmart records for abnormalities (eg: "Requires: Fire Beetle Eye" or "Requires: 800 Mana" for bard songs)
  • 7.2 To hide duplicate information you can add | HideFromMainPage = 1 to the end of SpellSlotRowSmart to hide it on the main page but show it on the table.
  • 8. For the SpellsNew template Table = 2 (NB:this is used for Necromances; the new data can be obtained from the old table): add in
    | target_table = _____
    after
    | target_type = _____
  • 9. After the where_to_obtain table, add the following, adding in br tags to create new lines - please try to keep Locations to fit on to 3 or 4 lines max - do not put in duplications present in where_to_obtain.
    | TableLocations = Ak'Anon/Freeport<br/>Neriak/Paineel<br/>Qeynos/Cabilis
  • 10.1 Add in Era after TableLocations, defaulted to it's original implementation, with an override for classes which had the spell added in later expansions.
    | TableEra = {{{TableEra|Classic}}}
  • 11. Press "Save Page" button
  • 12. Verify you have not broken the main page
  • 13. Include the spell/song on in a table on a test area page to make sure it works properly.
  • 14. Put spell/song in the main table
  • 14.1 If there are spells that were classic, but later added to a class in velious then add the following to the spell in the ClassSpellTable
    | TableEra = Velious

Examples

All the bard songs have been completed

Songs (Bard) - Table Type 3

Level Icon Song Name Instrument Type Song Description Locations Era
 
1
 
Spellicon R.png
Chant of Battle Percussion Party Increase AC by 1 (L1) to 6 (L60)

Increase STR by 5 (L1) to 20 (L60)
Increase DEX by 5 (L1) to 20 (L60)

Qeynos
Freeport
Kelethin
Classic
 
2
 
Spellicon C.png
Chords of Dissonance Stringed PB AE Decrease Hitpoints by 2 per tick (L2) to 17 per tick (L60)
Qeynos
Freeport
Kelethin
Classic
 
3
 
Spellicon A.png
Jaxan's Jig o' Vigor Percussion Party Decrease Stamina Loss by 10 (L3) to 25 (L60)
Qeynos
Freeport
Kelethin
Highkeep
Classic


Spells (Druid) - Table Type 1

Level Icon Spell Name Mana Class Type Spell Description Locations Era
 
1
 
Spellicon O.png
Flame Lick 10 Evocation Single Decrease Hitpoints by 1 @L1 to 3 @L4 per tick

Decrease AC by 3
Requires: Fire Beetle Eye

Kelethin
Rivervale
Surefall Glade
Classic


Spells (Ranger) - Table Type 1

Level Icon Spell Name Mana Class Type Spell Description Locations Era
 
9
 
Spellicon O.png
Flame Lick 10 Evocation Single Decrease Hitpoints by 1 @L1 to 3 @L4 per tick

Decrease AC by 3
Requires: Fire Beetle Eye

Kelethin
Rivervale
Surefall Glade
Classic


Spells (Necro) - Table Type 2

The necro "Type" field is pulled out of a "special" type field that was added into the main spell table. This "special" type field will be added into all the necromancer spells as a custom field and pulled into the table template instead of the standard type data; but only for the necromancer spell listing. For the example below the type data would normally come from "|target_type = Self" but instead comes from "|target_table = Summon" which was added specially to the spell data.

Level Icon Spell Name Mana Class Type Spell Description Locations Era


 
1
 
Spellicon G.png
Cavorting Bones 15 Conjuration Summon Summon Skeleton Pet: skel_pet_1_
Ak'Anon/Freeport
Neriak/Paineel
Qeynos/Cabilis
Classic