Template:Bundle savings

From Team Fortress Wiki
Revision as of 11:02, 26 February 2011 by KillerKooK (talk | contribs) (Created page with '{{#switch:{{uc:{{{currency|}}}}} |EUR |€ |USD |$ = {{#switch:{{lc:{{{bundle|}}}}} |polycount pack = {{#expr: ((1 - ({{Item price/core|currency=USD| item=Polycount …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Documentation for Bundle savings

This is a template to display the savings of a bundle as a percent number. The prices themselves are defined in the template {{Item price/core}}. This template adds the total sum of individual price of the items then subtracted by the price of the bundle then divided by total sum of individual price.
((sum of item prices - bundle price) / sum of item prices) * 100 = percent of bundle savings

Usage

  • {{bundle savings|bundle|currency}}
    • bundle name = polycount pack, the special delivery, the tank buster, the gas jockey's gear, the croc-o-style kit, the saharan spy, noise maker bundle, a bargaining manne's bundle of bargains, winter update pack, the expert's ordnance, the hibernating bear, the medieval medic, map stamps collection, box of fancy hats, pile of nasty weapons
    • currency type = EUR, €, USD, $, GBP, £
  • {{bundle savings|polycount pack|USD}} returns Expression error: Unrecognized punctuation character "[".