Template:CardSearch: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 34: Line 34:
AND ("{{{usesItemClass|}}}" = "" OR CR.GameText RLIKE "({{#replace:{{#replace:{{#replace:{{#replace:{{{usesItemClass|}}}|,|{{!}}}}||}}|RangedWeapon|Ranged Weapon}}|HandWeapon|Hand Weapon}})" )
AND ("{{{usesItemClass|}}}" = "" OR CR.GameText RLIKE "({{#replace:{{#replace:{{#replace:{{#replace:{{{usesItemClass|}}}|,|{{!}}}}||}}|RangedWeapon|Ranged Weapon}}|HandWeapon|Hand Weapon}})" )


AND ("{{{eventPhase|}}}" = "" OR (C.CardType IN ('Event') AND ("{{{eventPhase|}}}" LIKE CONCAT('%', CR.Subtypes__full, '%') OR CR.GameText LIKE "{{{hasPhaseAction|}}}:")))
AND ("{{{eventPhase|}}}" = "" OR (C.CardType IN ('Event') AND ("{{{eventPhase|}}}" LIKE CONCAT('%', CR.Subtypes__full, '%') OR CR.GameText LIKE "{{{eventPhase|}}}:")))


AND ("{{{hasPhaseAction|}}}" = "" OR (C.CardType NOT IN ('Event') AND CR.GameText LIKE "{{{hasPhaseAction|}}}:"))
AND ("{{{hasPhaseAction|}}}" = "" OR (C.CardType NOT IN ('Event') AND CR.GameText LIKE "{{{hasPhaseAction|}}}:"))

Revision as of 10:23, 5 October 2022

This is the "CardSearch" template.

It should be called in the following format:

{{CardSearch
|isUnique=
|sort=
}}

Edit the page to see the template text.