* Add MagicCards.info like fitler parser. * Use FilterString whenever one of [:=<>] is in the edit box. * Opts * Opt * - Capture errors - Allow querying any property by full name * clang format * Update cockatrice/src/filter_string.cpp Co-Authored-By: basicer <basicer@basicer.com> * - Some refactoring for clarity - More filters - Add filter help * Clangify * Add icon * Fix test name * Remove stay debug * - Add Rarity filter - Make " trigger filter string mode * You have to pass both filter types * clangify * - Allow filtering by legality - Import legality into card.xml * Add format filter to filtertree * More color search options * RIP extended * More fixes * Fix c:m * set syntax help parent * Fix warning * add additional explanations to syntax help * Allow multiple ands/ors to be chained * Cleanup and refactor Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com> * Move utility into guards Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com> * I heard you like refactors so I put a refactor inside your refactor (#3594) * I heard you like refactors so I put a refactor inside your refactor so you can refactor while you refactor * clangify * Update tab_deck_editor.h
60 lines
3.6 KiB
Markdown
60 lines
3.6 KiB
Markdown
## Syntax Help
|
|
-----
|
|
The search bar recognizes a set of special commands similar to some other card databases. Here is a list with examples. Each entry can be clicked to test the query and has a small explanation. Note that all searches are case insensitive.
|
|
<dl>
|
|
<dt>Name:</dt>
|
|
<dd>[birds of paradise](#birds of paradise) <small>(Any card name containing the words birds, of, and paradise)</small></dd>
|
|
<dd>["birds of paradise"](#%22birds of paradise%22) <small>(Any card name containing the exact phrase "birds of paradise")</small></dd>
|
|
|
|
<dt>Rules Text (<u>O</u>racle):</dt>
|
|
<dd>[o:flying](#o:flying) <small>(Any card text that has the word flying)</small></dd>
|
|
<dd>[o:"first strike"](#o:%22first strike%22) <small>(Any card text that has the exact phrase "first strike")</small></dd>
|
|
<dd>[o:"{T}" o:"add one mana of any color"](#o:%22{T}%22 o:%22add one mana of any color%22) <small>(Any card text that has a tap symbol and the phrase "add one mana of any color")</small></dd>
|
|
|
|
<dt><u>T</u>ypes:</dt>
|
|
<dd>[t:angel](#t:angel) <small>(Any card with the type angel)</small></dd>
|
|
<dd>[t:angel t:legendary](#t:angel t:legendary) <small>(Any angel that's also legendary)</small></dd>
|
|
<dd>[t:basic](#t:basic) <small>(Any card with the type basic)</small></dd>
|
|
<dd>[t:arcane t:instant](#t:arcane t:instant) <small>(Any card with the types arcane and instant)</small></dd>
|
|
|
|
<dt><u>C</u>olors:</dt>
|
|
<dd>[c:w](#c:w) <small>(Any card that is white)</small></dd>
|
|
<dd>[c:wu](#c:wu) <small>(Any card that is white or blue)</small></dd>
|
|
<dd>[c:wum](#c:wum) <small>(Any card that is white or blue, and multicolored)</small></dd>
|
|
<!--
|
|
<dd>[c!w](#c!w) <small>(Cards that are only white)</small></dd>
|
|
<dd>[c!wu](#c!wu) <small>(Cards that are only white or blue, or both)</small></dd>
|
|
<dd>[c!wum](#c!wum) <small>(Cards that are only white and blue, and multicolored)</small></dd>
|
|
<dd>[c=wubrg](#c%3Dwubrg) <small>(Cards that are all five colors)</small></dd>
|
|
-->
|
|
<dd>[c:c](#c:c) <small>(Any colorless card)</small></dd>
|
|
|
|
<dt><u>Pow</u>er, <u>Tou</u>ghness, <u>C</u>onverted <u>M</u>ana <u>C</u>ost:</dt>
|
|
<dd>[tou:1](#tou:1) <small>(Any card with a toughness of 1)</small></dd>
|
|
<dd>[pow>=8](#pow>=8) <small>(Any card with a power greater than or equal to 8)</small></dd>
|
|
<dd>[cmc=7](#cmc=7) <small>(Any card with a converted mana cost equal to 7)</small></dd>
|
|
|
|
<dt><u>R</u>arity:</dt>
|
|
<dd>[r:mythic](#r:mythic) <small>(Any card that has the mythic-rare rarity)</small></dd>
|
|
|
|
<dt><u>F</u>ormat:</dt>
|
|
<dd>[f:standard](#f:standard) <small>(Any card that can be played in standard)</small></dd>
|
|
<dd>[banned:modern](#banned:modern) <small>(Any card that is banned in modern)</small></dd>
|
|
<dd>[restricted:vintage](#restricted:vintage) <small>(Any card that is restricted in vintage)</small></dd>
|
|
<dd>[legal:pauper](#legal:pauper) <small>(Any card that is legal in pauper)</small></dd>
|
|
|
|
<dt><u>E</u>dition:</dt>
|
|
<dd>[set:lea](#set:lea) <small>(Cards that appear in Alpha, which has the set code LEA)</small></dd>
|
|
<dd>[e:lea,leb](#e:lea,leb) <small>(Cards that appear in Alpha or Beta)</small></dd>
|
|
<dd><a href="#e:lea,leb -(e:lea e:leb)">e:lea,leb -(e:lea e:leb)</a> <small>(Cards that appear in Alpha or Beta but not in both editions)</small></dd>
|
|
|
|
<dt>Inverse:</dt>
|
|
<dd>[c:wu -c:m](#c:wu -c:m) <small>(Any card that is white or blue, but not multicolored)</small></dd>
|
|
|
|
<dt>Branching:</dt>
|
|
<dd>[t:sliver or o:changeling](#t:sliver or o:changeling) <small>(Any card that is either a sliver or has changeling)</small></dd>
|
|
|
|
<dt>Grouping:</dt>
|
|
<dd><a href="#t:angel -(angel or c:w)">t:angel -(angel or c:w)</a> <small>(Any angel that doesn't have angel in its name and isn't white)</small></dd>
|
|
|
|
</dl>
|