Editing Template:Card query

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 29: Line 29:
 
   | ocg-only    = [[Medium::OCG-only]]
 
   | ocg-only    = [[Medium::OCG-only]]
 
   | tcg-only    = [[Medium::TCG-only]]
 
   | tcg-only    = [[Medium::TCG-only]]
   | rush duel    = [[Concept:Rush Duel cards]]
+
   | rush duel    = [[Medium::Rush Duel]]
 
   | anime        = [[Concept:Anime cards]]
 
   | anime        = [[Concept:Anime cards]]
 
   | anime-only  = [[Category:Anime cards with no OCG/TCG counterpart]]
 
   | anime-only  = [[Category:Anime cards with no OCG/TCG counterpart]]
Line 36: Line 36:
 
   | vg          = [[Concept:Video game cards]]
 
   | vg          = [[Concept:Video game cards]]
 
   | vg-only      = [[Category:Video game cards with no OCG/TCG counterpart]]
 
   | vg-only      = [[Category:Video game cards with no OCG/TCG counterpart]]
   | duel links  = [[Concept:Duel Links cards]]
+
   | duel links  = [[Release::Yu-Gi-Oh! Duel Links]]
 
   | non-official = <q>[[Concept:Anime cards]] OR [[Concept:Manga cards]] OR [[Concept:Video game cards]]</q>
 
   | non-official = <q>[[Concept:Anime cards]] OR [[Concept:Manga cards]] OR [[Concept:Video game cards]]</q>
 
   }}
 
   }}
Line 89: Line 89:
 
   }}
 
   }}
 
}}{{ #if: {{ #var: $cq_medium }} | {{ #if: {{ #var: $cq_card_type }} | {{ #switch: {{ #var: $cq_medium }}, {{ #var: $cq_card_type }}
 
}}{{ #if: {{ #var: $cq_medium }} | {{ #if: {{ #var: $cq_card_type }} | {{ #switch: {{ #var: $cq_medium }}, {{ #var: $cq_card_type }}
       | official, monster   | official, spell | official, trap | official, non-monster
+
       | official, monster | official, spell | official, trap | official, non-monster
      | duel links, monster | duel links, non-monster
+
       | anime, monster   | anime, non-monster
      | rush duel, monster  | rush duel, non-monster
+
       | manga, monster   | manga, non-monster = <!-- already covered by concepts -->
       | anime, monster     | anime, non-monster
+
       | #default         = [[((Card query)) medium and type value::{{ #var: $cq_medium }}, {{ #var: $cq_card_type }}| ]]
       | manga, monster     | manga, non-monster = <!-- already covered by concepts -->
 
       | #default           = [[((Card query)) medium and type value::{{ #var: $cq_medium }}, {{ #var: $cq_card_type }}| ]]
 
 
     }}
 
     }}
 
   }}
 
   }}
