Difference between revisions of "Template:Card query"

From Yugipedia
Jump to: navigation, search
(should be able to do away with this extra work for monster queries)
(support more types (hopefully without breaking anything))
Line 27: Line 27:
 
   | spell = spell
 
   | spell = spell
 
   | trap = trap
 
   | trap = trap
 +
  | speedspell = speed spell
 +
  | virus = virus
 +
  | equip = equip
 +
  | illusion = illusion
 +
  | ritual = ritual
 +
  | trap-spell | trapspell | spell-trap | spelltrap = trap-spell
 +
  | trap-equip | trapequip = trap-equip
 +
  | ??? = ???
 
   | spell/trap | s/t | nonmonster | non-monster = non-monster
 
   | spell/trap | s/t | nonmonster | non-monster = non-monster
 
   | #default =  
 
   | #default =  
Line 34: Line 42:
 
   | spell      = [[Card type::Spell Card]]
 
   | spell      = [[Card type::Spell Card]]
 
   | trap        = [[Card type::Trap Card]]
 
   | trap        = [[Card type::Trap Card]]
   | non-monster = [[Card type::Spell Card||Trap Card]]
+
   | speed spell = [[Card type::Speed Spell Card]]
 +
  | virus      = [[Card type::Virus Card]]
 +
  | equip      = [[Card type::Equip Card]]
 +
  | illusion    = [[Card type::Illusion Card]]
 +
  | ritual      = [[Card type::Ritual Card]]
 +
  | trap-spell  = [[Card type::Trap-Spell Card]]
 +
  | trap-equip  = [[Card type::Trap-Equip Card]]
 +
  | ???        = [[Card type::???]]
 +
  | non-monster = [[Concept:Non-monster cards]]
 
   }}
 
   }}
 
}}{{ #vardefine: $query_card_type | {{ #var: $query_card_type | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | monster }} | monster }}<!-- might need something for Spell/Trap Monsters --> }}
 
}}{{ #vardefine: $query_card_type | {{ #var: $query_card_type | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | monster }} | monster }}<!-- might need something for Spell/Trap Monsters --> }}

Revision as of 17:49, 20 September 2016

<ul><li>The part "{{{1}}}" of the query was not understood.Results might not be as expected.</li> <!--br--><li>Some subquery has no valid condition.</li></ul>