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

 Actions

Template

Template:Mat/doc

From Dragon Mania Legends (DML) Wiki

< Template:Mat
Documentation subpage
View this documentation's related template:
Template:Mat

Usage

Accepted values for mats are:

1 / Fair
2 / Average
3 / Good
4 / Excellent
5 / Extraordinary

Example(s)

  • {{Mat}} gives: Fair Materials - Fire.png
  • {{Mat|Fire|2}} gives: Average Materials - Fire.png
  • {{Mat|Fire|Average}} gives: Average Materials - Fire.png
  • {{Mat|Fire|3}} gives: Good Materials - Fire.png
  • {{Mat|Fire|Good}} gives: Good Materials - Fire.png
  • {{Mat|Fire|4}} gives: Excellent Materials - Fire.png
  • {{Mat|Fire|Excellent}} gives: Excellent Materials - Fire.png
  • {{Mat|Fire|5}} gives: Extraordinary Materials - Fire.png
  • {{Mat|Fire|Extraordinary}} gives: Extraordinary Materials - Fire.png
  • {{Mat|Legendary|5|20}}{{Mat|Water|1|20}}{{Mat|Divine|4|20}}{{Mat|Metal|3|20}}{{Mat|Light|2|20}}{{Mat|Ancient|5|20}} gives:

Extraordinary Materials - Legendary.pngFair Materials - Water.pngExcellent Materials - Divine.pngGood Materials - Metal.pngAverage Materials - Light.pngExtraordinary Materials - Ancient.png

Fail Case

  • {{Mat|Fire|6}} gives:[[File: 2 Materials - Fire.png|20px]]
  • {{Mat|Fire|Agerage}} gives:[[File: 2 Materials - Agerage.png|20px]] (typing mistake)

Shortcut to display Enchantment Materials icons, in the correct width automatically, so that they appear at about the same height. Has 15px base value for the tallest icon, and adds to that base for images that would normally appear smaller if not adjusted larger; this allows the images to appear to scale proportionally despite having the same base value set. Can be adjusted up to 20px and still appear proportional to one another.

Template parameters

ParameterDescriptionTypeStatus
Element1

The enchantment element to display.

Default
Fire
Example
Water, Earth, Divine
Stringrequired
Rarity2

The Element Rarity (simply count the numbers of points it has).

Default
1
Example
3
Numberrequired
(override, base) sizepx 3

no description

Default
15
Example
20
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.