Template:Scryfall search: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
No edit summary
>Yandere-sliver
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|[https://scryfall.com/search?q={{#if:{{{2|}}}|{{{2|}}}%3A}}%22{{#replace:{{{1|}}}| |+}}%22{{#if:{{{add|}}}|+{{urlencode:{{{add|}}}|PATH}}}} {{#if:{{{display|}}}|{{#replace:{{{display|}}}|]|&#93;}}|{{#if:{{{2|}}}|{{{2|}}}:"{{#replace:{{{1|}}}|]|&#93;}}"|{{{1|}}}}}}}]}}</includeonly><noinclude>
<includeonly>{{#if:{{{1|}}}|[https://scryfall.com/search?q={{#if:{{{2|}}}|{{{2|}}}%3A}}{{#ifeq:{{{2|}}}|is||%22}}{{#replace:{{{1|}}}| |+}}{{#ifeq:{{{2|}}}|is||%22}}{{#if:{{{add|}}}|+{{urlencode:{{{add|}}}|PATH}}}} {{#if:{{{display|}}}|{{#replace:{{{display|}}}|]|&#93;}}|{{#if:{{{2|}}}|{{{2|}}}:{{#ifeq:{{{2|}}}|is||"}}{{#replace:{{{1|}}}|]|&#93;}}{{#ifeq:{{{2|}}}|is||"}}|{{{1|}}}}}}}]}}</includeonly><noinclude>
==Parameters==
==Parameters==
*<code>{{{1}}}</code>: Search phrase
*<code>{{{1}}}</code>: Search phrase
Line 10: Line 10:
*<nowiki>{{Scryfall search|Dimir|watermark}}</nowiki> - {{Scryfall search|Dimir|watermark}}
*<nowiki>{{Scryfall search|Dimir|watermark}}</nowiki> - {{Scryfall search|Dimir|watermark}}
*<nowiki>{{Scryfall search|Dimir|watermark|display=[Just Dimir]}}</nowiki> - {{Scryfall search|Dimir|watermark|display=[Just Dimir]}}
*<nowiki>{{Scryfall search|Dimir|watermark|display=[Just Dimir]}}</nowiki> - {{Scryfall search|Dimir|watermark|display=[Just Dimir]}}
*<nowiki>{{Scryfall search|manland|is}}</nowiki> - {{Scryfall search|manland|is}}


[[Category:Magic product templates]]</noinclude>
[[Category:Magic product templates]]</noinclude>

Revision as of 09:11, 19 May 2019

Parameters

  • {{{1}}}: Search phrase
  • {{{2}}}: Search type (watermark, lore, fulloracle, artist, etc.)
  • {{{display}}}: If another thing then the search phrase should be displayed
  • {{{add}}}: Make the search more specific.

Examples