Template:Total cards
From Card Hunter Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{#expr: {{{1}}}*{{#show: Items/{{{2}}} | ?Has itemcard1 qty }} }} x [[{{#show: Items/{{2}} | ?Has itemcard1 name | link=none}}|{{#titleparts: {{#show: Items/{{2}} | ?Has itemcard1 name | link=none}} | 1 | 2 }}]] <br />{{#ifexist: {{#show: Items/{{2}} | ?Has itemcard2 name | link=none}} | {{#expr: {{1}}*{{#show: Items/{{2}} | ?Has itemcard2 qty }} }} x [[{{#show: Items/{{2}} | ?Has itemcard2 name | link=none}}|{{#titleparts: {{#show: Items/{{2}} | ?Has itemcard2 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{2}} | ?Has itemcard3 name | link=none}} | {{#expr: {{1}}*{{#show: Items/{{2}} | ?Has itemcard3 qty }} }} x [[{{#show: Items/{{2}} | ?Has itemcard3 name | link=none}}|{{#titleparts: {{#show: Items/{{2}} | ?Has itemcard3 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{2}} | ?Has itemcard4 name | link=none}} | {{#expr: {{1}}*{{#show: Items/{{2}} | ?Has itemcard4 qty }} }} x [[{{#show: Items/{{2}} | ?Has itemcard4 name | link=none}}|{{#titleparts: {{#show: Items/{{2}} | ?Has itemcard4 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{2}} | ?Has itemcard5 name | link=none}} | {{#expr: {{1}}*{{#show: Items/{{2}} | ?Has itemcard5 qty }} }} x [[{{#show: Items/{{2}} | ?Has itemcard5 name | link=none}}|{{#titleparts: {{#show: Items/{{2}} | ?Has itemcard5 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{2}} | ?Has itemcard6 name | link=none}} | {{#expr: {{1}}*{{#show: Items/{{2}} | ?Has itemcard6 qty }} }} x [[{{#show: Items/{{2}} | ?Has itemcard6 name | link=none}}|{{#titleparts: {{#show: Items/{{2}} | ?Has itemcard6 name | link=none}} | 1 | 2 }}]] <br />| }}</includeonly><noinclude> | + | {{#expr: {{{1}}}*{{#show: Items/{{{2}}} | ?Has itemcard1 qty }} }} x [[{{#show: Items/{{{2}}} | ?Has itemcard1 name | link=none}}|{{#titleparts: {{#show: Items/{{{2}}} | ?Has itemcard1 name | link=none}} | 1 | 2 }}]] <br />{{#ifexist: {{#show: Items/{{{2}}} | ?Has itemcard2 name | link=none}} | {{#expr: {{{1}}}*{{#show: Items/{{{2}}} | ?Has itemcard2 qty }} }} x [[{{#show: Items/{{{2}}} | ?Has itemcard2 name | link=none}}|{{#titleparts: {{#show: Items/{{{2}}} | ?Has itemcard2 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{{2}}} | ?Has itemcard3 name | link=none}} | {{#expr: {{{1}}}*{{#show: Items/{{{2}}} | ?Has itemcard3 qty }} }} x [[{{#show: Items/{{{2}}} | ?Has itemcard3 name | link=none}}|{{#titleparts: {{#show: Items/{{{2}}} | ?Has itemcard3 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{{2}}} | ?Has itemcard4 name | link=none}} | {{#expr: {{{1}}}*{{#show: Items/{{{2}}} | ?Has itemcard4 qty }} }} x [[{{#show: Items/{{{2}}} | ?Has itemcard4 name | link=none}}|{{#titleparts: {{#show: Items/{{{2}}} | ?Has itemcard4 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{{2}}} | ?Has itemcard5 name | link=none}} | {{#expr: {{{1}}}*{{#show: Items/{{2}} | ?Has itemcard5 qty }} }} x [[{{#show: Items/{{{2}}} | ?Has itemcard5 name | link=none}}|{{#titleparts: {{#show: Items/{{{2}}} | ?Has itemcard5 name | link=none}} | 1 | 2 }}]] <br />| }}{{#ifexist: {{#show: Items/{{{2}}} | ?Has itemcard6 name | link=none}} | {{#expr: {{{1}}}*{{#show: Items/{{2}} | ?Has itemcard6 qty }} }} x [[{{#show: Items/{{{2}}} | ?Has itemcard6 name | link=none}}|{{#titleparts: {{#show: Items/{{{2}}} | ?Has itemcard6 name | link=none}} | 1 | 2 }}]] <br />| }}</includeonly><noinclude> |
This is the template outline for returning the total number of cards in an item given item qty and item name. Used in Conjunction with the MaxCards template. | This is the template outline for returning the total number of cards in an item given item qty and item name. Used in Conjunction with the MaxCards template. | ||
</noinclude> | </noinclude> |
Revision as of 23:17, 29 October 2013
This is the template outline for returning the total number of cards in an item given item qty and item name. Used in Conjunction with the MaxCards template.