<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.seculargames.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AClassSpellTable%2Fdoc</id>
	<title>Template:ClassSpellTable/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.seculargames.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AClassSpellTable%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.seculargames.org/index.php?title=Template:ClassSpellTable/doc&amp;action=history"/>
	<updated>2026-06-13T22:14:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.seculargames.org/index.php?title=Template:ClassSpellTable/doc&amp;diff=45850&amp;oldid=prev</id>
		<title>imported&gt;Ezri: /* Spells (Necro) - Table Type 2 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.seculargames.org/index.php?title=Template:ClassSpellTable/doc&amp;diff=45850&amp;oldid=prev"/>
		<updated>2015-09-21T14:55:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Spells (Necro) - Table Type 2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Documentation =&lt;br /&gt;
Welcome to the Smart Spell Table Templates.&lt;br /&gt;
These templates consist of the following pages:&lt;br /&gt;
* [[Template:ClassSpellTable]] (this page)&lt;br /&gt;
** [[Template:Spellpagesmart]]&lt;br /&gt;
*** [[Template:ClassSpellTableRow]]&lt;br /&gt;
*** [[Template:spellpage]]&lt;br /&gt;
** [[Template:SpellSlotRowSmart]]&lt;br /&gt;
*** [[Template:SpellSlotRow]]&lt;br /&gt;
&lt;br /&gt;
These sets of templates have been designed for two purposes&lt;br /&gt;
# Make the spell tables look pretty&lt;br /&gt;
# Remove duplication of data between Class Pages and spell pages&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Outstanding Tasks&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Fix the last &amp;quot;Mana&amp;quot; cell from top-alignment... Many things have been tried, for some reason the data is  being put before the &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt; not inside it. don&amp;#039;t know why!&lt;br /&gt;
# Reduce number of template calls to reduce load on server&lt;br /&gt;
# Add flag to SpellSlotRowSmart to &amp;quot;hide&amp;quot; line from the Main Page, which usually duplicate information for the table view&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
ClassSpellTable is used to embed the spells/songs - this creates a table with the correct Column headings.&lt;br /&gt;
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. &amp;#039;&amp;#039;&amp;#039;NB: parameters are case sensitive&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ClassSpellTable| Table = 3 |&lt;br /&gt;
{{:Chant of Battle | TableLevel = 1 | Table = 3 }}&lt;br /&gt;
{{:Chords of Dissonance | TableLevel = 2 | Table = 3 }}&lt;br /&gt;
{{:Jaxan&amp;#039;s Jig o&amp;#039; Vigor | TableLevel = 3 | Table = 3 }}&lt;br /&gt;
{{:Lyssa&amp;#039;s Locating Lyric | TableLevel = 4 | Table = 3 }}&lt;br /&gt;
{{:Selo&amp;#039;s Accelerando | TableLevel = 5 | Table = 3 }}&lt;br /&gt;
{{:Hymn of Restoration | TableLevel = 6 | Table = 3 }}&lt;br /&gt;
{{:Jonthan&amp;#039;s Whistling Warsong | TableLevel = 7 | Table = 3 }}&lt;br /&gt;
{{:Kelin&amp;#039;s Lugubrious Lament | TableLevel = 8 | Table = 3 }}&lt;br /&gt;
{{:Elemental Rhythms | TableLevel = 9 | Table = 3 }}&lt;br /&gt;
{{:Anthem De Arms | TableLevel = 10 | Table = 3 }}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Differences between TableTypes&lt;br /&gt;
*Spell/SpellNew/Song&lt;br /&gt;
*Class/Class/Instrument&lt;br /&gt;
*Type/TableType/Type&lt;br /&gt;
*Mana/Mana/Empty&lt;br /&gt;
&lt;br /&gt;
== Migration ==&lt;br /&gt;
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.&lt;br /&gt;
To do this follow the process below.&amp;lt;br/&amp;gt;&lt;br /&gt;
* 1. Edit the spell page&amp;lt;br/&amp;gt;&lt;br /&gt;
* 2. Put the following text in the Summary box &amp;quot;Upgrading to Spellpagesmart&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
* 3. Check the &amp;quot;This is a minor edit&amp;quot; box&amp;lt;br/&amp;gt;&lt;br /&gt;
* 4.1 Replace Spellpage with  Spellpagesmart&lt;br /&gt;
* 4.2 make sure that all tags above Spellpage are put inside noinclude tags eg.&amp;lt;pre&amp;gt;&amp;lt;noinclude&amp;gt;{{Velious Era}}&amp;lt;/noinclude&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 5.1 After description = &amp;quot;some long text goes here describing the spell&amp;quot; put in the following text: this passes through Table and TableLevel parameters from the include in the table through to the template. &amp;#039;&amp;#039;&amp;#039;NB: parameters are case sensitive&amp;#039;&amp;#039;&amp;#039;&amp;lt;pre&amp;gt;| Table = {{{Table|0}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 5.2 After the newly added Table parameter, add in &amp;lt;pre&amp;gt;| TableLevel = {{{TableLevel|}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 6.1 For each SpellSlotRow, change the template to SpellSlotRowSmart and add the following code to the end (before the final }} brackets) &amp;lt;pre&amp;gt;| simple = {{#ifeq:{{{Table|0}}}|0|0|1}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 6.2 The finished SpellSlotRowSmart should look like the following &amp;lt;pre&amp;gt;{{SpellSlotRowSmart | 2 | Decrease Hitpoints by 1 @L1 to 3 @L4 per tick | simple = {{#ifeq:{{{Table|0}}}|0|0|1}} }}&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 7.1 Add in extra SpellSlotRowSmart records for abnormalities (eg: &amp;quot;Requires: [[Fire Beetle Eye]]&amp;quot; or &amp;quot;Requires: 800 Mana&amp;quot; for bard songs)&lt;br /&gt;
* 7.2 To hide duplicate information you can add &amp;lt;code&amp;gt;| HideFromMainPage = 1&amp;lt;/code&amp;gt; to the end of &amp;lt;code&amp;gt;SpellSlotRowSmart&amp;lt;/code&amp;gt; to hide it on the main page but show it on the table.&lt;br /&gt;
* 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 &amp;lt;pre&amp;gt;| target_table = _____&amp;lt;/pre&amp;gt; after &amp;lt;pre&amp;gt;| target_type = _____&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 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.&amp;lt;pre&amp;gt;| TableLocations = Ak&amp;#039;Anon/Freeport&amp;lt;br/&amp;gt;Neriak/Paineel&amp;lt;br/&amp;gt;Qeynos/Cabilis&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 10.1 Add in Era after TableLocations, defaulted to it&amp;#039;s original implementation, with an override for classes which had the spell added in later expansions. &amp;lt;pre&amp;gt;| TableEra = {{{TableEra|Classic}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 11. Press &amp;quot;Save Page&amp;quot; button&lt;br /&gt;
* 12. Verify you have not broken the main page&lt;br /&gt;
* 13. Include the spell/song on in a table on a test area page to make sure it works properly.&lt;br /&gt;
* 14. Put spell/song in the main table&lt;br /&gt;
* 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 &amp;lt;pre&amp;gt;| TableEra = Velious&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
All the bard songs have been completed&lt;br /&gt;
===Songs (Bard) - Table Type 3 ===&lt;br /&gt;
{{ClassSpellTable| Table = 3 |&lt;br /&gt;
{{:Chant of Battle | TableLevel = 1 | Table = 3 }}&lt;br /&gt;
{{:Chords of Dissonance | TableLevel = 2 | Table = 3 }}&lt;br /&gt;
{{:Jaxan&amp;#039;s Jig o&amp;#039; Vigor | TableLevel = 3 | Table = 3 }}&lt;br /&gt;
}}&lt;br /&gt;
===Spells (Druid) - Table Type 1 ===&lt;br /&gt;
{{ClassSpellTable| Table = 1 |&lt;br /&gt;
{{:Flame Lick | TableLevel = 1 | Table = 1 }}&lt;br /&gt;
}}&lt;br /&gt;
===Spells (Ranger) - Table Type 1 ===&lt;br /&gt;
{{ClassSpellTable| Table = 1 |&lt;br /&gt;
{{:Flame Lick | TableLevel = 9 | Table = 1 }}&lt;br /&gt;
}}&lt;br /&gt;
===Spells (Necro) - Table Type 2 ===&lt;br /&gt;
The necro &amp;quot;Type&amp;quot; field is pulled out of a &amp;quot;special&amp;quot; type field that was added into the main spell table.&lt;br /&gt;
This &amp;quot;special&amp;quot; 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.&lt;br /&gt;
For the example below the type data would normally come from &amp;quot;|target_type = Self&amp;quot; but instead comes from &amp;quot;|target_table = Summon&amp;quot; which was added specially to the spell data.&lt;br /&gt;
{{ClassSpellTable| Table = 2 |&lt;br /&gt;
{{:Cavorting Bones | TableLevel = 1 | Table = 2 }}&lt;br /&gt;
}}&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>imported&gt;Ezri</name></author>
	</entry>
</feed>