Difference between revisions of "Template:Bundle savings"

From Team Fortress Wiki
Jump to: navigation, search
Line 163: Line 163:
 
     + {{Item price/core|currency={{{currency|}}}| item=Geisha Boy}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Geisha Boy}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Conniver's Kunai}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Conniver's Kunai}}
     + {{Item price/core|currency={{{currency|}}}| item=Noh Mercy}}
+
     + {{Item price/core|currency={{{currency|}}}| item=Noh Mercy}}))) * 100)round0}}
     + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Koto}}))) * 100)round0}}
+
|japan charity bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Japan Charity Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Humanitarian's Hachimaki}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Benefactor's Kanmur}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Bell}}
 +
     + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Gong}}))) * 100)round0}}
 
  |#default =   
 
  |#default =   
 
}}<noinclude>{{doc begin}}
 
}}<noinclude>{{doc begin}}

Revision as of 03:15, 24 March 2011

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|bundle = polycount pack|currency = USD}} returns Expression error: Unrecognized punctuation character "[".