[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]
Difference between revisions of "Template:ClassSpellTable/doc"
(Documentation for ClassSpellTable) |
m (Upgrading to Spellpagesmart) |
||
Line 14: | Line 14: | ||
== Usage == | == Usage == | ||
ClassSpellTable is used to embed the spells/songs - this creates a table with the correct Column headings. | 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. | + | 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''' |
<pre> | <pre> | ||
{{ClassSpellTable| Table = 3 | | {{ClassSpellTable| Table = 3 | | ||
Line 29: | Line 29: | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Differences between TableTypes | Differences between TableTypes | ||
Line 41: | Line 35: | ||
*Type/TableType/Type | *Type/TableType/Type | ||
*Mana/Mana/Empty | *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.<br/> | ||
+ | * 1. Edit the spell page<br/> | ||
+ | * 2. Put the following text in the Summary box "Upgrading to Spellpagesmart"<br/> | ||
+ | * 3. Check the "This is a minor edit" box<br/> | ||
+ | * 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''' | ||
+ | <pre>| Table = {{{Table|0}}} | ||
+ | | TableLevel = {{{TableLevel|}}}</pre> | ||
+ | * 5. For each SpellSlotRow, change the template to SpellSlotRowSmart and add the following code to the end (before the final }} brackets)<br/> | ||
+ | <pre>| simple = {{#ifeq:{{{Table|0}}}|0|0|1}}</pre> | ||
+ | * 5.1 The finished SpellSlotRowSmart should look like the following<br/> | ||
+ | <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) | ||
+ | * 7. For the SpellsNew template (Table=2): add in <pre>| target_table = Summon</pre> after <pre>| target_type = _____</pre> | ||
+ | * 8. After the ____ 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. | ||
+ | <pre>| TableLocations = Ak'Anon/Freeport<br/>Neriak/Paineel<br/>Qeynos/Cabilis</pre> | ||
+ | * 9. Add in Era after TableLocations | ||
+ | <pre>| TableEra = Classic</pre> | ||
+ | * 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 | ||
---- | ---- |
Revision as of 11:29, 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
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 ____ 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