Template:Itemcardlinkquery

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<includeonly>[[{{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard{{{1}}} name= | link=none}}|{{#titleparts: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard{{{1}}} n...")
 
 
Line 1: Line 1:
<includeonly>[[{{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard{{{1}}} name= | link=none}}|{{#titleparts: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard{{{1}}} name= | link=none}} | 1 | 2 }}]]</includeonly><noinclude>
+
<includeonly>{{#if: {{#expr: {{{1}}} < 6 and {{{1}}} > 0}} | [[{{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard{{{1}}} name= | link=none}}|{{#titleparts: {{#ask: [[Items/{{{2}}}]]| mainlabel=- | ?Has itemcard{{{1}}} name= | link=none}} | 1 | 2 }}]] | }}</includeonly><noinclude>
 +
 
 +
This template contains a query call that returns a properly formatted cardpage link of an item's card. Usage:
 +
<pre>
 +
{{Itemcardlinkquery|<itemcardnumber>|<item name>}}
 +
</pre>
 +
 
 +
Only 1-6 are allowed for <itemcardnumber>.
 +
 
 +
== Examples ==
 +
<code><nowiki>{{Itemcardlinkquery|1|Bashing}}</nowiki></code> = [[Cards/Bruiser|Bruiser]]
 +
 
 +
<code><nowiki>{{Itemcardlinkquery|2|Bashing}}</nowiki></code> = [[Cards/Ouch!|Ouch!]]
 +
 
 +
<code><nowiki>{{Itemcardlinkquery|3|Bashing}}</nowiki></code> =
 +
 
 +
The Martial Skill Bashing contains 2 x Bruiser cards and 1 x Ouch! card. Hence the last query call does not return a result.
  
test iclq
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:52, 4 March 2013


This template contains a query call that returns a properly formatted cardpage link of an item's card. Usage:

{{Itemcardlinkquery|<itemcardnumber>|<item name>}}

Only 1-6 are allowed for <itemcardnumber>.

[edit] Examples

{{Itemcardlinkquery|1|Bashing}} = Bruiser

{{Itemcardlinkquery|2|Bashing}} = Ouch!

{{Itemcardlinkquery|3|Bashing}} =

The Martial Skill Bashing contains 2 x Bruiser cards and 1 x Ouch! card. Hence the last query call does not return a result.


      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools