Template:Se: Difference between revisions
From Elwiki
No edit summary |
(let's just hope i didnt break anything lmao, i just moved "alt" to var 3 and "type" to var 4 to make it easier for me to change them) |
||
Line 1: | Line 1: | ||
<includeonly>{{trim2| | <includeonly>{{trim2| | ||
{{#vardefine: type_arg |{{{ | {{#vardefine: type_arg |{{{4|{{{type|}}}}}}}} | ||
{{#vardefine: type | | {{#vardefine: type | | ||
{{#if: {{ | {{#if: {{4|{{{type|}}}}}} | ||
|{{#switch:{{#var:type_arg}}|pb=Party Buff|aob=Ally Only Buff|pd=Party Debuff|aod=Ally Only Debuff|sb=Self Buff|sd=Self Debuff|eb=Enemy Buff|ed=Enemy Debuff|#default=Self Buff}} | |{{#switch:{{#var:type_arg}}|pb=Party Buff|aob=Ally Only Buff|pd=Party Debuff|aod=Ally Only Debuff|sb=Self Buff|sd=Self Debuff|eb=Enemy Buff|ed=Enemy Debuff|#default=Self Buff}} | ||
|{{#switch: {{{2|{{{name|}}}}}}|Freeze|Burn|Faint|Condemnation|Power Faint|Poison|Wound|Flattened|Ice|Confusion|Bleed|Lethargy|Mana Pollution|Groggy=Enemy Debuff|#default=Self Buff }} | |{{#switch: {{{2|{{{name|}}}}}}|Freeze|Burn|Faint|Condemnation|Power Faint|Poison|Wound|Flattened|Ice|Confusion|Bleed|Lethargy|Mana Pollution|Groggy=Enemy Debuff|#default=Self Buff}} | ||
}} | }} | ||
}} | }} | ||
{{#vardefine: id | | {{#vardefine: id | | ||
{{#if: {{{alt|}}} | {{#if: {{{3|{{{alt|}}}}}} | ||
|{{{1|{{{id|}}}}}} | |{{{1|{{{id|}}}}}} | ||
|{{#switch: {{{2|{{{name|}}}}}} | Freeze=081 | Burn=071 | Faint|Condemnation|Power Faint=087 | Poison=076 | Wound=085 | Flattened=070 | Ice=094 | Confusion=095 | Bleed=116 | Lethargy=129 | Mana Pollution=236 | Groggy=458 | #default={{{1|{{{id|}}}}}} | |{{#switch: {{{2|{{{name|}}}}}} | Freeze=081 | Burn=071 | Faint|Condemnation|Power Faint=087 | Poison=076 | Wound=085 | Flattened=070 | Ice=094 | Confusion=095 | Bleed=116 | Lethargy=129 | Mana Pollution=236 | Groggy=458 | #default={{{1|{{{id|}}}}}} | ||
Line 19: | Line 19: | ||
}}<div style="display: inline-block;">[[File:Status_{{#var:id}}.png|link={{#if:{{{2|{{{name|}}}}}} | }}<div style="display: inline-block;">[[File:Status_{{#var:id}}.png|link={{#if:{{{2|{{{name|}}}}}} | ||
<!--yes-->|{{#ifexist:Status Effects/{{{2|{{{name|}}}}}} | <!--yes-->|{{#ifexist:Status Effects/{{{2|{{{name|}}}}}} | ||
<!--if it exists-->|Status Effects/{{{2|{{{name}}}}}}]]</div> {{tt|[[Status Effects/{{{2|{{{name}}}}}}|{{#if:{{{alt|}}}|{{{alt|}}}|{{{2|{{{name}}}}}}}}]]|{{#var:type}}}} | <!--if it exists-->|Status Effects/{{{2|{{{name}}}}}}]]</div> {{tt|[[Status Effects/{{{2|{{{name}}}}}}|{{#if:{{{3|{{{alt|}}}}}}|{{{3|{{{alt|}}}}}}|{{{2|{{{name}}}}}}}}]]|{{#var:type}}}} | ||
<!--if it doesnt-->|Status Effects]]</div> {{tt|[[Status Effects|{{#if:{{{alt|}}}|{{{alt|}}}|{{{2|{{{name}}}}}}}}]]|{{#var:type}}}} | <!--if it doesnt-->|Status Effects]]</div> {{tt|[[Status Effects|{{#if:{{{3|{{{alt|}}}}}}|{{{3|{{{alt|}}}}}}|{{{2|{{{name}}}}}}}}]]|{{#var:type}}}} | ||
}} | }} | ||
<!--no-->|Status Effects]] | <!--no-->|Status Effects]] | ||
}}</includeonly><noinclude>{{Doc}}</noinclude> | }}</includeonly><noinclude>{{Doc}}</noinclude> |