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

 Actions

Template

Template:ForEachIcon

From Dragon Mania Legends (DML) Wiki

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)


Example(s)

The following icon (files):
Gems Icon.png, Gold Icon.png, Divine (Element) Icon.png

Can be specified as:

|icons=Gems, Gold, Divine (Element)

Which gives: Gems Icon.png Gold Icon.png Divine (Element) Icon.png

Other Examples

This template can also be used (and is used in other templates) like:

  • {{forEachIcon|Ancient Ticket (Fire), Ancient (Element)}} gives Ancient Ticket (Fire) Icon.png Ancient (Element) Icon.png
  • {{forEachIcon|size=26|Gems, Gold, Divine (Element)}} (has spaces, still works) gives Gems Icon.png Gold Icon.png Divine (Element) Icon.png
  • {{forEachIcon|size=26|Gems,Gold,Divine (Element)}} (no spaces, still works) gives Gems Icon.png Gold Icon.png Divine (Element) Icon.png
  • {{forEachIcon| ,,,Divine (Element)}} (too many commas, still works) gives Divine (Element) Icon.png

See Also

  • {{ForEach}}, splits a comma-separated input list into parts and applies the template name provided, to each part.
  • {{ForEachNoTemplate}}, splits a comma-separated list into parts and applies plain-text content before and after each item, if specified.
  • {{ForEachDragon}}, splits a comma-separated list into parts and creates a list of dragons (link then icon) for use in EventBox and other templates.

Accepts a comma separated list of icon names and turns them into icons using {{template|i}}. Is used by templates like EventBox, or DPL3 templates, to turn the values into properly formatted icons. Works for up to 10 comma separated icon names.

Template parameters

ParameterDescriptionTypeStatus
Icon Name1

no description

Example
Gold
Stringrequired
(Override) Sizesize

no description

Default
22
Example
30
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.