Template:Te/doc

From Elwiki
Revision as of 02:47, 14 January 2023 by Bluhen (talk | contribs)

tf (short for "Title Features") is a template meant to be used inside the main Title template. It primarily helps you add the special conditions in which a title's effect applies, but it can also be used to display a tooltip to show how an effect looks in-game.

Usage

{{tf
|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).

  • img (image): as the name implies, allows you to display an image as a [Template:tt|tooltip]], while its caption gets formatted in italic and bold. It first asks for the text and then for the filename.
  • double (double attack): Not a parameter. It works in exactly the same manner as img. It will simply add the text and image for the more commonly used Double Attack proc.

Grouped parameters

As explained above, these parameters can be used by themselves or as a whole group. As a group, 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. Important: Please keep in mind that this only applies to the conditions. If img or double are also needed, you will need to add them in a separate Tf template.

  • 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 change the template to note that the referenced effect only applies to the current weapon attributes. Either of the six elements will change the template to 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): Not a parameter. Will simply add the message that the current effect cannot be overlapped, in a red color and bold.
  • m (mode): The game mode in which the referenced effect applies, can be either pve/d/dungeon or pvp/m/match. It will also be formatted in red and bold.

Examples

  • img: {{tf|img|summoning Poopang|Summon Poopang.gif}} will return: Template:Tf
  • double: {{tf|double}} will return: Template:Tf
  • element: {{tf|e=water}} and {{tf|e=w}} will return: Template:Tf
  • cooldown: {{tf|cd=1 Minute 30 Seconds}} and {{tf|cd=1 minute 30 seconds}} will return: Template:Tf
  • overlap: {{tf|o}} will return: Template:Tf
  • mode: {{tf|m=pvp}} and {{tf|m=m}} will return: Template:Tf
  • All of the last four combined:
    • {{tf|cd=2 minutes|e=dark|o|m=pve}} will return: Template:Tf
    • {{tf|o|e=current}} will return: Template:Tf
    • {{tf||m=match|cd=2 minutes 30 seconds}} will return: Template:Tf