Template:Bg other query

From Hearthstone Wiki
Jump to navigation Jump to search

This template is a Battlegrounds version of {{List cards}} that returns all possible cards in Battlegrounds set. This is not suitable for querying Battlegrounds minions.

Usage[edit source]

{{BGO
 |layout=
 |where=
 |orderBy=
 |collapsed=
 |limit=
 |offset=
}}

Parameters[edit source]

  • layout: Choose one of these layouts: table, image, or count. Default is table.
  • where: Where clauses, pretty much like SQL functions. Default is {{Cards tb|type}}="SPELL" OR {{Cards tb|type}}="HERO POWER", which means to search all spells and Hero Powers available in Bob's Tavern.
  • orderBy: Order to sort the results. Default is {{Cards tb|cost}} ASC, {{Cards tb|name}} ASC.
  • collapsed: If true (default), the table/card image list will be collapsed after the page is reloaded, and vice versa if false.
  • limit: Maximum number of cards to display. If the limit number and the results number are too high, it will display error: "The time allocated for running scripts has expired." Default is 500.
  • offset: the number of initial cards to skip. This combines with limit for separating lists whose the number of results are very high into individual pages/articles.

Where clauses[edit source]

Here are some examples of where clauses you can use:

  • {{Cards tb|battlegroundsDarkmoonPrizeTurn}}="1", which means to search all Darkmoon Prizes turn 1.

Examples[edit source]

{{Bg other query|layout=table|where={{t|Cards tb|type}}="SPELL" OR {{t|Cards tb|type}}="HERO POWER"|orderBy={{Cards tb|cost}} ASC, {{Cards tb|name}} ASC}} returns:

See also[edit source]