Difference between revisions of "Template:Deck List Row"
Line 36: | Line 36: | ||
</noinclude><includeonly>{{#if:{{{1|}}}| | </noinclude><includeonly>{{#if:{{{1|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}} [https://mtgpq.info/cards/{{#replace:{{#replace:{{#replace:{{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}|'|}}|,|}}| |}}{{#if:{{#pos:{{Card data: {{{1}}}|7}}|Saga}}|I}} {{{1}}}] <!--Name--> | + | {{!}} [https://mtgpq.info/cards/{{#replace:{{#replace:{{#replace:{{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}|'|}}|,|}}| |}}{{#if:{{#pos:{{Card data: {{{1}}}|7}}|Saga}}|I}} {{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}] <!--Name--> |
{{#ifexist: Template:Card data: {{{1}}}|<!-- | {{#ifexist: Template:Card data: {{{1}}}|<!-- | ||
-->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!-- Type with (P/T) or (shields) | -->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!-- Type with (P/T) or (shields) |
Revision as of 05:31, 17 February 2019
Usage
A row in Template:Deck_List.
The only parameter is the card name. A missing card name produces no output.
Example
The following shorthand:
On its own: {{Deck List Row|Zetalpa, Primal Dawn}} In a table: {| class="wikitable" !Card name || Type || Cost || Color || Rarity || Set<!-- -->{{Deck List Row|Zetalpa, Primal Dawn}}<!-- -->{{Deck List Row|Crush of Tentacles}}<!-- -->{{Deck List Row|Time of Ice}}<!-- -->{{Deck List Row|Storm the Vault}} |}
Produces:
On its own: |- | Zetalpa, Primal Dawn | (4/8) | 19 | | | RIX
In a table:
Card name | Type | Cost | Color | Rarity | Set |
---|---|---|---|---|---|
Zetalpa, Primal Dawn | (4/8) | 19 | RIX | ||
Crush of Tentacles | 21 | OGW | |||
Time of Ice | (2) | 18 | DOM | ||
Storm the Vault | (4) | 11 | RIX |