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

 Actions

Template

Di

From Dragon Mania Legends (DML) Wiki

[[{{{1}}} Dragon]] [[File:{{{1}}} Dragon Icon.png|22 px|link={{{1}}} Dragon]]

Inserts a dragon icon (di) either after or before a text link to its dragon page, or just as an icon linked to its dragon page. Icons have a default size of 22px. 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|40}}, {{di|Void}}, {{di|Void|i}}, {{di|Earth|n}}

Template parameters

ParameterDescriptionTypeStatus
Dragon name (without the word 'Dragon')1

Add the Dragon's name without the word "Dragon"

Example
Fairy
Stringrequired
Text Placement2

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.

Default
(none, which places text in 1st position, icon 2nd)
Example
i
Stringsuggested
Override Width (number) DELETE if not using3

Add the width in pixels without including "px" or "pixels"

Default
22
Example
30
Unknownoptional


Tests: (Note: Icons should not be resized haphazardly, these are standard sizes in most places for a reason).

{{di|Earth|1}} Earth Dragon Earth Dragon Icon.png - (text first, link to dragon, 1 is redundant value unless size is needed)
{{di|Earth}} Earth Dragon Earth Dragon Icon.png - (shorter equivalent to above, no resizing)
{{di|Light||30}} Light Dragon Light Dragon Icon.png - (text first, link to dragon, image resized)
{{di|Light|px=30}} Light Dragon Light Dragon Icon.png - (text first, link to dragon, image resized in second place)
{{di|Void|2}} Void Dragon Icon.png Void Dragon - (icon first, link to dragon, no resizing)
{{di|Void|2|40}} Void Dragon Icon.png Void Dragon - (icon first, link to dragon, image resized)
{{di|Earth|n|40}} Void Dragon Icon.png Void Dragon - (icon first, no link to dragon on either image or text)
{{di|Metal|i}} Metal Dragon Icon.png - (icon only, link to dragon, no resizing)
{{di|Metal|i|40}} Metal Dragon Icon.png - (icon only, link to dragon, resized)
{{di|Metal|in}} Metal Dragon Icon.png - (icon only, no link to dragon, no resizing)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.