Line 139: Line 137:
 
   }}
 
   }}
 
}}{{ #vardefine: $cq_concept_query | {{ #switch: {{ #var: $cq_medium }}/{{ #var: $cq_card_type }}
 
}}{{ #vardefine: $cq_concept_query | {{ #switch: {{ #var: $cq_medium }}/{{ #var: $cq_card_type }}
   | official/monster       = [[Concept:CG monsters]]
+
   | official/monster     = [[Concept:CG monsters]]
   | official/spell         = [[Concept:CG Spell Cards]]
+
   | official/spell       = [[Concept:CG Spell Cards]]
   | official/trap         = [[Concept:CG Trap Cards]]
+
   | official/trap       = [[Concept:CG Trap Cards]]
   | official/non-monster   = [[Concept:CG non-monster cards]]
+
   | official/non-monster = [[Concept:CG non-monster cards]]
   | duel links/monster     = [[Concept:Duel Links monsters]]
+
   | anime/monster       = [[Concept:Anime monsters]]
   | duel links/non-monster = [[Concept:Duel Links non-monsters]]
+
   | anime/spell          = [[Concept:Anime Spell Cards]]
   | rush duel/monster     = [[Concept:Rush Duel monsters]]
+
  | anime/trap          = [[Concept:Anime Trap Cards]]
   | rush duel/non-monster = [[Concept:Rush Duel non-monsters]]
+
  | anime/non-monster   = [[Concept:Anime non-monsters]]
   | anime/monster         = [[Concept:Anime monsters]]
+
   | manga/monster       = [[Concept:Manga monsters]]
   | anime/non-monster      = [[Concept:Anime non-monsters]]
+
   | manga/spell          = [[Concept:Manga Spell Cards]]
   | manga/monster          = [[Concept:Manga monsters]]
+
  | manga/trap          = [[Concept:Manga Trap Cards]]
   | manga/non-monster     = [[Concept:Manga non-monsters]]
+
  | manga/non-monster   = [[Concept:Manga non-monsters]]
 +
   | vg/monster           = [[Concept:Video game monsters]]
 +
   | vg/spell            = [[Concept:Video game Spell Cards]]
 +
   | vg/trap              = [[Concept:Video game Trap Cards]]
 +
   | vg/non-monster       = [[Concept:Video game non-monsters]]
 
   }}
 
   }}
 
}}{{ #vardefine: $cq_full_query | {{ #var: $cq_concept_query | {{ #var: $cq_medium_query }}{{ #var: $cq_card_type_query }} }}{{ #var: $cq_query }}
 
}}{{ #vardefine: $cq_full_query | {{ #var: $cq_concept_query | {{ #var: $cq_medium_query }}{{ #var: $cq_card_type_query }} }}{{ #var: $cq_query }}
Line 218: Line 220:
 
     }}
 
     }}
 
   }}
 
   }}
}}<!-- I'm sure I'll pay for this eventually
+
}}{{ #vardefine: $cq_col_level/rank/link | {{ #if: {{ #var: $cq_col_level/rank/link_label }}
-->{{ #ifeq: {{{medium}}} | Cross Duel
+
  | ?Stars string = {{ #var: $cq_col_level/rank/link_label }}
  | {{ #if: {{ #var: $cq_level_in_results }} | {{ #vardefine: $cq_col_level | ?Level string = [[Level]] }}
 
    }}{{ #if: {{ #var: $cq_rank_in_results }} | {{ #vardefine: $cq_col_rank | ?Rank string = [[Rank]] }}
 
    }}
 
  | {{ #vardefine: $cq_col_level/rank/link | {{ #if: {{ #var: $cq_col_level/rank/link_label }}
 
      | ?Stars string = {{ #var: $cq_col_level/rank/link_label }}
 
    }}
 
 
   }}
 
   }}
 
}}<!--
 
}}<!--
Line 243: Line 239:
 
     }} }}
 
     }} }}
 
   }}{{ #vardefine: $cq_col_link_rating | {{ #ifeq: {{ #ask: {{ #var: $cq_full_query }} [[Link Rating::+]] | format=count }} | 0
 
   }}{{ #vardefine: $cq_col_link_rating | {{ #ifeq: {{ #ask: {{ #var: $cq_full_query }} [[Link Rating::+]] | format=count }} | 0
       || {{ #if: {{ #pos: {{ #var: $cq_query_lc }} | {{!((}}link rating:: }} | {{ #if: {{ #pos: {{ #var: $cq_query_normalized }} | {{!((}}link rating::^ }} | ?Link Rating = [[Link Rating|Link]] }} | ?Link Rating = [[Link Rating|Link]] }}
+
       || ?Link Rating = [[Link Rating|Link]]
    }}
 
  }}{{ #vardefine: $cq_col_maximum_atk | {{ #ifeq: {{ #var: $cq_medium }} | rush duel | {{ #ifeq: {{ #ask: {{ #var: $cq_full_query }} [[MAXIMUM ATK::+]] | format=count }} | 0
 
        || {{ #if: {{ #pos: {{ #var: $cq_query_lc }} | {{!((}}maximum atk:: }} | {{ #if: {{ #pos: {{ #var: $cq_query_normalized }} | {{!((}}maximum atk::^ }} | ?MAXIMUM ATK#- = [[MAXIMUM ATK]] }} | ?MAXIMUM ATK#- = [[MAXIMUM ATK]] }}
 
      }}
 
 
     }}
 
     }}
 +
  }}{{ #vardefine: $cq_col_maximum_atk | {{ #ifeq: {{ #var: $cq_medium }} | rush duel | {{ #ifeq: {{ #ask: {{ #var: $cq_full_query }} [[MAXIMUM ATK::+]] | format=count }} | 0 || ?MAXIMUM ATK#- = [[MAXIMUM ATK]] }} }}
 
   }}
 
   }}
 
