Difference between revisions of "Template:Card query"

From Yugipedia
Jump to: navigation, search
m (Damn it, this was really dumb on my part.)
(Don't display if DEF/stars column if a Link Rating is #asked. Update terminology.)
Line 77: Line 77:
 
   }}<!--
 
   }}<!--
 
-->{{ #vardefine: $query_col_stars
 
-->{{ #vardefine: $query_col_stars
       | {{ #if: {{ #arraysearch: @check_query | /(\{{!(}}\{{!(}}\??(stars{{!}}level{{!}}rank){{!}}link arrow{{!}}link monster)/ }}
+
       | {{ #if: {{ #arraysearch: @check_query | /(\{{!(}}\{{!(}}\??(stars{{!}}level{{!}}rank){{!}}link (arrow{{!}}monster{{!}}rating))/ }}
 
           | {{ #if: {{ #arraysearch: @check_query | /(stars{{!}}level{{!}}rank)::(<{{!}}>{{!}}\d\d?\{{!}}\{{!}}\d)/ }}
 
           | {{ #if: {{ #arraysearch: @check_query | /(stars{{!}}level{{!}}rank)::(<{{!}}>{{!}}\d\d?\{{!}}\{{!}}\d)/ }}
 
                 | ?Stars string = {{ #if: {{ #arraysearch: @check_query | /(xyz( pendulum)? monster)/ }}
 
                 | ?Stars string = {{ #if: {{ #arraysearch: @check_query | /(xyz( pendulum)? monster)/ }}
Line 92: Line 92:
 
-->{{ #vardefine: $query_col_scale | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | pendulum monster }} | ?Pendulum Scale = [[Pendulum Scale|Scale]] }}
 
-->{{ #vardefine: $query_col_scale | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | pendulum monster }} | ?Pendulum Scale = [[Pendulum Scale|Scale]] }}
 
   }}{{ #vardefine: $query_col_atk | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}atk }}{{ #pos: {{ #var: $query_query_lc }} | {{!((}}?atk }} || ?ATK string = [[ATK]] }}
 
   }}{{ #vardefine: $query_col_atk | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}atk }}{{ #pos: {{ #var: $query_query_lc }} | {{!((}}?atk }} || ?ATK string = [[ATK]] }}
   }}{{ #if: {{ #arraysearch: @check_query | /(link arrow{{!}}link monster)/ }}
+
   }}{{ #if: {{ #arraysearch: @check_query | /(link (arrow{{!}}monster{{!}}rating))/ }}
     | {{ #vardefine: $query_col_link_number | ?Link Number = [[Link Number|LINK]] }}
+
     | {{ #vardefine: $query_col_link_rating | ?Link Rating = [[Link Rating|LINK]] }}
 
     | {{ #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]] }} }}
 
   }}
 
   }}
Line 125: Line 125:
 
   |{{ #var: $query_col_atk }}
 
   |{{ #var: $query_col_atk }}
 
   |{{ #var: $query_col_def }}
 
   |{{ #var: $query_col_def }}
   |{{ #var: $query_col_link_number }}
+
   |{{ #var: $query_col_link_rating }}
 
   |{{ #var: $query_col_property }}
 
   |{{ #var: $query_col_property }}
 
   |{{ #var: $query_col_extra }}
 
   |{{ #var: $query_col_extra }}
Line 158: Line 158:
 
* $query_col_atk: <code>{{ #tag: nowiki | {{ #var: $query_col_atk }} }}</code>
 
* $query_col_atk: <code>{{ #tag: nowiki | {{ #var: $query_col_atk }} }}</code>
 
* $query_col_def: <code>{{ #tag: nowiki | {{ #var: $query_col_def }} }}</code>
 
* $query_col_def: <code>{{ #tag: nowiki | {{ #var: $query_col_def }} }}</code>
* $query_col_link_number: <code>{{ #tag: nowiki | {{ #var: $query_col_link_number }} }}</code>
+
* $query_col_link_rating: <code>{{ #tag: nowiki | {{ #var: $query_col_link_rating }} }}</code>
 
* $query_col_property: <code>{{ #tag: nowiki | {{ #var: $query_col_property }} }}</code>
 
* $query_col_property: <code>{{ #tag: nowiki | {{ #var: $query_col_property }} }}</code>
 
* <code><nowiki>{{{extra_column}}}</nowiki></code>: <code>{{ #tag: nowiki | {{{extra_column|}}} }}</code>
 
* <code><nowiki>{{{extra_column}}}</nowiki></code>: <code>{{ #tag: nowiki | {{{extra_column|}}} }}</code>
Line 181: Line 181:
 
}}{{ #vardefine: $query_col_atk
 
}}{{ #vardefine: $query_col_atk
 
}}{{ #vardefine: $query_col_def
 
}}{{ #vardefine: $query_col_def
}}{{ #vardefine: $query_col_link_number
+
}}{{ #vardefine: $query_col_link_rating
 
}}{{ #vardefine: $query_col_property
 
}}{{ #vardefine: $query_col_property
 
}}{{ #vardefine: $query_col_extra
 
}}{{ #vardefine: $query_col_extra

Revision as of 14:52, 16 June 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>

  • #ask query: {{{1}}}
  • $query_query: {{{1}}}
  • $query_query_lc: {{{1}}}
  • $query_medium:
  • $query_medium_query:
  • $query_query_medium:
  • $query_card_type:
  • $query_card_type_query:
  • $query_col_card_type: ?Card type =
  • $query_col_primary_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_link_rating:
  • $query_col_property: ?Property = [[Property]]
  • {{{extra_column}}}:
  • {{{extra_label}}}:
  • $query_col_extra:
  • limit: 50
  • $query_sort:
  • $query_order:
  • results count: 0<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>