Difference between revisions of "Template:Blueprint"
Moussekateer (talk | contribs) m (test) |
Moussekateer (talk | contribs) (new implementation) |
||
Line 1: | Line 1: | ||
− | {{#switch: {{lc:{{{autoresult | + | {{#switch: {{lc:{{{autoresult|}}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{!}} | + | <!-- Scout token recipes --> |
− | | | + | | scout primary = {{Blueprint/core| ingredient-1 = Scout Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Bonk! Atomic Punch | result-2 = Crit-a-Cola | result-3 = Mad Milk}} |
− | | | + | | scout secondary = {{Blueprint/core| ingredient-1 = Scout Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Shortstop | result-2 = Force-A-Nature}} |
− | | | + | | scout melee = {{Blueprint/core| ingredient-1 = Scout Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Sandman | result-2 = Holy Mackerel | result-3 = Candy Cane | result-4 = Boston Basher | result-5 = Sun-on-a-Stick | result-6 = Fan O'War}} |
− | | | + | |
− | | | + | <!-- Soldier token recipes --> |
− | | | + | | soldier primary = {{Blueprint/core| ingredient-1 = Soldier Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Direct Hit | result-2 = Black Box | result-3 = Rocket Jumper}} |
− | | | + | | soldier secondary = {{Blueprint/core| ingredient-1 = Soldier Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Buff Banner | result-2 = Gunboats | result-3 = Battalion's Backup | result-4 = Concheror}} |
− | | | + | | soldier melee = {{Blueprint/core| ingredient-1 = Soldier Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Equalizer | result-2 = Pain Train | result-3 = Half-Zatoichi}} |
− | | | + | |
− | | | + | <!-- Pyro token recipes --> |
− | | | + | | pyro primary = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Backburner | result-2 = Degreaser}} |
− | | | + | | pyro secondary = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Flare Gun}} |
− | | | + | | pyro melee = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Axtinguisher | result-2 = Homewrecker | result-3 = Powerjack | result-4 = Back Scratcher | result-5 = Sharpened Volcano Fragment}} |
− | | | + | |
− | | | + | <!-- Demoman token recipes --> |
− | | | + | | demoman primary = {{Blueprint/core| ingredient-1 = Demoman Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Scottish Resistance | result-2 = Chargin' Targe | result-3 = Sticky Jumper}} |
− | | | + | | demoman secondary = {{Blueprint/core| ingredient-1 = Demoman Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Loch-n-Load}} |
− | + | | demoman melee = {{Blueprint/core| ingredient-1 = Demoman Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Eyelander | result-2 = Pain Train | result-3 = Scotsman's Skullcutter | result-4 = Ullapool Caber | result-5 = Claidheamh Mòr | result-6 = Half-Zatoichi}} | |
− | {{ | + | |
− | {{ | + | <!-- Heavy token recipes --> |
− | {{ | + | | heavy primary = {{Blueprint/core| ingredient-1 = Heavy Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Natascha | result-2 = Brass Beast}} |
− | {{ | + | | heavy secondary = {{Blueprint/core| ingredient-1 = Heavy Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Sandvich | result-2 = Dalokohs Bar | result-3 = Buffalo Steak Sandvich}} |
− | {{ | + | | heavy melee = {{Blueprint/core| ingredient-1 = Heavy Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Killing Gloves of Boxing | result-2 = Gloves of Running Urgently | result-3 = Warrior's Spirit | result-4 = Fists of Steel}} |
− | {{ | + | |
− | {{ | + | <!-- Engineer token recipes --> |
− | {{ | + | | engineer primary = {{Blueprint/core| ingredient-1 = Engineer Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Frontier Justice}} |
− | {{ | + | | engineer secondary = {{Blueprint/core| ingredient-1 = Engineer Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Wrangler}} |
− | {{ | + | | engineer melee = {{Blueprint/core| ingredient-1 = Engineer Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Gunslinger | result-2 = Southern Hospitality | result-3 = Jag}} |
− | + | ||
− | + | <!-- Medic token recipes --> | |
− | + | | medic primary = {{Blueprint/core| ingredient-1 = Medic Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Blutsauger | result-2 = Crusader's Crossbow}} | |
− | + | | medic secondary = {{Blueprint/core| ingredient-1 = Medic Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Kritzkrieg}} | |
− | + | | medic melee = {{Blueprint/core| ingredient-1 = Medic Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Übersaw | result-2 = Vita-Saw | result-3 = Amputator}} | |
− | + | ||
+ | <!-- Sniper token recipes --> | ||
+ | | sniper primary = {{Blueprint/core| ingredient-1 = Sniper Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Huntsman | result-2 = Sydney Sleeper}} | ||
+ | | sniper secondary = {{Blueprint/core| ingredient-1 = Sniper Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Jarate | result-2 = Razorback | result-3 = Darwin's Danger Shield}} | ||
+ | | sniper melee = {{Blueprint/core| ingredient-1 = Sniper Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Tribalman's Shiv | result-2 = Bushwacka}} | ||
+ | |||
+ | <!-- Spy token recipes --> | ||
+ | | spy pda = {{Blueprint/core| ingredient-1 = Spy Token | ingredient-2 = PDA Token | ingredient-3 = Scrap Metal | result = Cloak and Dagger | result-2 = Dead Ringer}} | ||
+ | | spy secondary = {{Blueprint/core| ingredient-1 = Spy Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Ambassador | result-2 = L'Etranger}} | ||
+ | | spy melee = {{Blueprint/core| ingredient-1 = Spy Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Your Eternal Reward | result-2 = Conniver's Kunai}} | ||
+ | |||
+ | | #default = {{Blueprint/core | ||
+ | |{{#if:{{{ingredient-1|}}}| ingredient-1 | null}} = {{{ingredient-1|}}} | ||
+ | |{{#if:{{{ingredient-2|}}}| ingredient-2 | null}} = {{{ingredient-2|}}} | ||
+ | |{{#if:{{{ingredient-3|}}}| ingredient-3 | null}} = {{{ingredient-3|}}} | ||
+ | |{{#if:{{{ingredient-4|}}}| ingredient-4 | null}} = {{{ingredient-4|}}} | ||
+ | |{{#if:{{{ingredient-5|}}}| ingredient-5 | null}} = {{{ingredient-5|}}} | ||
+ | |{{#if:{{{ingredient-6|}}}| ingredient-6 | null}} = {{{ingredient-6|}}} | ||
+ | |{{#if:{{{result|}}}| result | null}} = {{{result|}}} | ||
+ | |{{#if:{{{result-2|}}}| result-2 | null}} = {{{result-2|}}} | ||
+ | |{{#if:{{{result-3|}}}| result-3 | null}} = {{{result-3|}}} | ||
+ | |{{#if:{{{result-4|}}}| result-4 | null}} = {{{result-4|}}} | ||
+ | |{{#if:{{{result-5|}}}| result-5 | null}} = {{{result-5|}}} | ||
+ | |{{#if:{{{result-6|}}}| result-6 | null}} = {{{result-6|}}}}} | ||
}} | }} | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Line 126: | Line 80: | ||
===<code>Autoresult</code>=== | ===<code>Autoresult</code>=== | ||
− | Setting <code>Autoresult</code> to | + | Setting <code>Autoresult</code> to 'class slot', for example <code>Autoresult = Soldier primary</code>, will automatically generate the blueprint for that slot with correct slot token, class token and possible results. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Formatting templates|Blueprint]]</noinclude> | [[Category:Formatting templates|Blueprint]]</noinclude> |
Revision as of 04:29, 19 March 2011
Ingredient 1 | Result | |
= |
Usage
{{Blueprint | autoresult = | ingredient-1 = | ingredient-2 = | ingredient-3 = | ingredient-4 = | ingredient-5 = | result = | result-2 = | result-3 = | result-4 = | result-5 = | result-6 = }}
Autoresult
Setting Autoresult
to 'class slot', for example Autoresult = Soldier primary
, will automatically generate the blueprint for that slot with correct slot token, class token and possible results.