(Edit to allow quote delimited search terms) |
No edit summary |
||
(31 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Infobox |
||
− | {| class="toccolours" style="width:30em; margin:0 0 0.5em 1em; float:right;" |
||
+ | | abovestyle = {{Infobox sec|above}} |
||
− | |- bgcolor="#D4D4D4" |
||
+ | | headerstyle = {{Infobox sec|header}} |
||
⚫ | |||
+ | | labelstyle = {{Infobox sec|label|width=28%}} |
||
⚫ | |||
⚫ | |||
− | {{!}}- bgcolor="#F9F9F9" |
||
+ | | image = {{#if:{{{icon|}}}|[[File:{{#setmainimage:{{{icon}}}}}|70x70px]]}} |
||
− | {{!}} valign="top" {{!}}'''Type:''' |
||
− | + | | header1 = {{{infobox|Mechanic}}} |
|
+ | | label2 = Type |
||
− | }} |
||
⚫ | |||
− | |- bgcolor="#E4E4E4" |
||
− | | |
+ | | label3 = Introduced |
− | | {{#if:{{{first_mech|}}}|''[[{{{first_mech}}}]]'' <small>(mechanic)</small><br/>''[[{{{first}}}]]'' <small>(keyword)</small>|''[[{{{first}}}]]''}} |
+ | | data3 = {{#if:{{{first_mech|}}}|''[[{{{first_mech}}}]]'' <small>(mechanic)</small><br/>''[[{{{first}}}]]'' <small>(keyword)</small>|''[[{{{first}}}]]''}} |
⚫ | |||
− | |- bgcolor="#F9F9F9" |
||
+ | | data4 = ''[[{{{last|{{{first}}}}}}]]'' |
||
⚫ | |||
− | | |
+ | | label5 = {{{text_type|Reminder}}} Text |
+ | | data5 = {{#if: {{{notext|}}}| ''No official {{lc:{{{text_type|Reminder}}}}} text'' | {{{text|}}} }} |
||
− | |- bgcolor="#E4E4E4" |
||
+ | | label6 = [[Storm Scale]] |
||
− | | valign="top" | '''{{{text_type|Reminder}}} Text:''' |
||
− | | |
+ | | data6 = {{{storm|}}}{{{storm_ref|}}} |
+ | | label7 = {{#if:{{{stats|}}}|<span class="nomobile">Statistics</span>}} |
||
− | |- bgcolor="#F9F9F9" |
||
+ | | data7 = {{#if:{{{stats|}}}|<span class="nomobile">{{{stats|}}}</span>}} |
||
− | {{#if:{{{storm|}}}| |
||
+ | | header8 = {{#if:{{{search|{{{name|{{PAGENAME}}}}}}}}|Scryfall Search}} |
||
− | {{!}} valign="top" {{!}} '''[[Storm Scale]]:''' |
||
+ | | data9 = {{Scryfall search|{{{search|{{{name|{{PAGENAME}}}}}}}}|fulloracle|enclose={{{enclose|"}}}|display=oracle:"{{{name|{{PAGENAME}}}}}"}}{{#if:{{{name2|}}}{{{search2|}}}|{{#if:{{{search2|}}}|<br/>{{Scryfall search|{{{search2|}}}|fulloracle|enclose={{{enclose|"}}}|display=oracle:"{{{name2|{{{name|{{PAGENAME}}}}}}}}"}}}}}} |
||
− | {{!}} {{{storm|}}}{{{storm_ref|}}} |
||
⚫ | |||
− | {{!}}- bgcolor="#E4E4E4" |
||
− | }} |
||
− | | valign="top" | '''Statistics:''' |
||
− | | {{{stats|}}} |
||
− | |- bgcolor="#D4D4D4" |
||
− | ! colspan="2" | [http://gatherer.wizards.com/Pages/Search/Default.aspx?action=advanced&text=+%5B{{urlencode:"{{{{{#replace:search|"||}}|{{{name|{{PAGENAME}}}}}}}}"|PATH}}%5D&special=true Gatherer search for "{{{name|{{PAGENAME}}}}}"]{{#if:{{{name2|}}}|<br/>[http://gatherer.wizards.com/Pages/Search/Default.aspx?action=advanced&text=+%5B{{urlencode:"{{{search2|{{{name2}}}}}}"|PATH}}%5D&special=true Gatherer search for "{{{name2}}}"] }} |
||
⚫ | |||
==Syntax== |
==Syntax== |
||
{| style="background: transparent;" |
{| style="background: transparent;" |
||
− | |<pre>{{Infobox |
+ | |<pre>{{Infobox mechanic |
| name = (optional, if different from page name) |
| name = (optional, if different from page name) |
||
| name2 = (optional, for different second name} |
| name2 = (optional, for different second name} |
||
Line 41: | Line 35: | ||
| text_type = (default: Reminder, can be changed if reminder text is not applicable) |
| text_type = (default: Reminder, can be changed if reminder text is not applicable) |
||
| stats = |
| stats = |
||
− | | search = (optional, use to refine |
+ | | search = (optional, use to refine scryfall search. May be wrapped in double straight quotation marks if white space is needed at the beginning or end of the search term, e.g. "enchant ") |
− | | search2 = (optional, use to refine different second |
+ | | search2 = (optional, use to refine different second scryfall search) |
+ | | enclose = (optional, can be used to modify the search terms. / enables regular expressions) |
||
}}</pre> |
}}</pre> |
||
[[Category:Infobox templates]] |
[[Category:Infobox templates]] |
Revision as of 15:53, 27 June 2020
Infobox mechanic | |
---|---|
Mechanic | |
Introduced | [[{{{first}}}]] |
Last Used | [[{{{first}}}]] |
Scryfall Search | |
oracle:"Infobox mechanic" |
Syntax
{{Infobox mechanic | name = (optional, if different from page name) | name2 = (optional, for different second name} | icon = (optional if exists: Duels [name] symbol.png) | type = (if keyword: Activated|Characteristic|Evasion|Spell|Static|Triggered) | first = | first_mech = (optional, use to identify when the keyword's mechanic was introduced, even if it wasn't a keyword yet (such as Fear or Shroud)) | last = (optional, if different from first) | text = | notext = (optional, if there is no official reminder text available) | text_type = (default: Reminder, can be changed if reminder text is not applicable) | stats = | search = (optional, use to refine scryfall search. May be wrapped in double straight quotation marks if white space is needed at the beginning or end of the search term, e.g. "enchant ") | search2 = (optional, use to refine different second scryfall search) | enclose = (optional, can be used to modify the search terms. / enables regular expressions) }} |