Open main menu

mtgpq wiki β

Changes

Template:Deck List Row

447 bytes removed, 11:36, 28 April 2020
no edit summary
-->{{Deck List Row|Time of Ice}}<!--
-->{{Deck List Row|Storm the Vault}}<!--
-->{{Deck List Row|Storm the Vault//Vault of Catlacan}}<!---->{{Deck List Row|Beanstalk Giant//Fertile Footsteps}}
|}
!Card name || Type<!--
-->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!--
-->{{Deck List Row|?}}<!---->{{Deck List Row|Black Lotus}}
|}
</nowiki></pre>
-->{{Deck List Row|Time of Ice}}<!--
-->{{Deck List Row|Storm the Vault}}<!--
-->{{Deck List Row|Storm the Vault//Vault of Catlacan}}<!---->{{Deck List Row|Beanstalk Giant//Fertile Footsteps}}
|}
!Card name || Type<!--
-->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!--
-->{{Deck List Row|?}}<!---->{{Deck List Row|Black Lotus}}
|}
</noinclude><includeonly><!--Implementation note: Using "ifexist" within the initial check handles incorrect card names / missing card data more gracefully. However, "ifexist" counts as an "expensive parser function", and there is a limit of 100 of these to a page; further parsing of "ifexist" is suspended. (see https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit)Some pages with many deck lists exceed this limit. It's more important to show valid content correctly than to handle invalid content gracefully, so the ifexist check is removed for now. "Ifexist" version of initial check (would replace the first line of the template implementation): {{#ifexprifeq:{{#ifsub:{{{1|}}}|1|0}} and {{#ifexist: Template:Card data: {{{1}}}}}|0|1|0}}|&nbsp; -->{{#if:{{{1|}}}|&nbsp;
{{!}}-
>>>{{Card data: {{{1}}}|1}}<<<
{{!}} {{Card URL|{{Trim|{{{1}}}}}}} <!--Name-->
{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|type}}|1|0}}}}|1|<!--
-->{{!}} {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}}<!-- Type with (P-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|//T) or (shields){{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s}}}}<!---->{{#ifeqif:{{#pos:{{Card data: {{{1}}}|6}}|Creature}}| &nbsp;({{Card data: {{{1}}}|8}})|<!---->{{#ifeqif:{{#pos:{{Card data: {{{1}}}|6}}|Support}}| &nbsp;({{Card data: {{{1}}}|9}})}}}} }}
{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|cost}}|1|0}}}}|1|<!--
-->{{!}} {{#replace:{{Card data: {{{1}}}|5}}|,|//}} }} <!--Cost-->
{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|color}}|1|0}}}}|1|<!--
-->{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}|16}} }} <!--Color-->
{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|rarity}}|1|0}}}}|1|<!--
-->{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}} }} <!--Rarity-->
-->{{SetSymbol|{{Card data: {{{1}}}|2}}}} [[{{Card data: {{{1}}}|2}}]] }}<!--
-->{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|legacy}}|1|0}}}}|1|<!--
-->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||&nbsp;[[File:{{Legacy-bg.pngicon|x18px|link=Legacy|Legacy]]17}}}} }}<!-- Set
-->}}|<br>
{{!}}-
{{!}} {{{1|}}}
{{!}} colspan="5" {{!}} ''{{#ifeq:{{{1}}}|?|Unknown card|Missing card data}}''}}</includeonly>