| {{ #vardefine: $cq_col_property | {{ #if: {{ #pos: {{ #var: $cq_query_lc }} | {{!((}}property:: }} | {{ #if: {{ #pos: {{ #var: $cq_query_normalized }} | {{!((}}property::^ }} | ?Property = [[Property]] | {{ #ifeq: {{{extra_column}}} | Property | ?Property = [[Property]] }} }} | ?Property = [[Property]] }}
 
| {{ #vardefine: $cq_col_property | {{ #if: {{ #pos: {{ #var: $cq_query_lc }} | {{!((}}property:: }} | {{ #if: {{ #pos: {{ #var: $cq_query_normalized }} | {{!((}}property::^ }} | ?Property = [[Property]] | {{ #ifeq: {{{extra_column}}} | Property | ?Property = [[Property]] }} }} | ?Property = [[Property]] }}
Line 282: Line 275:
 
   |{{ #var: $cq_col_type }}
 
   |{{ #var: $cq_col_type }}
 
   |{{ #var: $cq_col_level/rank/link }}
 
   |{{ #var: $cq_col_level/rank/link }}
  |{{ #var: $cq_col_level }}
 
  |{{ #var: $cq_col_rank }}
 
 
   |{{ #var: $cq_col_scale }}
 
   |{{ #var: $cq_col_scale }}
 
   |{{ #var: $cq_col_atk }}
 
   |{{ #var: $cq_col_atk }}
Line 317: Line 308:
 
{{ #var: $cq_col_type }}
 
{{ #var: $cq_col_type }}
 
{{ #var: $cq_col_level/rank/link }}
 
{{ #var: $cq_col_level/rank/link }}
{{ #var: $cq_col_level }}
 
{{ #var: $cq_col_rank }}
 
 
{{ #var: $cq_col_scale }}
 
{{ #var: $cq_col_scale }}
 
{{ #var: $cq_col_atk }}
 
{{ #var: $cq_col_atk }}
Line 369: Line 358:
  
 
-->{{ #if: {{{debug<includeonly>|</includeonly>}}} | <nowiki/>
 
-->{{ #if: {{{debug<includeonly>|</includeonly>}}} | <nowiki/>
* <code>#ask</code> query ($cq_full_query): <code>{{ #tag: nowiki | {{ #var: $cq_full_query }} }}</code>
+
* <code>#ask</code> query: <code>{{ #tag: nowiki | {{ #var: $cq_full_query }} }}</code>
 
* <abbr title="query entered">$cq_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_query }} }}</code>
 
* <abbr title="query entered">$cq_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_query }} }}</code>
 
* <abbr title="lowercased query entered">$cq_query_lc</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_query_lc }} }}</code>
 
* <abbr title="lowercased query entered">$cq_query_lc</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_query_lc }} }}</code>
Line 379: Line 368:
 
* <abbr title="processed $cq_card_type ready to use on the query">$cq_card_type_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_card_type_query }} }}</code>
 
* <abbr title="processed $cq_card_type ready to use on the query">$cq_card_type_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_card_type_query }} }}</code>
 
* <abbr title="concept used to reduce load for queries asking for common medium+card type combos">$cq_concept_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_concept_query }} }}</code>
 
* <abbr title="concept used to reduce load for queries asking for common medium+card type combos">$cq_concept_query</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_concept_query }} }}</code>
* <abbr title="determined number of monster results">$cq_monster_count</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_monster_count }} }}</code>
 
* <abbr title="determined number of nonmonster results">$cq_nonmonster_count</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_nonmonster_count }} }}</code>
 
* <abbr title="determined number of Spell Card results">$cq_spell_count</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_spell_count }} }}</code>
 
* <abbr title="determined number of Trap Card results">$cq_trap_count</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_trap_count }} }}</code>
 
 
* <abbr title="enable/disable «?Card type» column">$cq_col_card_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_card_type }} }}</code>
 
