Difference between revisions of "Template:Card URL"

From mtgpq wiki
Jump to: navigation, search
(Strip hyphens)
Line 10: Line 10:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Card URL|Abbot of Keral Keep}}
 
{{Card URL|Abbot of Keral Keep}}
 +
{{Card URL|Ugin, the Ineffable}}
 
</nowiki></pre>
 
</nowiki></pre>
  
Line 16: Line 17:
 
{{Card URL|Abbot of Keral Keep}}
 
{{Card URL|Abbot of Keral Keep}}
  
</noinclude><includeonly>[https://mtgpq.info/cards/{{#replace:{{#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}}}]</includeonly>
+
{{Card URL|Ugin, the Ineffable}}
 +
 
 +
</noinclude><includeonly>[https://mtgpq.info/cards/{{#replace:{{#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}}}|7}}|Vanguard}}|%2528ability1%2529}} {{{1}}}]</includeonly>

Revision as of 00:17, 27 July 2019

Usage

Converts a card name to a link to the card on mtgpq.info.

The only parameter is the name of the card.

Example

The following shorthand (containing the card panel in a table):

{{Card URL|Abbot of Keral Keep}}
{{Card URL|Ugin, the Ineffable}}

Produces:

Abbot of Keral Keep

Ugin, the Ineffable