Form:CardSearch: Difference between revisions
From LOTR-TCG Wiki
No edit summary |
No edit summary |
||
Line 110: | Line 110: | ||
<div class="title">Game Text</div> | <div class="title">Game Text</div> | ||
<span class="heading">Text Search: </span>{{{field|textSearch|input type=textarea|autogrow|default=|cols=40|placeholder=Game Text to | <span class="heading">Text Search: </span>{{{field|textSearch|input type=textarea|autogrow|default=|cols=40|placeholder=Game Text to search}}} | ||
Use % for wildcards. Twilight symbols are stored like (1) (X), and Culture symbols are referenced like [GONDOR] or [RINGWRAITH]. | |||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
<!-- --><span class="heading">Regex Text Search: </span>{{{field|textRegexSearch|input type=textarea|autogrow|default=|cols=40|placeholder=Game Text to match (using regex)}}} | <!-- --><span class="heading">Regex Text Search: </span>{{{field|textRegexSearch|input type=textarea|autogrow|default=|cols=40|placeholder=Game Text to match (using regex)}}} | ||
Uses [https://www.regular-expressions.info/ regex] to perform more powerful searching. | |||
<span class="heading">Tagged Text Search: </span>{{{field|taggedTextRegexSearch|input type=textarea|autogrow|default=|cols=40|placeholder=HTML Tagged Game Text to match (using regex)}}} | <span class="heading">Tagged Text Search: </span>{{{field|taggedTextRegexSearch|input type=textarea|autogrow|default=|cols=40|placeholder=HTML Tagged Game Text to match (using regex)}}} | ||
Sometimes the bracket syntax of the symbols makes things hard. Cards are also stored in HTML, using <nowiki><symbol>gondor</symbol></nowiki> and <nowiki><twilight>1</twilight></nowiki> syntax. However, other card text is also formatted using HTML, using <nowiki><keyword>Fellowship</keyword></nowiki> and similar syntax, which can make searching harder. YMMV. | |||
</div> | </div> | ||
</div> | </div> |