Template:Infobox keyword: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Tuamir
mNo edit summary
>Jerodast
m (→‎Syntax: explain stats slightly more)
 
(47 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>{{#if:{{{duels_symbol|}}}|<BR>[[File:{{{duels_symbol}}}|70x70px]]}}
| 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|}}}
|-
| icon2 = {{{icon2|}}}
{{#if:{{{first|}}}|
| first = {{{first|}}}
{{!}}- bgcolor="#F9F9F9"
| first_mech = {{{first_mech|}}}
{{!}} valign="top" {{!}}'''Introduced:'''
| last = {{{last|{{{first|}}}}}}
{{!}} {{#if:{{{first_mech|}}}|[[{{{first_mech}}}]] ''(mechanic)''<br/>[[{{{first}}}]] ''(keyword)''|[[{{{first}}}]]}}
| 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}}})'' }}  }}
}}
| notext = {{{noreminder|}}}
{{#if:{{{last|}}}|
| storm = {{{storm|}}}
{{!}}- bgcolor="#E4E4E4"
| storm_ref = {{{storm_ref|}}}
{{!}}'''Last Used:'''
| stats = {{{stats|}}}
{{!}} [[{{{last}}}]]
| search = {{{search|{{{name|{{PAGENAME}} }}} }}}
}}
| search2 = {{{search2|}}}
|- bgcolor="#F9F9F9"
| enclose = {{{enclose|"}}}
| valign="top" {{#if:{{{name2|}}}| rowspan=2 }} |'''Reminder Text:'''
| searchtype = {{{searchtype|keyword}}}
| {{{before|}}} {{{name}}} {{{extra|}}}{{#if:{{{N|}}}| N {{#if:{{{cost|}}}|{{-}}}}}} {{#if:{{{cost|}}}| (cost)}} ''({{{reminder}}})''
}}<includeonly>{{#if:{{{type|}}}|[[Category:Keywords/{{{type}}}]]|[[Category:Keywords]]}}{{#if:{{{type2|}}}|[[Category:Keywords/{{{type2}}}]]}}{{#if:{{{type3|}}}|[[Category:Keywords/{{{type3}}}]]}}</includeonly><noinclude>
{{#if:{{{name2|}}}|
{{!}}- bgcolor="#F9F9F9"
{{!}} {{{name2}}} {{#if:{{{N|}}}| N {{#if:{{{cost|}}}|{{-}}}}}} {{#if:{{{cost|}}}| (cost)}} ''({{{reminder2}}})''
}}
|- bgcolor="#E4E4E4"
| valign="top" | '''Statistics:'''
| {{{stats}}}
|- bgcolor="#F9F9F9"
! 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}}}"] {{#if:{{{name2|}}}|<br>[http://gatherer.wizards.com/Pages/Search/Default.aspx?action=advanced&text=+%5B{{urlencode:"{{#if:{{{search2|}}}|{{{search2}}}|{{{name2}}}}}"|PATH}}%5D&special=true Gatherer search for "{{{name2}}}"] }}
|}
<includeonly>[[Category:Keywords/{{{type}}}]][[Category:Keywords]]</includeonly><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)
| duels_symbol = Duels [name] symbol.png (if exists)
| icon = (optional, image name for Duels or Arena icon)
| type = Activated|Characteristic|Evasion|Static|Triggered
| icon2 = (optional, 2nd image name for Duels or Arena icon)
| first =  
| 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)
| before = (optional, add extra info before the name)
| stats = {{stats|W=|U=|B=|R=|G=|A=|L=|C=|M=}} (RECOMMENDED: color distribution of cards using the keyword, as card counts not percentages)
| extra = (optional, add extra info before the reminder)
| search =    (optional, use to refine Scryfall search)
| name2 = (optional second name)
| searchtype = (optional, can be used to modify the search type, defaults to keyword unless specified)
| reminder2 = (optional second reminder)
| 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)
}}