Template:Di
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)
No Links:
- Icon-only, no link:
{{di|Metal|in}}
- (icon only, no link to dragon, no resizing) - Icon + text, no link:
{{di|Earth|n}}
Void Dragon
Links:
- Icon-only:
{{di|Metal|i}}
- Icon-only, resized:
{{di|Metal|i|30}}
- Icon first:
{{di|Void|2}}
Void Dragon - Icon first, resized:
{{di|Void|2|30}}
Void Dragon - Icon last:
{{di|Earth}}
Earth Dragon - Icon last:
{{di|Earth|1|30}}
Earth Dragon- (The 1 is redundant unless size is needed)
- Icon last, resized (alternate):
{{di|Light|px=30}}
Light Dragon
{{dci}}
template instead.See Also
{{bi}}
, the Boss and Clan Dragon version of this template, since their names use a different convention.{{dci}}
, for codex entries or rounded Dragon icons with the name below (also used for Dragonmaster Pass Events).{{bci}}
, for codex entries or rounded icons for Boss or Clan Dragons with the name below (also used for Dragonmaster Pass Events).- Image link templates, for other templates that display images (and images with links).
Inserts a dragon icon (di) either before or after a text link to its dragon page, or just as an icon linked to its dragon page. Icons have a default size of 22px for uniformity. To insert icon and text without a link to the dragon page, use "n". Syntax examples: {{di|Earth|1}}, {{di|Fire|2|25}}, {{di|Metal|i|30}}, {{di|Void}}, {{di|Void|i}}, {{di|Earth|n}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
(Dragon name) 1 | 1 | Add the Dragon's name without the word "Dragon"
| String | required |
(Display option) 2 | 2 | Choose the text placement. Allowed values: 1, 2, i, n, in, (none). 1=text first; 2=text second; i=icon-only+link; n=text 2nd but no link; in=icon-only, no link.
| String | optional |
(Override) width | 3 px | Override the width by entering a number.
| Number | optional |
(Optional) codex | codex | If codex layout should be used, specify a value for this parameter. ONLY used inside other templates. See full template documentation page for details.
| Boolean | optional |