Template:Magia Record Magia Type: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> Returns the icon for a magia skill. The possible values for the first parameter are: * <tt>one</tt> or <tt>1</tt> – Single target * <tt>wave</tt> – Single target with wave (unused) * <tt>all</tt> – Entire battlefield * <tt>horizontal</tt>, <tt>horz</tt>, or <tt>-</tt> – horizontal line * <tt>vertical</tt>, <tt>vert</tt>, or <tt>!</tt> – vertical line * <tt>cross</tt> or <tt>+</tt> – orthogonal cross (unused) * <tt>x</tt> – diagonal cross (unus...")
 
(Link icon to the skills page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>


Returns the icon for a magia skill. The possible values for the first parameter are:
Returns the icon for a magia skill. The possible base values for the first parameter are:


* <tt>one</tt> or <tt>1</tt> – Single target
* <tt>one</tt> or <tt>1</tt> – Single target
Line 12: Line 12:
* <tt>randomN</tt> – N random targets; N can be 2, 3, 4, or 5
* <tt>randomN</tt> – N random targets; N can be 2, 3, 4, or 5


The optional second parameter currently has only one valid value:
To any of those, the following suffix may be added:


* <tt>low-hp-bonus</tt> – Adds the low HP bonus marking; omit for a regular magia
* <tt>-lowhp</tt> – Adds the low HP bonus marking; omit for a regular magia


You can provide an optional third parameter containing an image flag, such as <tt>left</tt>, <tt>right</tt>, or <tt>thumb</tt>. You can also specify the size with <tt>|size=20px</tt>. It defaults to 40px.
You can provide an optional second parameter containing an image flag, such as <tt>left</tt>, <tt>right</tt>, or <tt>thumb</tt>. You can also specify the size with <tt>|size=20px</tt>. It defaults to 40px.


Some examples:
Some examples:
Line 22: Line 22:
<pre>
<pre>
{{Magia Record Magia Type|all}}
{{Magia Record Magia Type|all}}
{{Magia Record Magia Type|1|low-hp-bonus}}
{{Magia Record Magia Type|1-lowhp}}
</pre>
</pre>


Line 28: Line 28:


{{Magia Record Magia Type|all}}
{{Magia Record Magia Type|all}}
{{Magia Record Magia Type|1|low-hp-bonus}}
{{Magia Record Magia Type|1-lowhp}}


</noinclude><includeonly>[[File:icon skill {{#switch:{{{1}}}
</noinclude><includeonly>[[File:icon skill {{Magia Record Magia Type/lookup|{{{1}}}}}.png|{{{size|40px}}}|{{{2}}}|link=Magia Record Skills and Status Effects#{{Magia Record Magia Type/lookup|{{{1}}}}}]]</includeonly>
|one|1={{#ifeq:{{{2}}}|low-hp-bonus|1067|1012}}
|wave={{#ifeq:{{{2}}}|low-hp-bonus|1068|1013}}
|all={{#ifeq:{{{2}}}|low-hp-bonus|1069|1014}}
|horizontal|horz|-={{#ifeq:{{{2}}}|low-hp-bonus|1070|1015}}
|vertical|vert|!={{#ifeq:{{{2}}}|low-hp-bonus|1071|1016}}
|cross|+={{#ifeq:{{{2}}}|low-hp-bonus|1072|1017}}
|x={{#ifeq:{{{2}}}|low-hp-bonus|1073|1018}}
|random2={{#ifeq:{{{2}}}|low-hp-bonus|1074|1019}}
|random3={{#ifeq:{{{2}}}|low-hp-bonus|1075|1020}}
|random4={{#ifeq:{{{2}}}|low-hp-bonus|1076|1021}}
|random5={{#ifeq:{{{2}}}|low-hp-bonus|1077|1022}}
}}.png|{{{size|40px}}}|{{{3}}}]]</includeonly>

Latest revision as of 16:08, 6 August 2023


Returns the icon for a magia skill. The possible base values for the first parameter are:

  • one or 1 – Single target
  • wave – Single target with wave (unused)
  • all – Entire battlefield
  • horizontal, horz, or - – horizontal line
  • vertical, vert, or ! – vertical line
  • cross or + – orthogonal cross (unused)
  • x – diagonal cross (unused)
  • randomN – N random targets; N can be 2, 3, 4, or 5

To any of those, the following suffix may be added:

  • -lowhp – Adds the low HP bonus marking; omit for a regular magia

You can provide an optional second parameter containing an image flag, such as left, right, or thumb. You can also specify the size with |size=20px. It defaults to 40px.

Some examples:

{{Magia Record Magia Type|all}}
{{Magia Record Magia Type|1-lowhp}}

expands to:

{{{2}}} {{{2}}}