Difference between revisions of "Template:Card query"
m (Can't be piped, or else it breaks the query on Special:Ask (when accessing "further results"); not even with {{!}}.) |
Dinoguy1000 (talk | contribs) (expand the check to auto-determine whether the query's only for monsters) |
||
Line 62: | Line 62: | ||
| non-monster = [[Concept:Non-monster cards]] | | 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 }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | primary type:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | secondary type:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | attribute:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | {{!((}}type:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | level:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | rank:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | stars:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | pendulum scale:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | link arrows:: }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | {{!((}}atk }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | {{!((}}?atk }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | {{!((}}def }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | {{!((}}?def }} | ||
+ | {{ #pos: {{ #var: $query_query_lc }} | link rating:: }} | ||
+ | | monster | ||
+ | }}<!-- might need something for Spell/Trap Monsters --> | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
Revision as of 18:19, 18 November 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_type:
- $query_col_stars:
- $query_col_scale:
- $query_col_link_rating:
- $query_col_atk:
- $query_col_def:
- $query_col_card_type_st:
?Card type = [[Card type]]
- $query_col_property:
?Property = [[Property]]
{{{extra_column}}}
:{{{extra_label}}}
:- $query_col_extra:
- limit: 50
- $query_sort:
- $query_order:
- $query_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>