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
(Replaced {{{1}}} to {{{5}}} with named parameters)
 
(10 intermediate revisions by one user not shown)
Line 6: Line 6:
 
* To Display the spell/song in the class spell/song list when it is included on that class 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.
 
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>{{#ifeq: {{{Table}}}|1|
+
</noinclude><includeonly>{{#ifeq: {{{Table|0}}}|0||
|- {{#ifeq:{{{TableEra}}}|Velious|class="grayout"|}} style="vertical-align:middle;"
+
{{ClassSpellTableRow
| style="text-align:center;" | &nbsp;<br/>{{{TableLevel}}}<br/>&nbsp;
+
| TableLevel = {{{TableLevel}}}
| style="text-align:center;" | <div style="border:2px solid {{#ifeq:{{{spell_type}}}|Detrimental|red|blue}};margin:0px;padding:0px;">[[File:spellicon_{{{spellicon}}}.png]]</div>
+
| spellname = [[{{{spellname}}}]]
| [[{{{spellname}}}]]
+
| skill = {{{skill}}}
| style="text-align:center;" | {{{skill}}}
+
| target_type = {{{target_type}}}
| style="text-align:center;" | {{{target_type}}}
+
| TableEra = {{{TableEra}}}
| <table border="0" width="100%" cellpadding="0" style="margin: 0px; border:1px solid #becfe2;">{{{slots}}}</table>
+
| spellicon = {{{spellicon}}}
| {{{TableLocations}}}
+
| slots = {{{slots}}}
| style="text-align:center;" | {{{TableEra}}}
+
| mana = {{{mana}}}
|
+
| target_table = {{{target_table|}}}
 +
| Detrimental = {{#ifeq:{{{spell_type}}}|Detrimental|1|0}}
 +
| Locations = {{{TableLocations}}}
 +
| Table = {{{Table|3}}}
 +
}}
 
}}
 
}}
{{#ifeq: {{{Table}}}|1||
+
{{#ifeq: {{{Table|0}}}|0|
 
{{spellpage|
 
{{spellpage|
 
| spellname = {{{spellname}}}
 
| spellname = {{{spellname}}}
Line 43: Line 49:
 
| {{#if:{{{where_to_obtain|}}} | where_to_obtain | where_to_obtain_empty }}  = {{{where_to_obtain}}}
 
| {{#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