Difference between revisions of "Template:Bundle savings"

From Team Fortress Wiki
Jump to: navigation, search
m (That pack is no longer for sale.)
 
(5 intermediate revisions by one other user not shown)
Line 197: Line 197:
 
     + {{Item price/core|currency={{{currency|}}}| item=Jumper's Jeepcap}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Jumper's Jeepcap}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Mantreads}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Mantreads}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Disciplinary Action}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Armored Authority}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Armored Authority}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Fancy Dress Uniform}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Fancy Dress Uniform}}
Line 203: Line 204:
 
     + {{Item price/core|currency={{{currency|}}}| item=Solemn Vow}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Solemn Vow}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Pocket Medic}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Pocket Medic}}
     + {{Item price/core|currency={{{currency|}}}| item=Schadenfruede}}
+
     + {{Item price/core|currency={{{currency|}}}| item=Schadenfreude}}
     + {{Item price/core|currency={{{currency|}}}| item=Meet the Medic (taunt)}}))) * 100)round0}}
+
     + {{Item price/core|currency={{{currency|}}}| item=Meet The Medic (taunt)}}))) * 100)round0}}
 
  |mobster monday bundle = {{#expr: ((1  
 
  |mobster monday bundle = {{#expr: ((1  
 
   - ({{Item price/core|currency={{{currency|}}}| item=Mobster Monday Bundle}}
 
   - ({{Item price/core|currency={{{currency|}}}| item=Mobster Monday Bundle}}
Line 235: Line 236:
 
     + {{Item price/core|currency={{{currency|}}}| item=Jumper's Jeepcap}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Jumper's Jeepcap}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Mantreads}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Mantreads}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Disciplinary Action}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Armored Authority}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Armored Authority}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Fancy Dress Uniform}}))) * 100)round0}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Fancy Dress Uniform}}))) * 100)round0}}
Line 243: Line 245:
 
     + {{Item price/core|currency={{{currency|}}}| item=Solemn Vow}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Solemn Vow}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Pocket Medic}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Pocket Medic}}
     + {{Item price/core|currency={{{currency|}}}| item=Meet the Medic (taunt)}}))) * 100)round0}}
+
     + {{Item price/core|currency={{{currency|}}}| item=Meet The Medic (taunt)}}))) * 100)round0}}
 
  |scout starter pack = {{#expr: ((1  
 
  |scout starter pack = {{#expr: ((1  
 
   - ({{Item price/core|currency={{{currency|}}}| item=Scout Starter Pack}}
 
   - ({{Item price/core|currency={{{currency|}}}| item=Scout Starter Pack}}
Line 290: Line 292:
 
     + {{Item price/core|currency={{{currency|}}}| item=Dead Ringer}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Dead Ringer}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Fancy Fedora}}))) * 100)round0}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Fancy Fedora}}))) * 100)round0}}
 +
|summer sun bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Summer Sun Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Lucky No. 42}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Flip-Flops}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Summer Hat}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Fireworks}}))) * 100)round0}}
 
  |#default =   
 
  |#default =   
 
}}<noinclude>{{doc begin}}
 
}}<noinclude>{{doc begin}}
Line 299: Line 307:
 
** 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
 
** 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, £
 
** currency type = EUR, €, USD, $, GBP, £
*<code><nowiki>{{Bundle savings|bundle = polycount pack|currency = USD}}</nowiki></code> returns {{Bundle savings|bundle = polycount pack|currency = USD}}
+
*<code><nowiki>{{Bundle savings|bundle = world war wednesday bundle|currency = USD}}</nowiki></code> returns {{Bundle savings|bundle = world war wednesday bundle|currency = EUR}}
  
 
[[Category:Templates|Bundle Savings]]
 
[[Category:Templates|Bundle Savings]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:08, 24 February 2014

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 = world war wednesday bundle|currency = USD}} returns -39