Ad placeholder

User:Toancaro/Cleric/Template:ExtraSpellTable: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 14: Line 14:
{{#vardefine: spellNamesQuery3 | {{#replace:{{#var: query3}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}
{{#vardefine: spellNamesQuery3 | {{#replace:{{#var: query3}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}


{{#vardefine: spellNamesQuery | {{#var: spellNamesQuery1}} OR {{#var: spellNamesQuery3}} OR {{#var: spellNamesQuery3}} }}
{{#vardefine: spellNamesQuery | {{#var: spellNamesQuery1}} AND {{#var: spellNamesQuery3}} AND {{#var: spellNamesQuery3}} }}
Test: {{#var: spellNamesQuery }}
{{#vardefine: finalQuery | ({{#var: spellNamesQuery}}) AND {{#if: {{{where|}}} | {{{where}}} | TRUE}} }}
 
Test: {{#var: finalQuery }}
 


{{#cargo_query:
{{#cargo_query:
tables = spells
tables = spells
| fields=_pageName=spell,name,classes,description,spell_school,damage_type=damage
| fields=_pageName=spell,name,classes,description,spell_school,damage_type=damage
| where=
| where={{#var: finalQuery }}
| intro={{User:Toancaro/Cleric/Template:ExtraSpellTable/Header}}
| intro={{User:Toancaro/Cleric/Template:ExtraSpellTable/Header}}
| outro={{User:Toancaro/Cleric/Template:ExtraSpellTable/Footer}}
| outro={{User:Toancaro/Cleric/Template:ExtraSpellTable/Footer}}
Line 29: Line 32:
</includeonly>
</includeonly>
<noinclude>
<noinclude>
<!--{{User:Toancaro/Cleric/Template:ExtraSpellTable
{{User:Toancaro/Cleric/Template:ExtraSpellTable
| where=spell_level="0"
| where=spell_level="0"
}}-->
}}
</noinclude>
</noinclude>
791
edits

Navigation menu