Template:Itemcardquery

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
| 3 = {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard1 qty=}} x {{Itemcardlinkquery|1|{{{2}}}}}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard2 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard2 qty=}} x {{Itemcardlinkquery|2|{{{2}}}}}| }}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard3 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard3 qty=}} x {{Itemcardlinkquery|3|Bashing}}| }}
+
| 3 = {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard1 qty=}} x {{Itemcardlinkquery|1|{{{2}}}}}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard2 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard2 qty=}} x {{Itemcardlinkquery|2|{{{2}}}}}| }}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard3 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard3 qty=}} x {{Itemcardlinkquery|3|{{{2}}}}}| }}
| 6 = Baz
+
| 6 = {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard1 qty=}} x {{Itemcardlinkquery|1|{{{2}}}}}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard2 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard2 qty=}} x {{Itemcardlinkquery|2|{{{2}}}}}| }}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard3 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard3 qty=}} x {{Itemcardlinkquery|3|{{{2}}}}}| }} {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard4 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard4 qty=}} x {{Itemcardlinkquery|4|{{{2}}}}}| }}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard5 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard5 qty=}} x {{Itemcardlinkquery|5|{{{2}}}}}| }}<br/> {{#if: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard6 qty=}}| {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard6 qty=}} x {{Itemcardlinkquery|6|{{{2}}}}}| }}
 
}}
 
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
  
test icq
+
This template contains a query call that returns the qty and card page links of all cards belonging to an item. Usage:
 +
<pre>
 +
{{Itemcardquery|<number>|<item name>}}
 +
</pre>
 +
 
 +
Only 3 and 6 are allowed for <number>.
 +
 
 +
== Examples ==
 +
<code><nowiki>{{Itemcardquery|3|Bashing}}</nowiki></code> = <br/>
 +
{{Itemcardquery|3|Bashing}}
 +
 
 +
<code><nowiki>{{Itemcardquery|6|Blunt Sword}}</nowiki></code> = <br/>
 +
{{Itemcardquery|6|Blunt Sword}}
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:58, 5 March 2013


This template contains a query call that returns the qty and card page links of all cards belonging to an item. Usage:

{{Itemcardquery|<number>|<item name>}}

Only 3 and 6 are allowed for <number>.

[edit] Examples

{{Itemcardquery|3|Bashing}} =
x [[|]]


{{Itemcardquery|6|Blunt Sword}} =
2 x Bludgeon
4 x Simple Strike



      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools