791
editsAd placeholder
User:Toancaro/Cleric/Template:ExtraSpellTable: Difference between revisions
Jump to navigation
Jump to search
m
User:Toancaro/Cleric/Template:ExtraSpellTable (edit)
Revision as of 08:11, 6 January 2024
, 6 Januaryno 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}} | {{#vardefine: spellNamesQuery | {{#var: spellNamesQuery1}} AND {{#var: spellNamesQuery3}} AND {{#var: spellNamesQuery3}} }} | ||
Test: {{#var: | {{#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 | |||
| where=spell_level="0" | | where=spell_level="0" | ||
}} | }} | ||
</noinclude> | </noinclude> |