Difference between revisions of "Template:SetSymbol"

From mtgpq wiki
Jump to: navigation, search
Line 4: Line 4:
 
* The first parameter is the three-letter acronym of an expansion set.
 
* The first parameter is the three-letter acronym of an expansion set.
 
* The second parameter (optional) is the height of the icon (default: 16).
 
* The second parameter (optional) is the height of the icon (default: 16).
 +
* The third parameter (optional) is "nolink" to avoid a link to the expansion set being created, or anything else (default) to create a link.
  
 
== Maintenance ==
 
== Maintenance ==
Line 51: Line 52:
 
| {{SetSymbol|M19}}
 
| {{SetSymbol|M19}}
 
| {{SetSymbol|ZVE}}
 
| {{SetSymbol|ZVE}}
| {{SetSymbol|GRN}}
+
| {{SetSymbol|GRN||nolink}}
 
|}
 
|}
  
 
[[Category:Symbol templates]]
 
[[Category:Symbol templates]]
</noinclude><includeonly>[[File:{{{1}}}_Symbol.png|{{#if:{{{2|}}}|x{{{2}}}px|x16px}}|link={{{1}}}|{{Set expand|{{{1}}}}}]]</includeonly>
+
</noinclude><includeonly>[[File:{{{1}}}_Symbol.png|{{#if:{{{2|}}}|x{{{2}}}px|x16px}}{{#ifeq:{{{3|}}}|nolink||{{!}}link={{{1}}}}}|{{Set expand|{{{1}}}}}]]</includeonly>

Revision as of 10:09, 11 March 2019

Usage

This template produces an small symbol icon that is used to represent set expansion symbols.

  • The first parameter is the three-letter acronym of an expansion set.
  • The second parameter (optional) is the height of the icon (default: 16).
  • The third parameter (optional) is "nolink" to avoid a link to the expansion set being created, or anything else (default) to create a link.

Maintenance

  • To capture and upload a new set symbol:
    1. Install the latest Keyrune TrueType font from https://github.com/andrewgioia/Keyrune/blob/master/fonts/keyrune.ttf
    2. Insert the symbol for the new set from the Keyrune font into a document in a word processor tool (such as Word)
    3. Capture an image of the symbol at 40pt font size and 100% scaling
    4. Trim the image to 120x120 pixels in an image editor (such as Gimp)
    5. Convert the white background to transparency (e.g. via "Color to Alpha" in Gimp)
    6. Export and upload to the wiki with filename XYZ_Symbol.png, where XYZ is the expansion name

Examples

{{SetSymbol|ORI}} {{SetSymbol|BFZ}} {{SetSymbol|OGW}} {{SetSymbol|SOI}} {{SetSymbol|EMN}}
Origins Battle for Zendikar Oath of the Gatewatch Shadows over Innistrad Eldritch Moon
{{SetSymbol|KLD|12}} {{SetSymbol|AER|16}} {{SetSymbol|AKH|20}} {{SetSymbol|HOU|24}} {{SetSymbol|XLN|28}}
Kaladesh Aether Revolt Amonkhet Hour of Devastation Ixalan
{{SetSymbol|RIX}} {{SetSymbol|DOM}} {{SetSymbol|M19}} {{SetSymbol|ZVE}} {{SetSymbol|GRN}}
Rivals of Ixalan Dominaria Core Set 2019 Zendikar vs Eldrazi Guilds of Ravnica