Form:CardSearch: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 38: Line 38:
<span class="heading">Text Search: </span>{{{field|textSearch|input type=textarea|autogrow|default=|cols=40|placeholder=Game Text to search}}}
<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].
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 mw-collapsed">
<!--    --><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.
Uses [https://www.regular-expressions.info/ regex] to perform more powerful searching.
Line 51: Line 51:


<div class="sidebar flex" style="max-width:250px">
<div class="sidebar flex" style="max-width:250px">
<div class="content mw-collapsible" data-expandtext="Show more" data-collapsetext="Show less">
<div class="content mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less">


<span class="heading">Is Culture</span><small><i> (OR)</i></small>: {{{field|culture|input type=tokens|default=|size=40|values={{#cargo_query:tables=Cultures=CU|fields=CU.Name|order by=CU.SortOrder|where=CU.Name NOT IN ('The One Ring', 'Site')|format=list|no html}}|existing values only|placeholder=Select 1 or more}}}
<span class="heading">Is Culture</span><small><i> (OR)</i></small>: {{{field|culture|input type=tokens|default=|size=40|values={{#cargo_query:tables=Cultures=CU|fields=CU.Name|order by=CU.SortOrder|where=CU.Name NOT IN ('The One Ring', 'Site')|format=list|no html}}|existing values only|placeholder=Select 1 or more}}}
Line 93: Line 93:


<div class="sidebar flex" style="max-width:300px">
<div class="sidebar flex" style="max-width:300px">
<div class="content mw-collapsible" data-expandtext="Show more" data-collapsetext="Show less">
<div class="content mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less">
<div class="title">Stats</div>
<div class="title">Stats</div>
<span class="heading">Twilight Cost: </span>{{{field|twilight|input type=text|default=|size=12|placeholder=}}} <div class="mw-collapsible-content"><small>
<span class="heading">Twilight Cost: </span>{{{field|twilight|input type=text|default=|size=12|placeholder=}}} <div class="mw-collapsible-content"><small>
Line 125: Line 125:


<div class="sidebar flex" style="max-width:300px">
<div class="sidebar flex" style="max-width:300px">
<div class="content mw-collapsible" data-expandtext="Show more" data-collapsetext="Show less">
<div class="content mw-collapsible mw-collapsed" data-expandtext="Show more" data-collapsetext="Show less">
<div class="title">Site Info</div>
<div class="title">Site Stats</div>


<span class="heading">Block: </span>{{{field|block|input type=tokens|default=|size=30|values=Fellowship,Towers,King,Shadows,Hobbit|existing values only|placeholder=Select 1 or more}}}
<span class="heading">Block: </span>{{{field|block|input type=tokens|default=|size=30|values=Fellowship,Towers,King,Shadows,Hobbit|existing values only|placeholder=Select 1 or more}}}

Revision as of 11:27, 26 September 2022