FANDOM


(Created page with "{{Lua|Module:EC}} ==Description== This template is used to display Currency Icon or Image. ===Template background=== See Help:Templates for some background on how tem...")

Revision as of 19:03, May 28, 2020

Description

This template is used to display Currency Icon or Image.

Template background

See Help:Templates for some background on how templates work.

Notes

  • The first argument is the name of the currency / event and optionally the count. Multiple items can be specified separated by an exclamation mark (!). Each item is specified as "name,count" (case-insensitive)
  • The second argument, if present, specifies whether Text Link to currency page is to be included. The argument value determines the text to be displayed as the link.
    • N = Currency "Name"
    • E = "Event Currency"
    • T = "Alternate Text" (taken from third argument
  • The third argument, if present, specifies the alternate text to be displayed in the text link.
  • The fourth argument, if present, specifies that the larger currency image is to be displayed instead of the currency icon.
  • The fifth argument, if present, specifies the image display height in pixels (default=22 for icon and 50 for image). Limited to actual height of the image.

Syntax

{{EC
 |currency name [e.g. Magic] (Required)
 |Include Text Link [N, E, or T) (Optional)
 |Alternate Text (Optional)
 |Icon or Image (Optional)
 |Image Height (Optional, Default=22 for Icon, 50 for Image)
}}

Samples

|{{EC|Magic}}
|{{EC|XP,5!Magic,50}}
|{{EC|Gems,1!Onward,20|||I}}

Results in...

M-magic
Work in progress
Work in progress
Community content is available under CC-BY-SA unless otherwise noted.