Template:Infobox keyword: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Hanmac
mNo edit summary
>Jerodast
m (→‎Syntax: explain stats slightly more)
 
(54 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="toccolours" style="width:30em; margin:0 0 0.5em 1em; float:right;"
{{Infobox mechanic
|- bgcolor="#D4D4D4"
| infobox = Keyword Ability
! colspan="2" | <big>{{{name}}}</big>
| name = {{{name|{{PAGENAME}}}}}  
|- bgcolor="#E4E4E4"
| name2 = {{{name2|}}}
|'''Type:'''
| type = {{#if:{{{type|}}}|[[{{{type}}} ability|{{{type}}}]]}} {{#if:{{{type2|}}}|(1st ability)<br/> [[{{{type2}}} ability|{{{type2}}}]] (2nd ability) {{#if:{{{type3|}}}|<br/> [[{{{type3}}} ability|{{{type3}}}]] (3rd ability) }} }}
| {{{type}}}
| icon = {{{icon|}}}
|- bgcolor="#F9F9F9"
| icon2 = {{{icon2|}}}
| valign="top" |'''Introduced:'''
| first = {{{first|}}}
| {{#if:{{{first_mech|}}}|[[{{{first_mech}}}]] ''(mechanic)''<br/>[[{{{first}}}]] ''(keyword)''|[[{{{first}}}]]}}
| first_mech = {{{first_mech|}}}
|- bgcolor="#E4E4E4"
| last = {{{last|{{{first|}}}}}}
|'''Last Used:'''
| text = {{{before|}}} {{ucfirst:{{lc:{{{name|{{PAGENAME}}}}}}}}} {{{extra|}}}{{#if:{{{N|}}}| N {{#if:{{{cost|}}}|{{-}}}}}} {{#if:{{{cost|}}}| [cost]}} {{#if: {{{reminder|}}} | ''({{{reminder}}})'' }} {{#if: {{{name2|}}}{{{reminder2|}}} | <br/> {{{before2|{{{before|}}}}}} {{ucfirst:{{lc:{{{name2|{{{name|{{PAGENAME}}}}}}}}}}}} {{{extra2|{{{extra|}}}}}}{{#if:{{{N|}}}| N {{#if:{{{cost|}}}|{{-}}}}}} {{#if:{{{cost|}}}| [cost]}} {{#if: {{{reminder2|}}} | ''({{{reminder2}}})'' }}  }}
| [[{{{last}}}]]
| notext = {{{noreminder|}}}
|- bgcolor="#F9F9F9"
| storm = {{{storm|}}}
| valign="top" |'''Reminder Text:'''
| storm_ref = {{{storm_ref|}}}
| {{{name}}} {{#if:{{{N|}}}| N {{#if:{{{cost|}}}|{{-}}}}}} {{#if:{{{cost|}}}| (cost)}}{{{extra|}}} ''({{{reminder}}})''
| stats = {{{stats|}}}
|- bgcolor="#E4E4E4"
| search = {{{search|{{{name|{{PAGENAME}} }}} }}}
| valign="top" | '''Statistics:'''
| search2 = {{{search2|}}}
| {{{stats}}}
| enclose = {{{enclose|"}}}
|- bgcolor="#F9F9F9"
| searchtype = {{{searchtype|keyword}}}
! colspan="2" | [http://gatherer.wizards.com/Pages/Search/Default.aspx?action=advanced&text=+%5B{{urlencode:"{{#if:{{{search|}}}|{{{search}}}|{{{name}}}}}"|PATH}}%5D&special=true Gatherer search for "{{{name}}}"]
}}<includeonly>{{#if:{{{type|}}}|[[Category:Keywords/{{{type}}}]]|[[Category:Keywords]]}}{{#if:{{{type2|}}}|[[Category:Keywords/{{{type2}}}]]}}{{#if:{{{type3|}}}|[[Category:Keywords/{{{type3}}}]]}}</includeonly><noinclude>
|}
[[Category:Keywords/{{{type}}}]][[Category:Keywords]]
<noinclude>
==Syntax==
==Syntax==
This template is used on pages for a [[keyword ability]]. It is derived from {{tl|Infobox mechanic}}.
Use {{tl|Infobox action}} for [[keyword action]]s.
Recommended to use {{tl|stats}} in stats parameter.
{| style="background: transparent;"
{| style="background: transparent;"
|<pre>{{Infobox keyword
|<pre>{{Infobox keyword
| name =  
| name = (optional, if different from page name)
| type = Activated|Characteristic|Evasion|Static|Triggered
| icon =  (optional, image name for Duels or Arena icon)
| first =  
| icon2 = (optional, 2nd image name for Duels or Arena icon)
| type = Activated|Characteristic|Evasion|Spell|Static|Triggered (REQUIRED)
| type2 = (optional, some keywords have a second type, Graft for example)
| type3 = (optional, some keywords have a third type, Vanishing for example)
| first =     (REQUIRED: first set this keyword was officially used in)
| 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)
| 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 =  
| last =       (optional, if different from first)
| reminder =
| before =   (optional, add extra info before the name)
| stats =
| extra =   (optional, add extra info before the reminder)
| search = (optional, use to refine gatherer search)
| reminder = (RECOMMENDED: official reminder text, ideally from printed cards, or other official sources like Arena)
| N = (optional, shows if the keyword does use a number after its name)
| N =     (optional, N=yes or N=N means the keyword uses a number after its name which varies each usage, e.g. Crew 1 or Crew 6)
| cost = (optional, shows if the keyword does have a cost)
| cost = (optional, cost=yes means the keyword has a cost after its name which varies each usage, e.g. Kicker {2}{R} or Kicker-Sacrifice a land)
| extra = (optional, add extra info before the reminder)
| stats = {{stats|W=|U=|B=|R=|G=|A=|L=|C=|M=}} (RECOMMENDED: color distribution of cards using the keyword, as card counts not percentages)
| search =    (optional, use to refine Scryfall search)
| searchtype = (optional, can be used to modify the search type, defaults to keyword unless specified)
| enclose =    (optional, encloses Scryfall search with this character, defaulting to "; set to / to use regular expressions)
| name2 =    (optional, used when a keyword very similar to the original one is introduced, i.e. morph and megamorph)
| before2 =  (optional, add extra info before the name2)
| extra2 =   (optional, add extra info before the reminder2)
| reminder2 = (optional, the reminder text for the name2 ability)
| search2 =  (optional, use to refine Scryfall search for the name2 ability)
| storm =    (optional, current rating on the Storm Scale)
| storm_ref = (optional, reference for current Storm Scale rating)
}}</pre>
}}</pre>
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 14:22, 23 April 2023

Infobox keyword
Keyword Ability
Introduced [[]]
Last used [[]]
Reminder Text Infobox keyword
Scryfall Search
keyword:"Infobox keyword"

Syntax

This template is used on pages for a keyword ability. It is derived from {{Infobox mechanic}}.

Use {{Infobox action}} for keyword actions.

Recommended to use {{stats}} in stats parameter.

{{Infobox keyword
| name =  (optional, if different from page name)
| icon =  (optional, image name for Duels or Arena icon)
| icon2 = (optional, 2nd image name for Duels or Arena icon)
| type =  Activated|Characteristic|Evasion|Spell|Static|Triggered (REQUIRED)
| type2 = (optional, some keywords have a second type, Graft for example)
| type3 = (optional, some keywords have a third type, Vanishing for example)
| first =      (REQUIRED: first set this keyword was officially used in)
| 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)
| before =   (optional, add extra info before the name)
| extra =    (optional, add extra info before the reminder)
| reminder = (RECOMMENDED: official reminder text, ideally from printed cards, or other official sources like Arena)
| N =     (optional, N=yes or N=N means the keyword uses a number after its name which varies each usage, e.g. Crew 1 or Crew 6)
| cost =  (optional, cost=yes means the keyword has a cost after its name which varies each usage, e.g. Kicker {2}{R} or Kicker-Sacrifice a land)
| stats = {{stats|W=|U=|B=|R=|G=|A=|L=|C=|M=}} (RECOMMENDED: color distribution of cards using the keyword, as card counts not percentages)
| search =     (optional, use to refine Scryfall search)
| searchtype = (optional, can be used to modify the search type, defaults to keyword unless specified)
| enclose =    (optional, encloses Scryfall search with this character, defaulting to "; set to / to use regular expressions)
| name2 =     (optional, used when a keyword very similar to the original one is introduced, i.e. morph and megamorph)
| before2 =   (optional, add extra info before the name2)
| extra2 =    (optional, add extra info before the reminder2)
| reminder2 = (optional, the reminder text for the name2 ability)
| search2 =   (optional, use to refine Scryfall search for the name2 ability)
| storm =     (optional, current rating on the Storm Scale)
| storm_ref = (optional, reference for current Storm Scale rating)
}}