Template:Te

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

te (short for "Title Effects") is meant to be used inside the Title template. Its main purpose is to help you add quickly and easily the conditions in which a title's effect is applied, such as a specific element, the game mode, whether it overlaps other effects, and its cooldown. Ultimately, this aims to display these conditions in a standardized way across the Title list.

This template can also be used to display tooltips, automatically updating the caption to follow a certain format, and displaying on the tooltip a linked image. The purpose of this function is to update the previous method that was used to illustrate, usually with a gif image, a title's effect, as the linked image was opened on a separate browser tab. Taking into consideration that the "double attack" effect is so commonly used, it is also possible to add it quicker without needing to link the image every time.

Usage

{{te
|1= img | double | e, cd, o, m

|img=
    |2=
    |3=

|double

|e=
|cd=
|o
|m=
}}

The title accepts, at first, only one input. This can be either img, double, and four other special parameters which can be used in a group or independently (e, cd, o and m). Important: While the four parameters can be used as a group, img and double cannot be combined with them (or with each other, for logical reasons). If img or double are needed besides the grouped parameters, you will need to add them in a separate Te template.

  • img (image): as the name implies, allows you to display an image as a tooltip, while its caption gets formatted in italic and bold. It will first ask for the caption, and then for the file name.
  • double (double attack): it works in a similar manner as the "img" feature, however, it'll skip the second parameter and automatically display the double attack image on the tooltip. The caption will also get formatted. It is not a parameter, so any further input will return nothing.

Grouped parameters

As explained above, these parameters can be used by themselves or as a group. In the latter case, the template will order them in a set priority as such:

  1. Element
  2. Cooldown
  3. Overlapped
  4. Mode

Therefore, in the case of a single effect having more than one condition, it is recommended to use only one template for it. It does not matter if the effect does not have all of the conditions, as it will just skip the blank ones.

  • e (element): Allows for the input of "current" or one of the six elements (fire/f, water/w, nature/n, wind/w, light/l, dark/d). "current" will make the template note that the referenced effect only applies to the current weapon attributes. Either of the six elements will make the template note that the referenced effect applies to that specific element. All of the options will add a link to Attributing Equipment and each element's respective section ("current" will link to the main section).
  • cd (cooldown): Allows for the input of the amount of time during which the referenced effect cannot be activated again. The text will get automatically formatted in lowercase. If the effect is an actual Status Effect, please also use the Se template.
  • o (overlap): Will add the message that the current effect cannot be overlapped, in red and bold. It is not a parameter, so any further input will return nothing.
  • m (mode): The game mode in which the referenced effect applies, can be either pve/d/dungeon or pvp/m/match. It will be formatted in red and bold.

Examples

  • img: {{te|img|summoning Poopang|Special Effect - Poopang.gif}} will return: summoning Poopang
  • double: {{te|double}} will return: Double Attack
  • element: {{te|e=water}} and {{te|e=w}} will return: (when using water attributed weapon)
  • cooldown: {{te|cd=1 Minute 30 Seconds}} and {{te|cd=1 minute 30 seconds}} will return: (Cooldown: 1 minute 30 seconds)
  • overlap: {{te|o}} will return: (Not overlapped)
  • mode: {{te|m=pvp}} and {{te|m=m}} will return: (Match)
  • All of the last four combined:
    • {{te|cd=2 minutes|e=dark|o|m=pve}} will return: (when using dark attributed weapon) (Cooldown: 2 minutes) (Not overlapped) (Dungeon)
    • {{te|o|e=current}} will return: (only applies to current weapon attributes) (Not overlapped)
    • {{te|m=match|cd=2 minutes 30 seconds}} will return: (Cooldown: 2 minutes 30 seconds) (Match)