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

 Actions

Template

Icon

From Dragon Mania Legends Wiki

[[File:{{{1}}} Icon.png|20px]]

Provides the Icon file by its name as Image. Can also link to an article in the Main or the Category namespace by its icon and/or full name.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Icon name1

Icon file name that should be used (without "Icon" and extension)

Example
Fire Dragon
Stringrequired
Icon widthwidth

If you want to override the default icon size of 20, enter a size (width in px) to display the icon at (without including the letters px)

Default
20
Numbersuggested
Generate a link from the icon?iconlink

If set a link from the icon to [icon name] is generated.

Default
false
Example
true
Booleansuggested
Override Linklink

Generates a link from the icon to {link}. Can only be used on the icon, not combinable with {textlink}.

Default
links to [icon name (without 'icon')]
Example
link=Table of Dragons
Stringsuggested
Generate link text?textlink

Writes the link to the icon name as a text before the icon itself if given. Must also be used if the Category should be visible as text.

Default
false
Example
true
Booleansuggested
Link to Category?category

In combination with the parameters {link} and {textlink} generates a link to an article in the Category namespace by its icon name.

Default
false
Example
|link=1|category=1, |textlink=true|category=true
Booleansuggested

Examples

  • Link to name from Icon: {{icon|Attack|iconlink=true}} Attack Icon.png
  • Same but with different width: {{icon|Breeding Token|iconlink=true|width=30}} Breeding Token Icon.png
  • No link (just icon): {{icon|Bronze League}} Bronze League Icon.png
  • Link to category: {{icon|Attack|category=true}} Attack Icon.png
  • Text with link too, width: {{icon|Breeding Token|textlink=true|width=10}} Breeding Token Breeding Token Icon.png
  • Text, links to category, width: {{icon|Bronze League|category=true|textlink=true|width=10}} Bronze League Bronze League Icon.png
  • Same with standard width: {{icon|Attack|category=true|textlink=true}} Attack Attack Icon.png
  • Link override: {{icon|Attack|link=Sigil System}} Attack Icon.png