Difference between revisions of "Template:Card query"
m (Protected "Template:Card query": High traffic page: We know of the "Further results" issue. Don't mess with it. Highly transcluded page. ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(Explain vars.) |
||
Line 141: | Line 141: | ||
-->{{ #if: {{{debug<includeonly>|</includeonly>}}} | <nowiki/> | -->{{ #if: {{{debug<includeonly>|</includeonly>}}} | <nowiki/> | ||
* <code>#ask</code> query: <code>{{ #tag: nowiki | {{ #var: $query_medium_query }}{{ #var: $query_card_type_query }}{{ #var: $query_query }} }}</code> | * <code>#ask</code> query: <code>{{ #tag: nowiki | {{ #var: $query_medium_query }}{{ #var: $query_card_type_query }}{{ #var: $query_query }} }}</code> | ||
− | * $query_query: <code>{{ #tag: nowiki | {{ #var: $query_query }} }}</code> | + | * <abbr title="query entered">$query_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_query }} }}</code> |
− | * $query_query_lc: <code>{{ #tag: nowiki | {{ #var: $query_query_lc }} }}</code> | + | * <abbr title="lowercased query entered">$query_query_lc</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_query_lc }} }}</code> |
− | * $query_medium: <code>{{ #tag: nowiki | {{ #var: $query_medium }} }}</code> | + | * <abbr title="normalized <nowiki>{{{medium}}}</nowiki> entered">$query_medium</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_medium }} }}</code> |
− | * $query_medium_query: <code>{{ #tag: nowiki | {{ #var: $query_medium_query }} }}</code> | + | * <abbr title="processed $query_medium ready to use on the query">$query_medium_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_medium_query }} }}</code> |
− | * $query_query_medium: <code>{{ #tag: nowiki | {{ #var: $query_query_medium }} }}</code> | + | * <abbr title="type of the medium (if for cards, to enable/disable labels)">$query_query_medium</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_query_medium }} }}</code> |
− | * $query_card_type: <code>{{ #tag: nowiki | {{ #var: $query_card_type }} }}</code> | + | * <abbr title="normalized <nowiki>{{{type}}}</nowiki> entered">$query_card_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_card_type }} }}</code> |
− | * $query_card_type_query: <code>{{ #tag: nowiki | {{ #var: $query_card_type_query }} }}</code> | + | * <abbr title="processed $query_card_type ready to use on the query">$query_card_type_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_card_type_query }} }}</code> |
− | * $query_col_card_type: <code>{{ #tag: nowiki | {{ #var: $query_col_card_type }} }}</code> | + | * <abbr title="enable/disable «?Card type» column">$query_col_card_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_card_type }} }}</code> |
− | * $query_col_primary_type: <code>{{ #tag: nowiki | {{ #var: $query_col_primary_type }} }}</code> | + | * <abbr title="for monster cards, enable/disable «?Primary type» column">$query_col_primary_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_primary_type }} }}</code> |
− | * $query_col_secondary_type: <code>{{ #tag: nowiki | {{ #var: $query_col_secondary_type }} }}</code> | + | * <abbr title="for monster cards, enable/disable «?Secondary type» column">$query_col_secondary_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_secondary_type }} }}</code> |
− | * $query_col_attribute: <code>{{ #tag: nowiki | {{ #var: $query_col_attribute }} }}</code> | + | * <abbr title="for monster cards, enable/disable «?Attribute» column">$query_col_attribute</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_attribute }} }}</code> |
− | * $ | + | * <abbr title="for monster cards, enable/disable «?Type» column">$query_col_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_type }} }}</code> |
− | * $ | + | * <abbr title="for monster cards, enable/disable «?Stars string» column">$query_col_stars</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_stars }} }}</code> |
− | * $ | + | * <abbr title="for monster cards, enable/disable «?Pendulum Scale» column">$query_col_scale</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_scale }} }}</code> |
− | * $ | + | * <abbr title="for monster cards, enable/disable «?Link Rating» column">$query_col_link_rating</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_link_rating }} }}</code> |
− | * $query_col_atk: <code>{{ #tag: nowiki | {{ #var: $query_col_atk }} }}</code> | + | * <abbr title="for monster cards, enable/disable «?ATK string» column">$query_col_atk</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_atk }} }}</code> |
− | * $query_col_def: <code>{{ #tag: nowiki | {{ #var: $query_col_def }} }}</code> | + | * <abbr title="for monster cards, enable/disable «?DEF string» column">$query_col_def</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_def }} }}</code> |
− | * $ | + | * <abbr title="">$query_col_card_type_st</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_card_type_st }} }}</code> |
− | * $query_col_property: <code>{{ #tag: nowiki | {{ #var: $query_col_property }} }}</code> | + | * <abbr title="for Spell/Traps, enable/disable «?Property» column">$query_col_property</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_property }} }}</code> |
− | * <code><nowiki>{{{extra_column}}}</nowiki></code>: <code>{{ #tag: nowiki | {{{extra_column|}}} }}</code> | + | * <abbr title="to add another column"><code><nowiki>{{{extra_column}}}</nowiki></code></abbr>: <code>{{ #tag: nowiki | {{{extra_column|}}} }}</code> |
− | * <code><nowiki>{{{extra_label}}}</nowiki></code>: <code>{{ #tag: nowiki | {{{extra_label|}}} }}</code> | + | * <abbr title="to add a label to the new column"><code><nowiki>{{{extra_label}}}</nowiki></code></abbr>: <code>{{ #tag: nowiki | {{{extra_label|}}} }}</code> |
− | * $query_col_extra: <code>{{ #tag: nowiki | {{ #var: $query_col_extra }} }}</code> | + | * <abbr title="full new column (with label, if passed)">$query_col_extra</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_col_extra }} }}</code> |
* limit: {{ #var: $query_limit | 50 }} | * limit: {{ #var: $query_limit | 50 }} | ||
− | * $query_sort: <code>{{ #tag: nowiki | {{ #var: $query_sort }} }}</code> | + | * <abbr title="<nowiki>{{{sort}}}</nowiki>, for sorting the results by property">$query_sort</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_sort }} }}</code> |
− | * $query_order: <code>{{ #tag: nowiki | {{ #var: $query_order }} }}</code> | + | * <abbr title="<nowiki>{{{ordering}}}</nowiki>, for ordering the results by values">$query_order</abbr>: <code>{{ #tag: nowiki | {{ #var: $query_order }} }}</code> |
− | * results count: {{ #var: $query_count }} | + | * <abbr title="results count">$query_count</abbr>: {{ #var: $query_count }} |
}}<!-- | }}<!-- | ||
Revision as of 13:23, 8 August 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>