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

 Actions

Template

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)

Important Icon.png
 
Important: Icons should not be resized haphazardly, these are standard sizes in most places for a reason. Wiki staff know when it is appropriate to adjust icon size.

No Links:

  • Icon-only, no link: {{di|Metal|in}} Metal Dragon Icon.png - (icon only, no link to dragon, no resizing)
  • Icon + text, no link: {{di|Earth|n}} Void Dragon Icon.png Void Dragon

Links:

  • Icon-only: {{di|Metal|i}} Metal Dragon Icon.png
  • Icon-only, resized: {{di|Metal|i|30}} Metal Dragon Icon.png
  • Icon first: {{di|Void|2}} Void Dragon Icon.png Void Dragon
  • Icon first, resized: {{di|Void|2|30}} Void Dragon Icon.png Void Dragon
  • Icon last: {{di|Earth}} Earth Dragon Earth Dragon Icon.png
  • Icon last: {{di|Earth|1|30}} Earth Dragon Earth Dragon Icon.png
    • (The 1 is redundant unless size is needed)
  • Icon last, resized (alternate): {{di|Light|px=30}} Light Dragon Light Dragon Icon.png
Important Icon.png
 
For the Dragon Codex or other places that require a round icon with text below, use the {{dci}} template instead.

See Also

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}}.

Template parameters

ParameterDescriptionTypeStatus
(Dragon name) 11

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

Example
Fairy
Stringrequired
(Display option) 22

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, places text in 1st position, icon 2nd)
Example
i
Stringoptional
(Override) width3 px

Override the width by entering a number.

Default
22
Example
30
Numberoptional
(Optional) codexcodex

If codex layout should be used, specify a value for this parameter. ONLY used inside other templates. See full template documentation page for details.

Example
y
Booleanoptional


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.