* <abbr title="enable/disable «?Card type» column">$cq_col_card_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_card_type }} }}</code>
* <abbr title="enable/disable «?Character» column">$cq_col_character</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_character }} }}</code>
 
* <abbr title="enable/disable «?Japanese name» column">$cq_col_japanese_name</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_japanese_name }} }}</code>
 
 
* <abbr title="for monster cards, enable/disable «?Primary type» column">$cq_col_primary_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_primary_type }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Primary type» column">$cq_col_primary_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_primary_type }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Secondary type» column">$cq_col_secondary_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_secondary_type }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Secondary type» column">$cq_col_secondary_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_secondary_type }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Attribute» column">$cq_col_attribute</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_attribute }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Attribute» column">$cq_col_attribute</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_attribute }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Type» column">$cq_col_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_type }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Type» column">$cq_col_type</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_type }} }}</code>
* <abbr title="whether any results have a value stored in Property:Level string">$cq_level_in_results</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_level_in_results }} }}</code>
 
* <abbr title="whether any results have a value stored in Property:Rank string">$cq_rank_in_results</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_rank_in_results }} }}</code>
 
* <abbr title="whether any results have a value stored in Property:Link Rating">$cq_link_in_results</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_link_in_results }} }}</code>
 
* <abbr title="determined label for Stars column">$cq_col_level/rank/link_label</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_level/rank/link_label }} }}</code>
 
 
* <abbr title="for monster cards, enable/disable «?Stars string» column">$cq_col_level/rank/link</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_level/rank/link }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Stars string» column">$cq_col_level/rank/link</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_level/rank/link }} }}</code>
* <abbr title="for Cross Duel monster cards, enable/disable «?Level string» column">$cq_col_level</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_level }} }}</code>
 
* <abbr title="for Cross Duel monster cards, enable/disable «?Rank string» column">$cq_col_rank</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_rank}} }}</code>
 
 
* <abbr title="for monster cards, enable/disable «?Pendulum Scale» column">$cq_col_scale</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_scale }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Pendulum Scale» column">$cq_col_scale</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_scale }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Link Rating» column">$cq_col_link_rating</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_link_rating }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?Link Rating» column">$cq_col_link_rating</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_link_rating }} }}</code>
* <abbr title="whether the query only returns results with same ATK/DEF">$cq_equal_atkdef</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_equal_atkdef }} }}</code>
 
 
* <abbr title="for monster cards, enable/disable «?ATK string» column">$cq_col_atk</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_atk }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?ATK string» column">$cq_col_atk</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_atk }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?DEF string» column">$cq_col_def</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_def }} }}</code>
 
* <abbr title="for monster cards, enable/disable «?DEF string» column">$cq_col_def</abbr>: <code>{{ #tag: nowiki | {{ #var: $cq_col_def }} }}</code>
Line 428: Line 404:
 
}}{{ #vardefine: $cq_col_level_rank_flags
 
}}{{ #vardefine: $cq_col_level_rank_flags
 
}}{{ #vardefine: $cq_col_level/rank/link
 
}}{{ #vardefine: $cq_col_level/rank/link
}}{{ #vardefine: $cq_col_level
 
}}{{ #vardefine: $cq_col_rank
 
 
}}{{ #vardefine: $cq_col_scale
 
}}{{ #vardefine: $cq_col_scale
 
}}{{ #vardefine: $cq_col_atk
 
}}{{ #vardefine: $cq_col_atk

Please note that all contributions to Yugipedia are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International License (see Yugipedia:Licensing for more details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)
Preview page with this template
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template