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 ]

Difference between revisions of "Template:ClassSpellTable/doc"

From Project 1999 Wiki
Jump to: navigation, search
m (Documentation)
m (Migration: Even Fire Beetle Eyes are case sensitive!)
Line 49: Line 49:
 
* 5.1 For each SpellSlotRow, change the template to SpellSlotRowSmart and add the following code to the end (before the final }} brackets) <pre>| simple = {{#ifeq:{{{Table|0}}}|0|0|1}}</pre>
 
* 5.1 For each SpellSlotRow, change the template to SpellSlotRowSmart and add the following code to the end (before the final }} brackets) <pre>| simple = {{#ifeq:{{{Table|0}}}|0|0|1}}</pre>
 
* 5.2 The finished SpellSlotRowSmart should look like the following <pre>{{SpellSlotRowSmart | 2 | Decrease Hitpoints by 1 @L1 to 3 @L4 per tick | simple = {{#ifeq:{{{Table|0}}}|0|0|1}} }}</pre>
 
* 5.2 The finished SpellSlotRowSmart should look like the following <pre>{{SpellSlotRowSmart | 2 | Decrease Hitpoints by 1 @L1 to 3 @L4 per tick | simple = {{#ifeq:{{{Table|0}}}|0|0|1}} }}</pre>
* 6. Add in extra SpellSlotRowSmart records for abnormalities (eg: "Requires: [[Fire Beetle eye]]" or "Requires: 800 Mana" for bard songs)
+
* 6. Add in extra SpellSlotRowSmart records for abnormalities (eg: "Requires: [[Fire Beetle Eye]]" or "Requires: 800 Mana" for bard songs)
 
* 7. For the SpellsNew template Table = 2 (NB:this is used for Necromances; the new data can be obtained from the old table): add in <pre>| target_table = _____</pre> after <pre>| target_type = _____</pre>
 
* 7. For the SpellsNew template Table = 2 (NB:this is used for Necromances; the new data can be obtained from the old table): add in <pre>| target_table = _____</pre> after <pre>| target_type = _____</pre>
 
* 8. 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.<pre>| TableLocations = Ak'Anon/Freeport<br/>Neriak/Paineel<br/>Qeynos/Cabilis</pre>
 
* 8. 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.<pre>| TableLocations = Ak'Anon/Freeport<br/>Neriak/Paineel<br/>Qeynos/Cabilis</pre>
Line 57: Line 57:
 
* 12. Include the spell/song on in a table on a test area page to make sure it works properly.
 
* 12. Include the spell/song on in a table on a test area page to make sure it works properly.
 
* 13. Put spell/song in the main table
 
* 13. Put spell/song in the main table
 +
 
== Examples ==
 
== Examples ==
 
All the bard songs have been completed
 
All the bard songs have been completed

Revision as of 11:56, 8 July 2015

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. Reduce number of template calls to reduce load on server

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 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}}}
  • 4.2 After the newly added Table parameter, add in
    | TableLevel = {{{TableLevel|}}}
  • 5.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}}
  • 5.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}} }}
  • 6. Add in extra SpellSlotRowSmart records for abnormalities (eg: "Requires: Fire Beetle Eye" or "Requires: 800 Mana" for bard songs)
  • 7. 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 = _____
  • 8. 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
  • 9. Add in Era after TableLocations
    | TableEra = Classic
  • 10. Press "Save Page" button
  • 11. Verify you have not broken the main page
  • 12. Include the spell/song on in a table on a test area page to make sure it works properly.
  • 13. Put spell/song in the main table

Examples

All the bard songs have been completed

Songs (Bard)

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)
Yes

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)

Yes

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)

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)

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)

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