Template:Se: Difference between revisions

From Elwiki
(Created page with "<includeonly>File:Status_{{{1|{{{id|}}}}}}.png|link={{#if:{{{2|{{{name|}}}}}} <!--yes-->|{{#ifexist:Status Effects/{{{2|{{{name|}}}}}} <!--if it exists-->|Status Effects/{{{...")
 
mNo edit summary
Tag: Manual revert
 
(84 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>[[File:Status_{{{1|{{{id|}}}}}}.png|link={{#if:{{{2|{{{name|}}}}}}
<includeonly>{{#css:
<!--yes-->|{{#ifexist:Status Effects/{{{2|{{{name|}}}}}}
 
<!--if it exists-->|Status Effects/{{{2|{{{name}}}}}}]] [[Status Effects/{{{2|{{{name}}}}}}|{{#if:{{{3|{{{alt|}}}}}}|{{{3|{{{alt}}}}}}|{{{2|{{{name}}}}}}}}]]
.nomobile {
<!--if it doesnt-->|Status Effects]] [[Status Effects|{{#if:{{{3|{{{alt|}}}}}}|{{{3|{{{alt}}}}}}|{{{2|{{{name}}}}}}}}]]
    display: inline !important;
}
 
.skin-minerva span .nomobile {
    display: none !important;
}
 
}}{{trim2|
{{#vardefine: type_arg |{{{4|{{{type|}}}}}}}}
 
{{#vardefine: 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|stb=Selective Target 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}}
    }}
}}
 
{{#vardefine: id |
    {{#if: {{{1|{{{id|}}}}}}
        |{{{1|{{{id|}}}}}}
        |{{#switch: {{{2|{{{name|}}}}}} | Freeze=081 | Burn=071 | Faint|Conviction|Power Faint=087 | Poison=076 | Wound=085 | Flattened=070 | Extreme Coldness=094 | Confusion=095 | Bleed=116 | Lethargy=129 | Mana Pollution=236 | Anti-Magic=074 | Groggy=458 | Super Armor=045 | Move Slowdown=092 | Leg Injury=090 | Silence=313 | Panic=088 | Curse=079 | #default={{{1|{{{id|}}}}}}
        }}
    }}
}}
 
{{#vardefine: link |
    Status Effects{{#if:{{{2|{{{name|}}}}}}
        |{{#ifexist:Status Effects/{{{2|{{{name|}}}}}}|/{{{2|{{{name|}}}}}}}}
    }}
}}
 
{{#vardefine: alt |
    {{#if: {{{3|{{{alt|}}}}}}
        |{{{3|{{{alt|}}}}}}
        |{{{2|{{{name}}}}}}
    }}
}}
 
{{#vardefine: text |
    {{#ifeq: {{{tt|}}}
        |no|[[{{#var:link}}|{{#var:alt}}]]
        |{{tt|[[{{#var:link}}|{{#var:alt}}]]|'''{{#var:type}}'''|span=span}}
    }}
}}
 
{{#vardefine: textmobile |
    {{#ifeq: {{{tt|}}}
        |no|'''{{#var:alt}}'''
        |{{tt|'''{{#var:alt}}'''|'''{{#var:type}}'''|span=span}}
    }}
}}
}}
<!--no-->|Status Effects]]
}}</includeonly><noinclude>The '''se''' (short for ''Status Effect'') template is meant to be used in the "Skill Information" sections on skill pages, to illustrate the names of any status effects (buffs or debuffs) given by a skill. It primarily shows an icon that will always link to [[Status Effects]], but the link can be changed by providing a custom name.


== Usage ==
{{#vardefine: font |
<nowiki>{{se
    {{#switch:{{{font|}}}
| id =
        |bold|b=font-weight:bold;|italic|i=font-style:italic;|bold italic|italic bold|bi|ib=font-weight:bold;font-style:italic;
| name =
    }}
| alt =
}}
}}</nowiki>


* '''id''' (required): The number that identifies the status effect. Refer to the [[Status Effects#Index of Effect Icons|Index of Effect Icons]] for a full list of icons.
{{#vardefine: dunno |
* '''name''' (optional): The name of the status effect.  If it matches an existing status effect page on the wiki ([[Status Effects/Freeze|example]]) the icon will link to it. However, if the name doesn't match to any page it will link to the main [[Status Effects]] page instead.
    {{#if: {{{4|{{{type|}}}}}}
*'''alt''' (optional): An alternative name that does not affect the links or the icon. This parameter is usually not necessary but can be useful in rare ocassions (see ''Examples'').
        |{{#switch:{{#var:type_arg}}|
            |pb|aob|sapb|sb|eb|stb|aoeb=DunnoBuff
            |pd|aod|sd|ed|sapd|aoed=DunnoDebuff
            |#default=DunnoBuff
        }}
        |DunnoBuff
    }}
}}


=== Examples ===
}}{{#if:{{{prefix|}}}|{{{prefix|}}}&nbsp;}}<span class="status" style="display:inline;">{{#ifeq:{{{icon|}}}|no|{{#if:{{{font|}}}|<span style="{{#var:font}}">}}<span class="nomobile">{{#var:text}}</span><span class="mobileonly">{{#var:textmobile}}</span>{{#if:{{{font|}}}|</span>}}|[[File:{{#if:{{#var:id}}|Status_{{#var:id}}|{{#var:dunno}}}}.png|20px|link={{#var:link}}]]{{#if:{{{2|{{{name|}}}}}}|{{#ifeq:{{{label|}}}|no||&nbsp;{{#if:{{{font|}}}|<span style="{{#var:font}}">}}<span class="nomobile">{{#var:text}}</span><span class="mobileonly">{{#var:textmobile}}</span>{{#if:{{{font|}}}|</span>}}}}}}}}</span>{{#if:{{{suffix|}}}|&nbsp;{{{suffix|}}}}}</includeonly><noinclude>{{Doc}}</noinclude>
* <code><nowiki>{{se|id=094|name=Freeze|alt=Ice}}</nowiki></code> will return: {{se|id=094|name=Freeze|alt=Ice}}
* <code><nowiki>{{se|359|Luft Versprengen}}</nowiki></code> will return: {{se|359|Luft Versprengen}}
* <code><nowiki>{{se|703}}</nowiki></code> will return: {{se|703}}
</noinclude>

Latest revision as of 03:44, 14 July 2023

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

  • Super Armor
  • Anti-Magic
  • Bleed
  • Burn
  • Confusion
  • Curse
  • Extreme Coldness
  • Faint / Conviction / Power Faint
  • Flattened
  • Freeze
  • Groggy
  • Leg Injury
  • Lethargy
  • Mana Pollution
  • Move Slowdown
  • Panic
  • Poison
  • Silence
  • 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
  • stb: Selective Target 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:  Self BuffSuper ArmorSelf BuffSuper Armor
  • {{se|087|Faint|Stun|ed}} and {{se||Faint|Stun}} will return:  Enemy DebuffStunEnemy DebuffStun
  • {{se||Bleed|icon=no}} will return: Enemy DebuffBleedEnemy DebuffBleed
  • {{se||Bleed|tt=no}} will return:  BleedBleed
  • {{se||Bleed|label=no}} will return:
  • {{se|703}} will return:

    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[Edit template data]

    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
    Stringsuggested
    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