Template:ISFTemplate

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
  
 
<includeonly>
 
<includeonly>
 +
{{#switch: {{{itemtype|}}}
 +
| Weapon
 +
| Divine Weapon
 +
| Staff =
 
{{#if: {{{cardname|}}} |
 
{{#if: {{{cardname|}}} |
 
{{#ask:[[Category:{{{itemtype|}}}]][[Has itemcard1 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard2 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard3 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard4 name::{{{cardname|}}}]]
 
{{#ask:[[Category:{{{itemtype|}}}]][[Has itemcard1 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard2 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard3 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard4 name::{{{cardname|}}}]]
Line 34: Line 38:
 
|?Has itemcard6 name=card name
 
|?Has itemcard6 name=card name
 
}} }}
 
}} }}
 +
| default =
 +
{{#if: {{{cardname|}}} |
 +
{{#ask:[[Category:{{{itemtype|}}}]][[Has itemcard1 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard2 name::{{{cardname|}}}]] OR [[Category:{{{itemtype|}}}]][[Has itemcard3 name::{{{cardname|}}}]]
 +
|mainlabel=Item
 +
|?Has itemcard1 qty=qty
 +
|?Has itemcard1 name=card name
 +
|?Has itemcard2 qty=qty
 +
|?Has itemcard2 name=card name
 +
|?Has itemcard3 qty=qty
 +
|?Has itemcard3 name=card name
 +
}} | {{#ask:[[Category:{{{itemtype|}}}]]
 +
|mainlabel=Item
 +
|?Has itemcard1 qty=qty
 +
|?Has itemcard1 name=card name
 +
|?Has itemcard2 qty=qty
 +
|?Has itemcard2 name=card name
 +
|?Has itemcard3 qty=qty
 +
|?Has itemcard3 name=card name
 +
}} }}
 +
}}
 
</includeonly>
 
</includeonly>

Revision as of 22:08, 23 April 2013

This is the 'ItemQuerier' template. It should be called via the Form:Jayce/Item query form. Reminder to self: $smwgQMaxDepth needs to be set to 6 for card name searches up to itemcard6 in localsettings.php.


      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools