Difference between revisions of "Template:Card query"

From Yugipedia
Jump to: navigation, search
(almost)
(fix card type column not displaying for OCG/TCG non-monsters)
Line 75: Line 75:
 
   }}{{ #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_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 }} | {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_card_type }} [[Card type]] }} }}
 
   }}{{ #vardefine: $query_col_property | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}property:: }}{{ #pos: {{ #var: $query_query_lc }} | {{!((}}s/t class:: }} || ?Property = [[Property]] }}
 
   }}{{ #vardefine: $query_col_property | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}property:: }}{{ #pos: {{ #var: $query_query_lc }} | {{!((}}s/t class:: }} || ?Property = [[Property]] }}
 
   }}{{ #vardefine: $query_col_card_type_st | {{ #if: {{ #var: $query_col_property }} | {{ #var: $query_col_card_type_st }} }}
 
   }}{{ #vardefine: $query_col_card_type_st | {{ #if: {{ #var: $query_col_property }} | {{ #var: $query_col_card_type_st }} }}

Revision as of 11:40, 18 February 2017

<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>

  • $query_query: {{{1}}}
  • $query_query_lc: {{{1}}}
  • $query_medium:
  • $query_medium_query:
  • $query_card_type:
  • $query_card_type_query:
  • $query_col_card_type: ?Card type =
  • $query_col_card_type_m:
  • $query_col_primary_type:
  • $query_col_monster_type:
  • $query_col_secondary_type:
  • $query_col_attribute:
  • $query_col_card_type_st: ?Card type = [[Card type]]
  • $query_col_type:
  • $query_col_stars:
  • $query_col_scale:
  • $query_col_atk:
  • $query_col_def:
  • $query_col_property: ?Property = [[Property]]
  • limit: 50
Template documentation[create] [purge]