Template:ForEachDragon
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)
An example of usage is on Bottomless Dungeon event pages, |icons=
values generating the result displayed beside the "Special Dungeon" label in the side infobox.
The following Dragon Icon (files):
Fire Dragon.png, Wind Dragon.png, Water Dragon.png
Can be specified as:
|icons=Fire, Wind, Water
Which gives:
Fire Dragon
Wind Dragon
Water Dragon
Other Example(s)
This template can also be used (and is used in other templates) like:
{{forEachDragon|Fire, Wind, Earth}}
(has spaces, still works) gives:
Fire Dragon
Wind Dragon
Earth Dragon{{forEachDragon|Fire,Wind,Earth,Energy}}
(no spaces, still works) gives:
Fire Dragon
Wind Dragon
Earth Dragon
Energy Dragon{{forEachDragon| ,Wind,Earth,Energy}}
(starts with comma, still works) gives:
Wind Dragon
Earth Dragon
Energy Dragon
See Also
{{ForEach}}
, splits a comma-separated input list into parts and applies the template name provided, to each part.{{ForEachIcon}}
, accepts a comma separated list of icon names and turns them into icons using{{i}}
.{{ForEachNoTemplate}}
, splits a comma-separated list into parts and applies plain-text content before and after each item, if specified.
Splits a comma-separated list into parts and creates a list of dragons (link then icon) for use in EventBox and other templates. Works for up to 10 comma separated icon names.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Dragon names (comma separated, no "Dragon" or "Dragon Icon.png") | 1 | no description
| String | required |
(Override) icon size | size | no description
| Number | optional |