Template:Se/doc: Difference between revisions

From Elwiki
No edit summary
Tags: Manual revert Mobile edit Mobile web edit
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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.
__NOTOC__'''Refer to the [[Status Effects#Index of Effect Icons|Index of Effect Icons]] for the full list of images.'''


== Usage ==
== Usage ==
  <nowiki>{{se
  <nowiki>{{se
| id =
  | icon = no
| name =
  | id =
| alt =
  | name =
| type =
  | alt =
}}</nowiki>
  | type =
  | tt = no
  | label = no
  | font =
}}</nowiki>


* '''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:
=== Common Status Effects ===
** {{se|081}} Freeze
* {{se|045}} Super Armor
** {{se|087}} Faint / Condemnation / Power Faint
* {{se|074}} Anti-Magic
** {{se|076}} Poison
* {{se|116}} Bleed
** {{se|085}} Wound
* {{se|071}} Burn
** {{se|070}} Flattened
* {{se|095}} Confusion
** {{se|094}} Ice
* {{se|079}} Curse
** {{se|095}} Confusion
* {{se|094}} Extreme Coldness
** {{se|116}} Bleed
* {{se|087}} Faint / Conviction / Power Faint
** {{se|129}} Lethargy
* {{se|070}} Flattened
** {{se|236}} Mana Pollution
* {{se|081}} Freeze
** {{se|458}} Groggy
* {{se|458}} Groggy
** {{se|074}} Anti-Magic
* {{se|090}} Leg Injury
* '''name''': The name of the status effect. If it matches an existing status effect page on the wiki ([[Status Effects/Armor Break|example]]), the template will create a link to it. However, if the name doesn't match any page then the template will link to the main [[Status Effects]] page instead.
* {{se|129}} Lethargy
*'''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'').
* {{se|236}} Mana Pollution
*'''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.
* {{se|092}} Move Slowdown
**Accepts the following:
* {{se|088}} Panic
***'''pb''' - Party Buff
* {{se|076}} Poison
***'''sb''' - Self Buff
* {{se|313}} Silence
***'''pd''' - Party Debuff
* {{se|085}} Wound
***'''sd''' - Self Debuff
***'''eb''' - Enemy Buff
***'''ed''' - Enemy Debuff
***'''aob''' - Ally Only Buff
***'''aod''' - Ally Only Debuff


=== Examples ===
=== Types of Status Effects===
* <code><nowiki>{{se|id=071|name=Burn|alt=Fire Enchant|type=ed}}</nowiki></code> and <code><nowiki>{{se||Burn|Fire Enchant|ed}}</nowiki></code> will return: {{se||Burn|Fire Enchant|ed}}
* '''Default''': Self Buff
* <code><nowiki>{{se|359|Luft Versprengen|sb}}</nowiki></code> and <code><nowiki>{{se|359|Luft Versprengen}}</nowiki></code> will return: {{se|359|Luft Versprengen}}
* '''pb''': Party Buff
* <code><nowiki>{{se|703}}</nowiki></code> will return: {{se|703}}
* '''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===
*<code><nowiki>{{se|id=045|name=Super Armor|type=sb}}</nowiki></code> and <code><nowiki>{{se||Super Armor}}</nowiki></code> will return: {{se||Super Armor}}
*<code><nowiki>{{se|087|Faint|Stun|ed}}</nowiki></code> and <code><nowiki>{{se||Faint|Stun}}</nowiki></code> will return: {{se||Faint|Stun}}
*<code><nowiki>{{se||Bleed|icon=no}}</nowiki></code> will return: {{se||Bleed|icon=no}}
*<code><nowiki>{{se||Bleed|tt=no}}</nowiki></code> will return: {{se||Bleed|tt=no}}
*<code><nowiki>{{se||Bleed|label=no}}</nowiki></code> will return: {{se||Bleed|label=no}}
*<code><nowiki>{{se|703}}</nowiki></code> will return: {{se|703}}<templatedata>
 
{
"params": {
"1": {
"aliases": [
"id"
],
"label": "ID",
"description": "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.",
"example": "105",
"type": "number",
"default": "Dunno.png",
"suggested": true
},
"2": {
"aliases": [
"name"
],
"label": "Name",
"description": "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",
"type": "string",
"suggested": true
},
"3": {
"aliases": [
"alt"
],
"label": "Alternative label",
"description": "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",
"type": "string"
},
"4": {
"aliases": [
"type"
],
"label": "Type",
"description": "The type of the status effect, i.e. Party Buff or Enemy Debuff displaying in the tooltip's content. Full list above.",
"example": "pb",
"type": "string",
"default": "Self Buff",
"suggested": true
},
"prefix": {
"label": "Text before",
"type": "string"
},
"suffix": {
"label": "Text after",
"type": "string",
"suggested": true
},
"tt": {
"label": "Tooltip toggle",
"description": "Disables the tooltip. The only input available is \"no\".",
"example": "no",
"type": "string"
},
"icon": {
"label": "Icon toggle",
"description": "Disables the status effect icon. The \"ID\" parameter becomes useless. The only input available is \"no\".",
"example": "no",
"type": "string"
},
"label": {
"label": "Label toggle",
"description": "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",
"type": "string"
},
"font": {
"label": "Font",
"description": "The style of the font. Available: bold, italic, bold italic",
"example": "bold",
"type": "string"
}
},
"description": "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).",
"paramOrder": [
"1",
"2",
"3",
"4",
"font",
"prefix",
"suffix",
"icon",
"tt",
"label"
],
"format": "inline"
}
</templatedata>

Latest revision as of 06:32, 10 February 2023

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

    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