Difference between revisions of "Template:Symbol"

From mtgpq wiki
Jump to: navigation, search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:icon_{{{1}}}.png|{{#if: {{{notype|}}} ||.{{{type|png}}}}}|{{{size|x15px}}}|link=Mana|{{{1}}}]]</includeonly><noinclude>[[Category:Symbol templates| ]]</noinclude>
 
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
 
This template produces an small symbol icon that is used to represent mana.
 
This template produces an small symbol icon that is used to represent mana.
  
{| border="0" width="896"
+
* The first parameter is the one-letter abbreviation of the mana color.
 +
* The second parameter (optional) is a size in pixels to display the symbol at (default: 15).
 +
* The third parameter (optional) is a wiki link for the icon (default: Mana).
 +
* The fourth parameter (optional) is hover text for the icon (default: the full name of the color).
 +
 
 +
There is a single named parameter:
 +
* noinline - Set to skip inlining.
 +
 
 +
{| class="wikitable" border="0" width="896"
 
|- style="text-align: center;"
 
|- style="text-align: center;"
 
| width="14%" | <code><nowiki>{{Symbol|L}}</nowiki></code>
 
| width="14%" | <code><nowiki>{{Symbol|L}}</nowiki></code>
Line 16: Line 23:
 
| {{symbol|L}} || {{symbol|C}} || {{symbol|W}} || {{symbol|U}} || {{symbol|B}} || {{symbol|R}} || {{symbol|G}}
 
| {{symbol|L}} || {{symbol|C}} || {{symbol|W}} || {{symbol|U}} || {{symbol|B}} || {{symbol|R}} || {{symbol|G}}
 
|}
 
|}
 +
[[Category:Symbol templates]]
 +
[[Category:Mana icon templates]]
  
[[Category:Mana icon templates]]
+
</noinclude><includeonly>{{Inline|[[File:icon_{{{1}}}.png|x{{#if:{{{2|}}}|{{{2}}}|15}}px|link={{#if:{{{3|}}}|{{{3}}}|Mana}}|<!--
</noinclude>
+
-->{{#if:{{{4|}}}|{{{4}}}|{{#switch:{{{1}}}<!--
 +
-->|W = White<!--
 +
-->|U = Blue<!--
 +
-->|B = Black<!--
 +
-->|R = Red<!--
 +
-->|G = Green<!--
 +
-->|C = Colorless<!--
 +
-->|L = Loyalty<!--
 +
-->|{{{1}}}<!--
 +
-->}}}}]]|{{{noinline|}}}}}</includeonly>

Latest revision as of 08:25, 13 May 2020

Usage

This template produces an small symbol icon that is used to represent mana.

  • The first parameter is the one-letter abbreviation of the mana color.
  • The second parameter (optional) is a size in pixels to display the symbol at (default: 15).
  • The third parameter (optional) is a wiki link for the icon (default: Mana).
  • The fourth parameter (optional) is hover text for the icon (default: the full name of the color).

There is a single named parameter:

  • noinline - Set to skip inlining.
{{Symbol|L}} {{Symbol|C}} {{Symbol|W}} {{Symbol|U}} {{Symbol|B}} {{Symbol|R}} {{Symbol|G}}
Loyalty Colorless White Blue Black Red Green