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:{{{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}}%22{{#replace:{{{1|}}}| |+}}%22{{#if:{{{add|}}}|+{{urlencode:{{{add|}}}|PATH}}}} {{#if:{{{display|}}}|{{#replace:{{{display|}}}|]|&#93;}}|{{#if:{{{2|}}}|{{{2|}}}:"{{#replace:{{{1|}}}|]|&#93;}}"|{{{1|}}}}}}}]}}</includeonly><noinclude>
==Parameters==
==Parameters==
*<code>{{{1}}}</code>: Search phrase
*<code>{{{1}}}</code>: Search phrase
Line 6: Line 6:
==Examples==
==Examples==
*<nowiki>{{Scryfall search|Circle of Protection}}</nowiki> - {{Scryfall search|Circle of Protection}}
*<nowiki>{{Scryfall search|Circle of Protection}}</nowiki> - {{Scryfall search|Circle of Protection}}
*<nowiki>{{Scryfall search|Circle of Protection|add=-is:funny}}</nowiki> - {{Scryfall search|Circle of Protection|add=-is:funny}}
*<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]}}


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

Revision as of 18:51, 18 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

Examples