This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Template:Spellpagesmart"

From Project 1999 Wiki
Jump to: navigation, search
(Created page with "<noinclude> This is an under construction template for individual bard song pages. It will be used in two ways: 1. To Display the song 2. To Display the song in the bard song ...")
 
(Replaced {{{1}}} to {{{5}}} with named parameters)
 
(55 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is an under construction template for individual bard song pages.
+
This is an under construction template for individual spells & song pages.
 +
 
 
It will be used in two ways:
 
It will be used in two ways:
1. To Display the song
+
* To Display the spell/song
2. To Display the song in the bard song list when it is included in the bard page.
+
* 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>{{main other | SONG PAGE | INCLUDED DATA }}
+
</noinclude><includeonly>{{#ifeq: {{{Table|0}}}|0||
 +
{{ClassSpellTableRow
 +
| TableLevel = {{{TableLevel}}}
 +
| spellname = [[{{{spellname}}}]]
 +
| 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>

Latest revision as of 16:19, 9 July 2015

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