Template:St: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 2: Line 2:
{{#vardefine: type |
{{#vardefine: type |
   {{#if: {{{1|{{{type|}}}}}}
   {{#if: {{{1|{{{type|}}}}}}
     |{{#switch:{{{1|{{{type|}}}}}} | a=Active | t=Tenacity | s=Strength | b=Bravery | p=Passive | buff=Buff | m=Marriage | ha=Hyper | mc=Master | c=Change | ab=Ability | mod=Mod | #default=SpecialActive}}
     |{{#switch:{{{1|{{{type|}}}}}} | a=Active | t=Tenacity | s=Strength | b=Bravery | p=Passive | buff=Buff | m=Marriage | ha=Hyper | mc=Master | c=Change | ab=Ability | mod=Mod | x=None }}
   }}
   }}
}}
}}
Line 18: Line 18:
       |Hyper=<div class="additional-overlay">[[File:OverlayHA.png|link={{#var:name}}]]</div>
       |Hyper=<div class="additional-overlay">[[File:OverlayHA.png|link={{#var:name}}]]</div>
       |Master=<div class="additional-overlay">[[File:OverlayMC.png|link={{#var:name}}]]</div>
       |Master=<div class="additional-overlay">[[File:OverlayMC.png|link={{#var:name}}]]</div>
    }}
    }}
   }}
   }}
}}
}}
Line 44: Line 44:
}}
}}


}}<div class="skill-outline {{#if:{{#var:extra-overlay}}|additional-outline}}" style="outline-color: {{ColorSel|Skill|{{#var:type}}}}">{{#ifeq:{{{4|}}}|locked
}}<div class="skill-outline {{#if:{{#var:extra-overlay}}|additional-outline}}" {{#ifeq:{{#var:type}}|x||style="outline-color: {{ColorSel|Skill|{{#var:type}}}}}}">{{#ifeq:{{{4|}}}|locked
|{{#var:extra-overlay}}{{IconHover|image-up=LockCover.png|image-down={{{2|{{{image|}}}}}}|link={{#var:name}}}}
|{{#var:extra-overlay}}{{IconHover|image-up=LockCover.png|image-down={{{2|{{{image|}}}}}}|link={{#var:name}}}}
|{{#var:extra-overlay}}[[File:{{{2|{{{image|}}}}}}|link={{#var:name}}]]
|{{#var:extra-overlay}}[[File:{{{2|{{{image|}}}}}}|link={{#var:name}}]]
}}</div></includeonly><noinclude>{{Doc}}</noinclude>
}}</div></includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 01:17, 8 July 2022

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

The st (short for Skill Type) template is used to add an outline to skills in Skill Trees, resembling the outline seen in-game.

Usage

 {{st
  | type = 
  | image = 
  | name = 
  | 5 = locked
  | stage = 

  • type can be replaced with the following:
    • a - Active Skill
    • t - Tenacity Skill
    • s - Strength Skill
    • b - Bravery Skill
    • p - Passive
    • buff - Buff
    • w - Wedding Skill
    • ha - Hyperactive
    • mc - Master Skill
    • X - Disables the outline.
  • image: Has to be addded without the suffix "File:", such as |image=LordAzothPassive1.png.
  • name: The name of the skill. Can be left blank.
  • locked: Adds a "lock" icon on top of the image. Can be left blank.
  • stage: Required for Master Class skills.

Examples

  • {{st|type=b|image=Dimension Link Guardian.PNG|name=Dimension Link - Guardian}} will return:
  • {{st|ha|BluHA.png|Finale|locked}} will return:

  • {{st|mc|Checkmate Stage1.png|Checkmate||1}} will return: