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}}
Parameter | Description | Type | Status | |
---|---|---|---|---|
Dragon name (without the word 'Dragon') | 1 | Add the Dragon's name without the word "Dragon"
| String | required |
Text Placement | 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 | suggested |
Override Width (number) DELETE if not using | 3 | Add the width in pixels without including "px" or "pixels"
| Unknown | optional |
Tests: (Note: Icons should not be resized haphazardly, these are standard sizes in most places for a reason).
{{di|Earth|1}}
Earth Dragon- (text first, link to dragon, 1 is redundant value unless size is needed)
{{di|Earth}}
Earth Dragon- (shorter equivalent to above, no resizing)
{{di|Light||30}}
Light Dragon- (text first, link to dragon, image resized)
{{di|Light|px=30}}
Light Dragon- (text first, link to dragon, image resized in second place)
{{di|Void|2}}
Void Dragon - (icon first, link to dragon, no resizing)
{{di|Void|2|40}}
Void Dragon - (icon first, link to dragon, image resized)
{{di|Earth|n|40}}
Void Dragon - (icon first, no link to dragon on either image or text)
{{di|Metal|i}}
- (icon only, link to dragon, no resizing)
{{di|Metal|i|40}}
- (icon only, link to dragon, resized)
{{di|Metal|in}}
- (icon only, no link to dragon, no resizing)