Template:Magia Record Magia Type: Difference between revisions
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...") |
(Collapse the two key parameters) |
||
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 | ||
To any of those, the following suffix may be added: | |||
* <tt> | * <tt>-lowhp</tt> – Adds the low HP bonus marking; omit for a regular magia | ||
You can provide an optional | 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 | {{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 | {{Magia Record Magia Type|1-lowhp}} | ||
</noinclude><includeonly>[[File:icon skill {{#switch:{{{1}}} | </noinclude><includeonly>[[File:icon skill {{#switch:{{#explode:{{{1}}}|-|0}} | ||
|one|1={{#ifeq:{{{ | |one|1={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1067|1012}} | ||
|wave={{#ifeq:{{{ | |wave={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1068|1013}} | ||
|all={{#ifeq:{{{ | |all={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1069|1014}} | ||
|horizontal|horz|-={{#ifeq:{{{ | |horizontal|horz|-={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1070|1015}} | ||
|vertical|vert|!={{#ifeq:{{{ | |vertical|vert|!={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1071|1016}} | ||
|cross|+={{#ifeq:{{{ | |cross|+={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1072|1017}} | ||
|x={{#ifeq:{{{ | |x={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1073|1018}} | ||
|random2={{#ifeq:{{{ | |random2={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1074|1019}} | ||
|random3={{#ifeq:{{{ | |random3={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1075|1020}} | ||
|random4={{#ifeq:{{{ | |random4={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1076|1021}} | ||
|random5={{#ifeq:{{{ | |random5={{#ifeq:{{#explode:{{{1}}}|-|1}}|lowhp|1077|1022}} | ||
}}.png|{{{size|40px}}}|{{{ | }}.png|{{{size|40px}}}|{{{2}}}]]</includeonly> |
Revision as of 15:05, 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: