Template:St: Difference between revisions

From Elwiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 16: Line 16:
   {{#if:{{#var:type}}
   {{#if:{{#var:type}}
     |{{#switch:{{#var:type}}
     |{{#switch:{{#var:type}}
       |Hyper=<div class="additional-overlay">[[File:OverlayHA.png|link={{#var:name}}]]</div>
       |Hyper=<div class="ha-additional-overlay">[[File:OverlayHA.png|link={{#var:name}}]]</div>
       |Master=<div class="additional-overlay">[[File:OverlayMC.png|link={{#var:name}}]]</div>
       |Master=<div class="mc-additional-overlay">[[File:OverlayMC.png|link={{#var:name}}]]</div>
     }}
     }}
   }}
   }}
Line 35: Line 35:
     outline: 0!important;
     outline: 0!important;
   }
   }
   .additional-overlay {
   .ha-additional-overlay {
     position: absolute;
     position: absolute;
     z-index: 2;
     z-index: 2;
Line 41: Line 41:
     left: -2px;
     left: -2px;
     pointer-events: none;
     pointer-events: none;
  }
  .mc-additional-overlay {
    position: absolute;
    z-index: 3;
    top: -2px;
    left: -2px;
    pointer-events: none;
    width: 64px;
   }
   }
}}
}}

Latest revision as of 20:36, 9 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: