Template:Keyrune: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
No edit summary
>Jerodast
(doc page moved)
 
(47 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<i class="ss ss-{{lc:{{{1|DPA}}}}} ss-{{#switch:{{lc:{{{2|}}}}}|u|uncommon=uncommon|r|rare=rare|m|mythic|mythic rare=mythic|#default=common}} {{#switch:{{{3|}}}|2=ss-2x|3=ss-3x|4=ss-4x|5=ss-5x|6=ss-6x}} ss-fw ss-grad"></i><noinclude>{{Symbol cat}}</noinclude>
<span style="font-size: {{{size|1.5}}}em;" class="ss ss-{{#switch:{{lc:{{{rarity|}}}}}|u|uncommon=uncommon|r|rare=rare|m|mythic|mythic rare=mythic|t|time|timeshifted=timeshifted|f|foil=foil|#default=common}} {{#if:{{{fixed|}}}|ss-fw}} {{#if:{{{grad|}}}|ss-grad}} ss-{{#replace:{{lc:{{{1|PMTG1}}}}}|,|"></span> <span style="font-size: {{{size|1.5}}}em;" class="ss ss-{{#switch:{{lc:{{{rarity|}}}}}|u|uncommon=uncommon|r|rare=rare|m|mythic|mythic rare=mythic|t|time|timeshifted=timeshifted|f|foil=foil|#default=common}} {{#if:{{{fixed|}}}|ss-fw}} {{#if:{{{grad|}}}|ss-grad}} ss-}}"></span><noinclude>
==Keyrune==
Keyrune is a font developed by Andrew Gioia, which is utilized in the mtg wiki to display magic [[expansion symbol]]s.
 
==Usage==
This template is meant to ease the use of keyrune in the wiki and has four parameter:
* '''unnamed parameter''' {{-}} Comma-separated list of 3-letter expansion codes of the set icons you want to display. Check out [https://keyrune.andrewgioia.com/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. If that is the case, the official 3 letter code was added to the css so it works as well.
* '''rarity''' {{-}} Defaults to common. Set the parameter can be set to 'u' or 'uncommon', 'r' or 'rare', 'm' or 'mythic' or 'mythic rare', 't' or 'time' or 'timeshifted', or 'f' or 'foil' to display the respective rarity.
* '''size''' {{-}} Defaults to 1.5; font size in ''em''.
* '''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.
 
==Updating the font==
Font updates are available via content delivery network.
 
The [[MediaWiki:Keyrune.css|keyrune.css]] has to be updated it match the latest version [https://github.com/andrewgioia/keyrune/blob/master/css/keyrune.css available  here].
{{Symbol cat}}</noinclude>

Latest revision as of 18:59, 16 May 2022

Keyrune

Keyrune is a font developed by Andrew Gioia, which is utilized in the mtg wiki to display magic expansion symbols.

Usage

This template is meant to ease the use of keyrune in the wiki and has four parameter:

  • unnamed parameter — Comma-separated list of 3-letter expansion codes of the set icons 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. If that is the case, the official 3 letter code was added to the css so it works as well.
  • rarity — Defaults to common. Set the parameter can be set to 'u' or 'uncommon', 'r' or 'rare', 'm' or 'mythic' or 'mythic rare', 't' or 'time' or 'timeshifted', or 'f' or 'foil' to display the respective rarity.
  • size — Defaults to 1.5; font size in em.
  • 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.

Updating the font

Font updates are available via content delivery network.

The keyrune.css has to be updated it match the latest version available here.