Template:Money

From FHX Wiki
Revision as of 22:38, 20 June 2024 by Ryzuhr (talk | contribs)

This is the "Money" template. It should be transcluded in the following format:

{{Money
|value=
|showZeros=
|showSum=
}}

The input value is separated into the 3 different currencies as follow:

pp = Math.floor(value / 10000);
gp = Math.floor(((value - pp) * 10000)) / 100);
cp = value - pp * 10000 - gp * 100;

0 https://cdn.fhxrestoration.com/common/interface/icons/coins_pp.gif0 https://cdn.fhxrestoration.com/common/interface/icons/coins_gp.gif0 coins_cp.gif (0)