Difference between revisions of "Template:Card query"

From Yugipedia
Jump to: navigation, search
(if type is either "spell" or "trap", assume that's what's actually meant and list only Spell or Trap Cards, respectively)
(here too)
Line 64: Line 64:
 
   }}{{ #vardefine: $query_col_def | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}def }}{{ #pos: {{ #var: $query_query_lc }} | {{!((}}?def }} || ?DEF string = [[DEF]] }}
 
   }}{{ #vardefine: $query_col_def | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}def }}{{ #pos: {{ #var: $query_query_lc }} | {{!((}}?def }} || ?DEF string = [[DEF]] }}
 
   }}
 
   }}
| {{ #vardefine: $query_col_attribute | {{ #if: {{ #var: $query_col_attribute }} | {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = {{ #var: $query_col_attribute }} {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Card type]] }} }} }}
+
| {{ #vardefine: $query_col_attribute | {{ #if: {{ #var: $query_col_attribute }} | {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_attribute }} {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Card type]] }} }} }} }}
 
   }}{{ #vardefine: $query_col_card_type_st | {{ #if: {{ #var: $query_col_card_type }} | {{ #ifeq: {{ #var: $query_medium }} | official || {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_card_type }} [[Card type]] }} }} }}
 
   }}{{ #vardefine: $query_col_card_type_st | {{ #if: {{ #var: $query_col_card_type }} | {{ #ifeq: {{ #var: $query_medium }} | official || {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_card_type }} [[Card type]] }} }} }}
 
   }}{{ #vardefine: $query_col_st_class | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}s/t class:: }} || {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = ?S/T Class {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Property]] }} }} }}
 
   }}{{ #vardefine: $query_col_st_class | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}s/t class:: }} || {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = ?S/T Class {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Property]] }} }} }}

Revision as of 13:58, 26 July 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>