Difference between revisions of "Template:Event Icon"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> == Usage == This template produces a small icon representing a special feature of an event. * The first parameter is the name of the special feature. * The second...")
 
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
== Examples ==
 
== Examples ==
  
{| border="0" width="896"
+
{| border="0" width="1000"
 
|- style="text-align: center;"
 
|- style="text-align: center;"
 
| width="25%" | <code><nowiki>{{Event Icon|color_restrict}}</nowiki></code>
 
| width="25%" | <code><nowiki>{{Event Icon|color_restrict}}</nowiki></code>
Line 37: Line 37:
 
| {{Event Icon|legendary|32}}
 
| {{Event Icon|legendary|32}}
 
|}
 
|}
 
 
  
 
[[Category:Symbol templates]]
 
[[Category:Symbol templates]]
</noinclude><includeonly>[[File:event-{{{1}}}.png|{{#if:{{{2|}}}|x{{{2}}}px|x24px}}|link={{{1}}}|{{{1}}}]]</includeonly>
+
</noinclude><includeonly>{{Inline|[[File:event-{{{1}}}.png|{{#if:{{{2|}}}|x{{{2}}}px|x24px}}|link={{{1}}}|
 +
{{#switch:{{{1}}}
 +
|color_restrict = Color restriction
 +
|locked_nodes = Locked nodes
 +
|pw_restrict = Planeswalker requirement
 +
|duel_decks = Duel Decks event
 +
|boss_hp = Boss Health event
 +
|perm_support = Permanent support
 +
|special_rules = Ongoing special rules
 +
|bonus_cards = Bonus cards
 +
|enraged = Enraged (2x damage)
 +
|supercharged = Supercharged (bonus mana)
 +
|legendary = Legendary (2x damage and bonus mana)
 +
|{{{1}}}
 +
}}]]}}</includeonly>

Latest revision as of 11:41, 28 April 2020

Usage

This template produces a small icon representing a special feature of an event.

  • The first parameter is the name of the special feature.
  • The second parameter (optional) is the height of the icon (default: 24).

Examples

{{Event Icon|color_restrict}} {{Event Icon|locked_nodes}} {{Event Icon|pw_restrict}} {{Event Icon|duel_decks}}
Color restriction Locked nodes Planeswalker requirement Duel Decks event
{{Event Icon|boss_hp}} {{Event Icon|perm_support}} {{Event Icon|special_rules}} {{Event Icon|bonus_cards}}
Boss Health event Permanent support Ongoing special rules Bonus cards
{{Event Icon|enraged|16}} {{Event Icon|supercharged|24}} {{Event Icon|legendary|32}}
Enraged (2x damage) Supercharged (bonus mana) Legendary (2x damage and bonus mana)