Template:Keyrune: 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:
<i class="ss ss-{{#switch:{{lc:{{{1|}}}}}|nem=nms|p02=po2|mps=mp1|#default={{lc:{{{1|dpa}}}}}}} ss-{{#switch:{{lc:{{{2|}}}}}|u|uncommon=uncommon|r|rare=rare|m|mythic|mythic rare=mythic|#default=common}} {{#switch:{{{3|2}}}|2=ss-2x|3=ss-3x|4=ss-4x|5=ss-5x|6=ss-6x}} {{#if:{{{fixed|}}}|ss-fw}} {{#if:{{{grad|}}}|ss-grad}}"></i><noinclude>
<i class="ss ss-{{#switch:{{lc:{{{1|}}}}}|nem=nms|p02=po2|mps=mp1|#default={{lc:{{{1|dpa}}}}}}} ss-{{#switch:{{lc:{{{rarity|}}}}}|u|uncommon=uncommon|r|rare=rare|m|mythic|mythic rare=mythic|#default=common}} {{#switch:{{{size|2}}}|2=ss-2x|3=ss-3x|4=ss-4x|5=ss-5x|6=ss-6x}} {{#if:{{{fixed|}}}|ss-fw}} {{#if:{{{grad|}}}|ss-grad}}"></i><noinclude>
==Usage==
==Usage==
Keyrunes is a font which is utilized in the mtgs wiki to display magic set symbol icons.
Keyrunes is a font which is utilized in the mtgs wiki to display magic set symbol icons.
Line 5: Line 5:
This template is meant to ease the use of this font and has four parameter:
This template is meant to ease the use of this font and has four parameter:
* '''unnamed parameter 1''' : The 3 letter expansion code of the set icon you want to display. Check out [https://andrewgioia.github.io/Keyrune/icons.html this page] for a complete list of possible codes. Sometimes the code listed on the page deviates from the official 3 letter code. This template makes sure however that the official code always works.  
* '''unnamed parameter 1''' : The 3 letter expansion code of the set icon you want to display. Check out [https://andrewgioia.github.io/Keyrune/icons.html this page] for a complete list of possible codes. Sometimes the code listed on the page deviates from the official 3 letter code. This template makes sure however that the official code always works.  
* '''unnamed parameter 2''' : Rarity. Defaults to common.
* '''rarity''' : Defaults to common. Set the parameter can be set to 'u' or 'uncommon', 'r' or 'rare', or 'm' or 'mythic' or 'mythic rare'
* '''unnamed parameter 3''' : Size. Defaults to 2, but numbers between 1 and 6 can be used. The higher the number the larger the symbol.
* '''size''' : Defaults to 2, but numbers between 1 and 6 can be used. The higher the number the larger the symbol.
* '''fixed''' : Can be set to 1 to display the symbol on a fixed width.
* '''fixed''' : Can be set to 1 to display the symbol on a fixed width.
* '''grad''' : Can be set to 1 to display a gradient to better capture the look of higher rarities.
* '''grad''' : Can be set to 1 to display a gradient to better capture the look of higher rarities.
{{Symbol cat}}</noinclude>
{{Symbol cat}}</noinclude>

Revision as of 03:08, 5 February 2017

Usage

Keyrunes is a font which is utilized in the mtgs wiki to display magic set symbol icons.

This template is meant to ease the use of this font and has four parameter:

  • unnamed parameter 1 : The 3 letter expansion code of the set icon you want to display. Check out this page for a complete list of possible codes. Sometimes the code listed on the page deviates from the official 3 letter code. This template makes sure however that the official code always works.
  • rarity : Defaults to common. Set the parameter can be set to 'u' or 'uncommon', 'r' or 'rare', or 'm' or 'mythic' or 'mythic rare'
  • size : Defaults to 2, but numbers between 1 and 6 can be used. The higher the number the larger the symbol.
  • fixed : Can be set to 1 to display the symbol on a fixed width.
  • grad : Can be set to 1 to display a gradient to better capture the look of higher rarities.