[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]
Difference between revisions of "Template:ClassSpellTable/doc"
m (→Migration) |
|||
Line 36: | Line 36: | ||
*Mana/Mana/Empty | *Mana/Mana/Empty | ||
− | ==Migration== | + | == 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. | 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.<br/> | To do this follow the process below.<br/> | ||
Line 54: | Line 54: | ||
* 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 == | ||
+ | All the bard songs have been completed | ||
+ | ===Songs (Bard)=== | ||
+ | {{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 }} | ||
+ | }} | ||
+ | ===Spells (Druid)=== | ||
+ | {{ClassSpellTable| Table = 1 | | ||
+ | {{:Flame Lick | TableLevel = 1 | Table = 1 }} | ||
+ | }} | ||
+ | ===Spells (Ranger)=== | ||
+ | {{ClassSpellTable| Table = 1 | | ||
+ | {{:Flame Lick | TableLevel = 9 | Table = 1 }} | ||
+ | }} | ||
+ | ===Spells (Necro)=== | ||
+ | {{ClassSpellTable| Table = 2 | | ||
+ | {{:Cavorting Bones | TableLevel = 1 | Table = 2 }} | ||
+ | }} | ||
---- | ---- |
Revision as of 11:47, 8 July 2015
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
Contents |
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 |
Chant of Battle | Percussion | Party | Increase AC by 1 (L1) to 6 (L60) Increase STR by 5 (L1) to 20 (L60) |
Qeynos Freeport Kelethin |
Classic | ||
2 |
Chords of Dissonance | Stringed | PB AE | Decrease Hitpoints by 2 per tick (L2) to 17 per tick (L60) Yes |
Qeynos Freeport Kelethin |
Classic | ||
3 |
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 |
Flame Lick | 10 | Evocation | Single | Decrease Hitpoints by 1 @L1 to 3 @L4 per tick Decrease AC by 3 |
Kelethin Rivervale Surefall Glade |
Classic
|
Spells (Ranger)
Level | Icon | Spell Name | Mana | Class | Type | Spell Description | Locations | Era |
---|---|---|---|---|---|---|---|---|
9 |
Flame Lick | 10 | Evocation | Single | Decrease Hitpoints by 1 @L1 to 3 @L4 per tick Decrease AC by 3 |
Kelethin Rivervale Surefall Glade |
Classic
|
Spells (Necro)
Level | Icon | Spell Name | Mana | Class | Type | Spell Description | Locations | Era
|
---|---|---|---|---|---|---|---|---|
1 |
Cavorting Bones | 15 | Conjuration | Summon | Summon Skeleton Pet: skel_pet_1_ |
Ak'Anon/Freeport Neriak/Paineel Qeynos/Cabilis |
Classic
|