[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]
Template:ClassSpellTable/doc
Welcome to the Smart Spell Table Templates. These templates consist of the following pages:
- Template:ClassSpellTable (this page)
These sets of templates have been designed for two purposes
- Make the spell tables look pretty
- Remove duplication of data between Class Pages and spell pages
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. 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}}} | TableLevel = {{{TableLevel|}}}
- 5. 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.1 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): add in
| target_table = Summon
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.
| 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