Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:I

From Dragon Mania Legends (DML) Wiki

(Redirected from Template:Icon)
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)

Alias

The following is an alias for this template:

Example(s)

No Links:

  • Just icon: {{i|Bronze League|i}} Bronze League Icon.png
  • Just icon, width overridden: {{i|Daily Tasks|i|30}} Daily Tasks Icon.png

Link to:

  • Page by icon only: {{i|Attack}} Attack Icon.png
  • Page by text only: {{i|Daily Tasks|2}} Daily Tasks Icon.png Daily Tasks
  • Page by text only: {{i|Daily Tasks|2|10}} Daily Tasks Icon.png Daily Tasks
  • Category, by icon only: {{i|Battle|1}} Battle Icon.png
  • Category by text only: {{i|Boss Dragons|c}} Boss Dragons Icon.png Boss Dragons
  • Category, by text only, override width: {{i|Boss Dragons|c|10}} Boss Dragons Icon.png Boss Dragons
  • Manual link (page or category, used if icon is named differently than link):
    • Page example: {{i|Clan Event MVP|link|Clans}} Clan Event MVP Icon.png
    • Category example: {{i|Battle|link|Category:Battle (System)|30}} Battle Icon.png
Important Icon.png
 
Important: Do not use this template for Dragons, see the Dragon icon {{di}} or Boss/Clan icon {{bi}} templates instead.

See Also

Links to an article in the mainspace by its icon. Syntax: {{i|Icon Name (without the word icon)|Autolink to|size|manual link}}. Examples: {{i|Attack}}, {{i|Bronze League||30}}, {{i|Breeding Token|i}}, {{i|Attack|1}}, {{i|Bronze League|2|30}}, {{i|Breeding Token|c|30}}, {{i|Attack|c}}, {{i|Clan Event MVP|link|Clans|30}}. This template passes values to Template:Icon.

  • {{template|Icon}}

Template parameters

ParameterDescriptionTypeStatus
Icon Name1

Enter the Icon Name (without the word "Icon", see Category:Images:Icons for a list of available icons/names)

Example
Attack
Stringrequired
Link Display / link override2

Enter the value for how you want the link displayed. Allowed Values: (blank), 1, i, 2, c, link. blank = link to a page by icon-only, 1 = link to a category by icon-only, i = display an icon only (no link), 2 = link text to page + icon (at the end), c = link text to category + icon (at the end), link = link to {link} by icon-only

Example
i
Stringoptional
Size / linking target3

If you want to override the default icon size, enter a size (width in px) to display the icon at (without including the letters px). If you are overriding the automatic linking, enter the link target here

Default
20
Example
30
Stringoptional
Icon Width in case of link override4

If you want to override the default link text, enter the width override here in pixel, otherwise leave this blank for the default size.

Numberoptional
This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.