Difference between revisions of "Template:Card query"
(No need for another "parameter". Trying to make the search better by using regex.) |
(This should hide the DEF and display the LINK for the when a Link Marker is #asked.) |
||
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: {{ # | + | }}{{ #if: {{ #arraysearch: @check_query | /(link marker{{!}}link monster)/ }} |
| {{ #vardefine: $query_col_link_number | ?Link Number = [[Link Number|LINK]] }} | | {{ #vardefine: $query_col_link_number | ?Link Number = [[Link Number|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]] }} }} |
Revision as of 11:23, 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_number:
- $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>