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

 Actions

Template

Template:ValSell/doc

From Dragon Mania Legends (DML) Wiki

< Template:ValSell
Documentation subpage
View this documentation's related template:
Template:ValSell

Example(s)

  • {{#expr:7 * 0.25}} vs {{ValSell|7}} gives:

1.75 vs 1

  • {{#expr:90 * 0.25}} vs {{ValSell|90}} gives:

22.5 vs 22

50,000

  • {{ValSell|50|tokens}} (Sword Sculpture Dungeon Decoration) gives:

12

6,250

See Also

  • {{valXP}}, a similar template but for XP values.
  • Data templates, for other templates that calculate or do stuff with data.

Calculates the selling value (in Gold), rounded down to the nearest integer, of a building or decoration based on its "gold", "tokens", or "gems" cost specified. Few standard items deviate from this formula.

Template parameters

ParameterDescriptionTypeStatus
(Cost) 11

Enter the item cost.

Stringrequired
(Override cost type) 22

To override cost type, set a value.

Suggested values
tokens gems
Default
(empty = Gold)
Unknownoptional
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.