Template:ClassSpellTable: Difference between revisions

no edit summary
(Created page with "<noinclude> This is an under construction template for individual spells & song pages. It will be used in two ways: * To Display the spell/song * To Display the spell/song in the class spell/song list when it is included on that class page. ifeq:Table|1| true | else -- this wasn't working so it's done in two separate ifeq blocks, messy but it's working. see: Template:ClassSpellTable for more information ---- </noinclude><includeonly>{{#ifeq: {{{Table|0}}}|0|| {{Cla...")
 
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>{{Template:ClassSpellTable/doc}}
This is an under construction template for individual spells & song pages.
</noinclude><includeonly>{| class="eoTable3" style="width:100%"
 
!style="text-align:center;width:30px;" | Level
It will be used in two ways:
!style="text-align:center;width:30px;" | Icon
* To Display the spell/song
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:20%;"|2=style="text-align:center;width:20%;"|3=style="text-align:center;"}} | {{#switch:{{{Table|3}}}|1=Spell|2=Spell|3=Song}} Name
* To Display the spell/song in the class spell/song list when it is included on that class page.
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:7%px;"|2=style="text-align:center;width:7%px;"|3=style="text-align:center;width:7%;"}} | {{#switch:{{{Table|3}}}|1=Mana|2=Mana|3=Instrument}}
ifeq:Table|1| true | else -- this wasn't working so it's done in two separate ifeq blocks, messy but it's working.
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:7%;"|2=style="text-align:center;width:7%;"|3=style="text-align:center;width:7%;"}} | {{#switch:{{{Table|3}}}|1=Class|2=Class|3=Type}}
 
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:7%;"|2=style="text-align:center;width:7%;"|3=style="text-align:center;width:35%;"}} | {{#switch:{{{Table|3}}}|1=Type|2=Type|3=Song Description}}
see: [[Template:ClassSpellTable]] for more information
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:40%;"|2=style="text-align:center;width:40%;"|3=style="text-align:center;width:10%;"}} | {{#switch:{{{Table|3}}}|1=Spell Description|2=Spell Description|3=Locations}}
----
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:10%;"|2=style="text-align:center;width:10%;"|3=style="text-align:center;width:7%;"}} | {{#switch:{{{Table|3}}}|1=Locations|2=Locations|3=Era}}
</noinclude><includeonly>{{#ifeq: {{{Table|0}}}|0||
!{{#switch:{{{Table|3}}}|1=style="text-align:center;width:7%;"|2=style="text-align:center;width:7%;"|3=style="text-align:center;width:1px;"}} | {{#switch:{{{Table|3}}}|1=Era|2=Era|3=}}
{{ClassSpellTableRow
{{{1}}}
| TableLevel = {{{TableLevel}}}
|}
| spellname = [[{{{spellname}}}]]
</includeonly>
| skill = {{{skill}}}
| target_type = {{{target_type}}}
| TableEra = {{{TableEra}}}
| spellicon = {{{spellicon}}}
| slots = {{{slots}}}
| mana = {{{mana}}}
| target_table = {{{target_table|}}}
| Detrimental = {{#ifeq:{{{spell_type}}}|Detrimental|1|0}}
| Locations = {{{TableLocations}}}
| Table = {{{Table|3}}}
}}
}}
{{#ifeq: {{{Table|0}}}|0|
{{spellpage|
| spellname = {{{spellname}}}
| spellicon = {{{spellicon}}}
| description = {{{description}}}
| classes = {{{classes}}}
| {{#if: {{{items_with_effect|}}} | items_with_effect |items_with_effect_empty}} = {{{items_with_effect}}}
| slots = {{{slots}}}
| skill = {{{skill}}}
| mana = {{{mana}}}
| range = {{{range}}}
| casting_time = {{{casting_time}}}
| fizzle_time = {{{fizzle_time}}}
| recast_time = {{{recast_time}}}
| duration = {{{duration}}}
| target_type = {{{target_type}}}
| spell_type = {{{spell_type}}}
| resist = {{{resist}}}
| {{#if: {{{other|}}} | other | other_empty }} = {{{other}}}
| msg_cast_on_you = {{{msg_cast_on_you}}}
| msg_cast_on_other = {{{msg_cast_on_other}}}
| msg_wears_off = {{{msg_wears_off}}}
| {{#if:{{{where_to_obtain|}}} | where_to_obtain | where_to_obtain_empty }} = {{{where_to_obtain}}}
}}
}}</includeonly>