Difference between revisions of "Template:Card query"
Dinoguy1000 (talk | contribs) (if type is either "spell" or "trap", assume that's what's actually meant and list only Spell or Trap Cards, respectively) |
Dinoguy1000 (talk | contribs) (here too) |
||
Line 64: | Line 64: | ||
}}{{ #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]] }} | ||
}} | }} | ||
− | | {{ #vardefine: $query_col_attribute | {{ #if: {{ #var: $query_col_attribute }} | {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = {{ #var: $query_col_attribute }} {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Card type]] }} }} }} | + | | {{ #vardefine: $query_col_attribute | {{ #if: {{ #var: $query_col_attribute }} | {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_attribute }} {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Card type]] }} }} }} }} |
}}{{ #vardefine: $query_col_card_type_st | {{ #if: {{ #var: $query_col_card_type }} | {{ #ifeq: {{ #var: $query_medium }} | official || {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_card_type }} [[Card type]] }} }} }} | }}{{ #vardefine: $query_col_card_type_st | {{ #if: {{ #var: $query_col_card_type }} | {{ #ifeq: {{ #var: $query_medium }} | official || {{ #switch: {{ #var: $query_card_type }} | spell | trap = | #default = {{ #var: $query_col_card_type }} [[Card type]] }} }} }} | ||
}}{{ #vardefine: $query_col_st_class | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}s/t class:: }} || {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = ?S/T Class {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Property]] }} }} }} | }}{{ #vardefine: $query_col_st_class | {{ #if: {{ #pos: {{ #var: $query_query_lc }} | {{!((}}s/t class:: }} || {{ #switch: {{ #var: $query_medium }} | anime | manga | non-official = | #default = ?S/T Class {{ #if: {{ #ifeq: {{ #var: $query_medium }} | official | 1 }} | = [[Property]] }} }} }} |