Difference between revisions of "Template:Bundle savings"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 170: Line 170:
 
     + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Bell}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Bell}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Gong}}))) * 100)round0}}
 
     + {{Item price/core|currency={{{currency|}}}| item=Noise Maker - Gong}}))) * 100)round0}}
 +
|the uber update bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=The Uber Update Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Detonator}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Tomislav}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Family Business}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Eviction Notice}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Capo's Capper}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Enforcer}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Big Earner}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Made Man}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Cosa Nostra Cap}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Soda Popper}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Winger}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Atomizer}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Bonk Boy}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Splendid Screen}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Ali Baba's Wee Booties}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Persian Persuader}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Sultan's Ceremonial}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Bazaar Bargain}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Shahanshah}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Desert Marauder}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Liberty Launcher}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Reserve Shooter}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Market Gardener}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Jumper's Jeepcap}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Mantreads}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Armored Authority}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Fancy Dress Uniform}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Overdose}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Quick-Fix}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Solemn Vow}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Pocket Medic}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Schadenfruede}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Meet the Medic (taunt)}}))) * 100)round0}}
 +
|mobster monday bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Mobster Monday Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Tomislav}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Family Business}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Eviction Notice}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Capo's Capper}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Enforcer}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Big Earner}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Made Man}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Cosa Nostra Cap}}))) * 100)round0}}
 +
|timbuk-tuesday bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Timbuk-Tuesday Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Soda Popper}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Winger}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Atomizer}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Bonk Boy}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Splendid Screen}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Ali Baba's Wee Booties}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Persian Persuader}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Sultan's Ceremonial}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Bazaar Bargain}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Shahanshah}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Desert Marauder}}))) * 100)round0}}
 +
|world war wednesday bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=World War Wednesday Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Liberty Launcher}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Reserve Shooter}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Market Gardener}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Jumper's Jeepcap}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Mantreads}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Armored Authority}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Fancy Dress Uniform}}))) * 100)round0}}
 +
|meet the medic! bundle = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Meet The Medic! Bundle}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Overdose}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Quick-Fix}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Solemn Vow}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Pocket Medic}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Meet the Medic (taunt)}}))) * 100)round0}}
 +
|scout starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Scout Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Force-A-Nature}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Crit-a-Cola}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Sandman}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Batter's Helmet}}))) * 100)round0}}
 +
|soldier starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Soldier Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Buff Banner}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Equalizer}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Tyrant's Helm}}))) * 100)round0}}
 +
|pyro starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Pyro Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Flare Gun}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Axtinguisher}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Respectless Rubber Glove}}))) * 100)round0}}
 +
|demoman starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Demoman Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Chargin' Targe}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Eyelander}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Glengarry Bonnet}}))) * 100)round0}}
 +
|heavy starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Heavy Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Natascha}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Sandvich}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Football Helmet}}))) * 100)round0}}
 +
|engineer starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Engineer Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Frontier Justice}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Gunslinger}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Texas Ten Gallon}}))) * 100)round0}}
 +
|medic starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Medic Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Kritzkrieg}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Übersaw}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Prussian Pickelhaube}}))) * 100)round0}}
 +
|sniper starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Sniper Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Huntsman}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Jarate}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Professional's Panama}}))) * 100)round0}}
 +
|spy starter pack = {{#expr: ((1
 +
  - ({{Item price/core|currency={{{currency|}}}| item=Spy Starter Pack}}
 +
    /({{Item price/core|currency={{{currency|}}}| item=Ambassador}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Dead Ringer}}
 +
    + {{Item price/core|currency={{{currency|}}}| item=Fancy Fedora}}))) * 100)round0}}
 
  |#default =   
 
  |#default =   
 
}}<noinclude>{{doc begin}}
 
}}<noinclude>{{doc begin}}

Revision as of 15:43, 24 June 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 "[".