Template:Se/doc: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 9: Line 9:
}}</nowiki>
}}</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.
* '''id''': 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 images. This parameter can be skipped; the template will automatically assign an icon if the "name" parameter matches one of these common status effects:
* '''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.
** {{se|081}} Freeze
*'''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'').
** {{se|087}} Faint / Condemnation / Power Faint
*'''type''' (predefined, optional): The type of the status effect, i.e. Party Buff or Enemy Debuff displaying in the tooltip's content. Self Buff by default.
** {{se|076}} Poison
** {{se|085}} Wound
** {{se|070}} Flattened
** {{se|094}} Ice
** {{se|095}} Confusion
** {{se|116}} Bleed
** {{se|129}} Lethargy
** {{se|236}} Mana Pollution
** {{se|458}} Groggy
* '''name''': 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 any page it will link to the main [[Status Effects]] page instead.
*'''alt''': An alternative name that does not affect the links or the icon. This parameter is usually not necessary, but it can be useful in rare ocassions (see ''Examples'').
*'''type''' (predefined): The type of the status effect, i.e. Party Buff or Enemy Debuff displaying in the tooltip's content. Self Buff by default.
**Accepts the following:
**Accepts the following:
***'''pb''' - Party Buff
***'''pb''' - Party Buff
Line 24: Line 35:


=== Examples ===
=== Examples ===
* <code><nowiki>{{se|id=094|name=Freeze|alt=Ice|type=ed}}</nowiki></code> will return: {{se|id=094|name=Freeze|alt=Ice|type=ed}}
* <code><nowiki>{{se|id=071|name=Burn|alt=Sword Fire|type=ed}}</nowiki></code> or <code><nowiki>{{se||Burn|Sword Fire|ed}}</nowiki></code> will return: {{se||Burn|Sword Fire|ed}}
* <code><nowiki>{{se|359|Luft Versprengen|sb}}</nowiki></code> and <code><nowiki>{{se|359|Luft Versprengen}}</nowiki></code> will return: {{se|359|Luft Versprengen}}
* <code><nowiki>{{se|359|Luft Versprengen|sb}}</nowiki></code> and <code><nowiki>{{se|359|Luft Versprengen}}</nowiki></code> will return: {{se|359|Luft Versprengen}}
* <code><nowiki>{{se|703}}</nowiki></code> will return: {{se|703}}
* <code><nowiki>{{se|703}}</nowiki></code> will return: {{se|703}}

Revision as of 04:05, 23 March 2022

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. Additionally, when hovering over the effect's name, it will show what type of buff or debuff it is.

Usage

{{se
 | id =
 | name =
 | alt =
 | type =
}}
  • id: The number that identifies the status effect. Refer to the Index of Effect Icons for a full list of images. This parameter can be skipped; the template will automatically assign an icon if the "name" parameter matches one of these common status effects:
    • Freeze
    • Faint / Condemnation / Power Faint
    • Poison
    • Wound
    • Flattened
    • Ice
    • Confusion
    • Bleed
    • Lethargy
    • Mana Pollution
    • Groggy
  • name: The name of the status effect. If it matches an existing status effect page on the wiki (example) the icon will link to it. However, if the name doesn't match any page it will link to the main Status Effects page instead.
  • alt: An alternative name that does not affect the links or the icon. This parameter is usually not necessary, but it can be useful in rare ocassions (see Examples).
  • type (predefined): The type of the status effect, i.e. Party Buff or Enemy Debuff displaying in the tooltip's content. Self Buff by default.
    • Accepts the following:
      • pb - Party Buff
      • sb - Self Buff
      • pd - Party Debuff
      • sd - Self Debuff
      • eb - Enemy Buff
      • ed - Enemy Debuff
      • aob - Ally Only Buff
      • aod - Ally Only Debuff

Examples

  • {{se|id=071|name=Burn|alt=Sword Fire|type=ed}} or {{se||Burn|Sword Fire|ed}} will return:  Enemy DebuffSword FireEnemy DebuffSword Fire
  • {{se|359|Luft Versprengen|sb}} and {{se|359|Luft Versprengen}} will return:  Self BuffLuft VersprengenSelf BuffLuft Versprengen
  • {{se|703}} will return: