Template:Se: Difference between revisions

From Elwiki
(🤔)
mNo edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{#vardefine: type |
{{#vardefine: type |
     {{#if: {{{4|{{{type|}}}}}}
     {{#if: {{{4|{{{type|}}}}}}
         |{{#switch:{{#var:type_arg}}|pb=Party Buff|aob=Ally Only Buff|pd=Party Debuff|aod=Ally Only Debuff|sapb=Self/Ally Pick-up Buff|sb=Self Buff|sd=Self Debuff|eb=Enemy Buff|ed=Enemy Debuff|sapd=Self/Ally Pick-up Debuff|cb=Couple Buff|#default=Self Buff}}
         |{{#switch:{{#var:type_arg}}|pb=Party Buff|aob=Ally Only Buff|pd=Party Debuff|aod=Ally Only Debuff|sapb=Self/Ally Pick-up Buff|sb=Self Buff|sd=Self Debuff|eb=Enemy Buff|ed=Enemy Debuff|sapd=Self/Ally Pick-up Debuff|cb=Couple Buff|aoeb=Ally Only & Enemy Buff|aoed=Ally Only & Enemy Debuff|#default=Self Buff}}
         |{{#switch: {{{2|{{{name|}}}}}}|Freeze|Burn|Faint|Conviction|Power Faint|Poison|Wound|Flattened|Extreme Coldness|Confusion|Bleed|Lethargy|Mana Pollution|Anti-Magic|Groggy|Move Slowdown|Leg Injury|Silence|Panic|Curse=Enemy Debuff|#default=Self Buff}}
         |{{#switch: {{{2|{{{name|}}}}}}|Freeze|Burn|Faint|Conviction|Power Faint|Poison|Wound|Flattened|Extreme Coldness|Confusion|Bleed|Lethargy|Mana Pollution|Anti-Magic|Groggy|Move Slowdown|Leg Injury|Silence|Panic|Curse=Enemy Debuff|#default=Self Buff}}
     }}
     }}
Line 17: Line 17:
}}
}}


}}{{#if: {{{prefix|}}} |{{{prefix|}}}&nbsp;}}<div class="status">[[File:{{#if:{{#var:id}}|Status_{{#var:id}}|Dunno}}.png|20px|link={{#if:{{{2|{{{name|}}}}}}
{{#vardefine: link |  
<!--yes-->|{{#ifexist:Status Effects/{{{2|{{{name|}}}}}}
    Status Effects{{#if:{{{2|{{{name|}}}}}}
<!--if it exists-->|Status Effects/{{{2|{{{name}}}}}}]] {{#ifeq:{{{tt|}}}|no||{{tt|[[Status Effects/{{{2|{{{name}}}}}}|{{#if:{{{3|{{{alt|}}}}}}|{{{3|{{{alt|}}}}}}|{{{2|{{{name}}}}}}}}]]|'''{{#var:type}}'''}}}}
        |{{#ifexist:Status Effects/{{{2|{{{name|}}}}}}|/{{{2|{{{name|}}}}}}}}
<!--if it doesnt-->|Status Effects]] {{#ifeq:{{{tt|}}}|no||{{tt|[[Status Effects|{{#if:{{{3|{{{alt|}}}}}}|{{{3|{{{alt|}}}}}}|{{{2|{{{name}}}}}}}}]]|'''{{#var:type}}'''}}}}
    }}
}}
 
{{#vardefine: alt |
    {{#if: {{{3|{{{alt|}}}}}}
        |{{{3|{{{alt|}}}}}}
        |{{{2|{{{name}}}}}}
    }}
}}
}}
<!--no-->|Status Effects]]
 
}}</div>{{#if: {{{suffix|}}} |&nbsp;{{{suffix|}}}}}</includeonly><noinclude>{{Doc}}</noinclude>
{{#vardefine: text |
    {{#ifeq: {{{tt|}}}
        |no|[[{{#var:link}}|{{#var:alt}}]]
        |{{tt|[[{{#var:link}}|{{#var:alt}}]]|'''{{#var:type}}'''|span=span}}
    }}
}}
 
}}{{#if:{{{prefix|}}}|{{{prefix|}}}&nbsp;}}<span class="status" style="display:inline;">{{#ifeq:{{{icon|}}}|no|{{#var:text}}|[[File:{{#if:{{#var:id}}|Status_{{#var:id}}|Dunno}}.png|20px|link={{#var:link}}]]{{#if:{{{2|{{{name|}}}}}}|{{#ifeq:{{{label|}}}|no||&nbsp;{{#if:{{{font|}}}|<span style="{{#ifeq:{{{font|}}}|bold|font-weight:bold;|{{#ifeq:{{{font|}}}|italic|font-style:italic;|{{#ifeq:{{{font|}}}|bold italic|font-weight:bold;font-style:italic;}}}}}}">}}{{#var:text}}{{#if:{{{font|}}}|</span>}}}}}}}}</span>{{#if:{{{suffix|}}}|&nbsp;{{{suffix|}}}}}</includeonly><noinclude>{{Doc}}</noinclude>

Latest revision as of 19:09, 27 November 2022

Notebook.png
Information: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:Se/doc.

Refer to the Index of Effect Icons for the full list of images.

Usage

{{se
  | icon = no
  | id =
  | name =
  | alt =
  | type =
  | tt = no
  | label = no
  | font =
 }}

Common Status Effects

  • Status 045.png Super Armor
  • Status 074.png Anti-Magic
  • Status 116.png Bleed
  • Status 071.png Burn
  • Status 095.png Confusion
  • Status 079.png Curse
  • Status 094.png Extreme Coldness
  • Status 087.png Faint / Conviction / Power Faint
  • Status 070.png Flattened
  • Status 081.png Freeze
  • Status 458.png Groggy
  • Status 090.png Leg Injury
  • Status 129.png Lethargy
  • Status 236.png Mana Pollution
  • Status 092.png Move Slowdown
  • Status 088.png Panic
  • Status 076.png Poison
  • Status 313.png Silence
  • Status 085.png Wound

Types of Status Effects

  • Default: Self Buff
  • pb: Party Buff
  • aob: Ally Only Buff
  • pd: Party Debuff
  • aod: Ally Only Debuff
  • sapb: Self/Ally Pick-up Buff
  • sb: Self Buff
  • sd: Self Debuff
  • eb: Enemy Buff
  • ed: Enemy Debuff
  • sapd: Self/Ally Pick-up Debuff
  • cb: Couple Buff
  • aoeb: Ally Only & Enemy Buff
  • aoed: Ally Only & Enemy Debuff

Examples

  • {{se|id=045|name=Super Armor|type=sb}} and {{se||Super Armor}} will return: Status 045.png Self BuffSuper Armor
  • {{se|087|Faint|Stun|ed}} and {{se||Faint|Stun}} will return: Status 087.png Enemy DebuffStun
  • {{se||Bleed|icon=no}} will return: Enemy DebuffBleed
  • {{se||Bleed|tt=no}} will return: Status 116.png Bleed
  • {{se||Bleed|label=no}} will return: Status 116.png
  • {{se|703}} will return: Status 703.png

    The '''se''' (short for Status Effect) template is used to display the icons of the game's many status effects. Mainly transcluded on skill pages to make it clear which icon belongs to which skill. When hovering over the name, a tooltip indicating the type of the effect will appear (self, party, etc).

    Template parameters

    This template prefers inline formatting of parameters.

    ParameterDescriptionTypeStatus
    ID1 id

    The number that identifies the status effect. This parameter can be skipped; the icon will be updated accordingly if the "name" parameter matches one of the status effects listed above.

    Default
    Dunno.png
    Example
    105
    Numbersuggested
    Name2 name

    The name of the status effect. Links to Status Effects by default, but it can also link to its own subpage if it exists (i.e. Status Effects/Armor Break).

    Example
    Destruction Aura
    Stringsuggested
    Alternative label3 alt

    An alternative label that does not affect the links nor the icon. This parameter is usually not necessary, but it can be useful in rare ocassions.

    Example
    Stun
    Stringoptional
    Type4 type

    The type of the status effect, i.e. Party Buff or Enemy Debuff displaying in the tooltip's content. Full list above.

    Default
    Self Buff
    Example
    pb
    Stringoptional
    Fontfont

    The style of the font. Available: bold, italic, bold italic

    Example
    bold
    Stringoptional
    Text beforeprefix

    no description

    Stringoptional
    Text aftersuffix

    no description

    Stringsuggested
    Icon toggleicon

    Disables the status effect icon. The "ID" parameter becomes useless. The only input available is "no".

    Example
    no
    Stringoptional
    Tooltip togglett

    Disables the tooltip. The only input available is "no".

    Example
    no
    Stringoptional
    Label togglelabel

    Disables the label. The "name" parameter can still be used, if needed, to change the icon's link. The only input available is "no".

    Example
    no
    Stringoptional