Form:Item Search Form

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(37 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Jayce Testing, in theory this should work via [[Special:RunQuery/Item_query|special 'run query']] page.
+
This is the form source for Item search, works via [[Special:RunQuery/Item Search Form|special 'run query']] page.
 
+
 
</noinclude>
 
</noinclude>
  
 
<includeonly>
 
<includeonly>
 
{{{info|query form at top|query title=Item Search Form}}}
 
{{{info|query form at top|query title=Item Search Form}}}
{{{for template|Jayce/ItemQuerier}}}
+
{{{for template|ISFTemplate}}}
 +
 
 +
<span style="color:LightGreen"> '''Instructions:''' Click on radiobuttons to select item type and power token pips. Type in the card name to search for items bearing queried cards. Autocompletion is enabled for the text field. Search results are capped at 30.<br /> </span>
 +
<span style="color:red">'''Note:''' A 'None' radio button will appear in 'Pick a combination' options for successive queries, it is there to enforce users to select valid options. This is a feature of Semantic Forms, it is not a bug.</span>
 +
 
  
 
{| cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 
{| cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 
! valign="top" style="width: 10%; padding-right: 1em" align="left" | Item type:
 
! valign="top" style="width: 10%; padding-right: 1em" align="left" | Item type:
| {{{field|itemtype|input type=radiobutton|values=Weapon, Divine Weapon, Staff, Heavy Armor, Divine Armor, Robe, Helmet, Shield, Divine Item, Arcane Item, Boots, Treasure, Martial Skill, Divine Skill, Arcane Skill, Human Skill, Elf Skill, Dwarf Skill|mandatory|default=Weapon}}}
+
| {{{field|itemtype|input type=radiobutton|values=Weapon, Divine Weapon, Staff, Heavy Armor, Divine Armor, Robe, Helmet, Shield, Divine Item, Arcane Item, Boots, Martial Skill, Divine Skill, Arcane Skill, Human Skill, Elf Skill, Dwarf Skill|mandatory|default=Weapon}}}
 
|-
 
|-
 
| <!--spacer-->
 
| <!--spacer-->
 
| <div style="margin-top:1em;"></div>
 
| <div style="margin-top:1em;"></div>
 
|-
 
|-
! valign="top" align="left"| Talent:
+
! valign="top" align="left"| Power Token:
| ''C = [[File:talentNormalFlat.png]], B = [[File:talentBronzeFlat.png]], S = [[File:talentSilverFlat.png]], G = [[File:talentGoldFlat.png]]''<br/>{{{field|talent|input type=radiobutton|values dependent on=Jayce/ItemQuerier[itemtype]|mandatory|default=Any}}}
+
<!-- | {{{field|talent|input type=radiobutton|values =Any, None, at least 1 C,at least 1 S,at least 1 T,at least 1 P, exactly 1 C, exactly 1 S, exactly 1 T, exactly 1 P, exactly 2 pips|show on select=exactly 2 pips=>exactly2pip|mandatory|default=Any}}} -->
 +
| {{{field|talent|input type=radiobutton|values =Any, None, at least 1 C,at least 1 S, exactly 1 C, exactly 1 S, exactly 2 pips|show on select=exactly 2 pips=>exactly2pip|mandatory|default=Any}}}
 
|}
 
|}
 
<div style="margin-top:1em;"></div>
 
<div style="margin-top:1em;"></div>
Line 23: Line 27:
 
<div id="exactly2pip">
 
<div id="exactly2pip">
 
{| cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 
{| cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
! style="width: 10%; padding-right: 1em" align="left" | Choose a combination:
+
! valign="top" style="width: 10%; padding-right: 1em" align="left" | Pick a combination:
| {{{field|exactly2pip|input type=checkboxes|values=Clear, Bronze, Silver, Gold}}}
+
<!-- | {{{field|exactly2pip|input type=radiobutton|values=CC,SC,TC,PC,SS,TS,PS,TT,PT,PP |mandatory|default=CC}}} -->
 +
| {{{field|exactly2pip|input type=radiobutton|values=CC,SC,SS |mandatory|default=CC}}}
 
|}
 
|}
 
</div>
 
</div>
 +
<div style="margin-top:1em;"></div>
 +
{| class="formtable" cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 +
! valign="top" style="width: 10%; padding-right: 1em" align="left" | Item rarity:
 +
| {{{field|rarity|input type=radiobutton|values=Any, Common, Uncommon, Rare, Epic, Legendary|mandatory|default=Any}}}
 +
|-
 +
| <!--spacer-->
 +
| <div style="margin-top:1em;"></div>
 +
|-
 +
! style="width: 10%; padding-right: 1em" align="left" | Release:
 +
| {{{field|release|input type=radiobutton|values=All, Basic set, Attack of the Artifacts, Expedition to the Sky Citadel|mandatory|default=All}}}
 +
|-
 +
| <!--spacer-->
 +
| <div style="margin-top:1em;"></div>
 +
|-
 +
! valign="top" style="width: 10%; padding-right: 1em" align="left" | Item Level:
 +
| {{{field|itemlevel_choice|input type=radiobutton|values=Any, Specific|show on select=Specific=>specific|mandatory|default=Any}}}
 +
|}
 +
<div style="margin-top:1em;"></div>
 +
 +
<div style="margin-top:1em;"></div>
 +
<div id="specific">
 +
{| cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 +
! valign="top" style="width: 10%; padding-right: 1em" align="left" | Enter item level:
 +
| {{{field|itemlevel|input type=text with autocomplete|values from property=Has Itemlevel}}}
 +
|}
 +
</div>
 +
<div style="margin-top:1em;"></div>
 +
 
<div style="margin-top:1em;"></div>
 
<div style="margin-top:1em;"></div>
 
{| class="formtable" cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 
{| class="formtable" cellpadding="0" cellspacing="0" style="white-space: nowrap; width: 100%"
 
! style="width: 10%; padding-right: 1em" align="left" | Card:
 
! style="width: 10%; padding-right: 1em" align="left" | Card:
| {{{field|cardname|input type=text with autocomplete|}}}
+
| {{{field|cardname|input type=text with autocomplete|values from category=Cards}}}
 
|}
 
|}
 
{{{end template}}}
 
{{{end template}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 06:41, 13 July 2015

This is the form source for Item search, works via special 'run query' page.


      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools