Difference between revisions of "Template:Blueprint"

From Team Fortress Wiki
Jump to: navigation, search
(Prove it. So far tests show this is impossible.)
m
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#switch: {{lc:{{{autoresult|}}}}}
+
{{#if: {{{autoresult|}}}|{{dictionary/blueprints/{{lc:{{{autoresult|}}}}}}}|{{Blueprint/core
 
 
<!-- Scout token recipes -->
 
  | scout primary = {{Blueprint/core| ingredient-1 = Class Token - Scout | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Shortstop | result-2 = Force-A-Nature | result-3 = Soda Popper}}
 
  | scout secondary = {{Blueprint/core| ingredient-1 = Class Token - Scout | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Bonk! Atomic Punch | result-2 = Crit-a-Cola | result-3 = Mad Milk | result-4 = Winger}}
 
  | scout melee = {{Blueprint/core| ingredient-1 = Class Token - Scout | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Sandman | result-2 = Holy Mackerel | result-3 = Boston Basher | | result-4 = Candy Cane | result-5 = Fan O'War | result-6 = Three-Rune Blade | result-7 = Atomizer}}
 
 
 
<!-- Soldier token recipes -->
 
  | soldier primary = {{Blueprint/core| ingredient-1 = Class Token - Soldier | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Direct Hit | result-2 = Black Box | result-3 = Rocket Jumper | result-4 = Liberty Launcher}}
 
  | soldier secondary = {{Blueprint/core| ingredient-1 = Class Token - Soldier | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Buff Banner | result-2 = Gunboats | result-3 = Battalion's Backup | result-4 = Concheror | result-5 = Mantreads | result-6 = Reserve Shooter}}
 
  | soldier melee = {{Blueprint/core| ingredient-1 = Class Token - Soldier | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Equalizer | result-2 = Pain Train | result-3 = Half-Zatoichi | result-4 = Disciplinary Action | result-5 = Market Gardener}}
 
 
 
<!-- Pyro token recipes -->
 
  | pyro primary = {{Blueprint/core| ingredient-1 = Class Token - Pyro | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Backburner | result-2 = Degreaser}}
 
  | pyro secondary = {{Blueprint/core| ingredient-1 = Class Token - Pyro | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Flare Gun | result-2 = Detonator}}
 
  | pyro melee = {{Blueprint/core| ingredient-1 = Class Token - Pyro | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Axtinguisher | result-2 = Homewrecker | result-3 = Back Scratcher | result-4 = Powerjack | result-5 = Maul | result-6 = Postal Pummeler}}
 
 
 
<!-- Demoman token recipes -->
 
  | demoman primary = {{Blueprint/core| ingredient-1 = Class Token - Demoman | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Scottish Resistance | result-2 = Chargin' Targe | result-3 = Sticky Jumper | result-4 = Splendid Screen}}
 
  | demoman secondary = {{Blueprint/core| ingredient-1 = Class Token - Demoman | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Loch-n-Load | result-2 = Ali Baba's Wee Booties}}
 
  | demoman melee = {{Blueprint/core| ingredient-1 = Class Token - Demoman | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Eyelander | result-2 = Scotsman's Skullcutter | result-3 = Ullapool Caber | result-4 = Claidheamh Mòr | result-5 = Pain Train | result-6 = Half-Zatoichi | result-7 = Persian Persuader | result-8 = Nessie's Nine Iron}}
 
 
 
<!-- Heavy token recipes -->
 
  | heavy primary = {{Blueprint/core| ingredient-1 = Class Token - Heavy | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Natascha | result-2 = Brass Beast | result-3 = Tomislav}}
 
  | heavy secondary = {{Blueprint/core| ingredient-1 = Class Token - Heavy | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Sandvich | result-2 = Dalokohs Bar | result-3 = Buffalo Steak Sandvich | result-4 = Family Business}}
 
  | heavy melee = {{Blueprint/core| ingredient-1 = Class Token - Heavy | ingredient-2 = Slot Token - Melee | 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 | result-5 = Eviction Notice}}
 
 
 
<!-- Engineer token recipes -->
 
  | engineer primary = {{Blueprint/core| ingredient-1 = Class Token - Engineer | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Frontier Justice}}
 
  | engineer secondary = {{Blueprint/core| ingredient-1 = Class Token - Engineer | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Wrangler}}
 
  | engineer melee = {{Blueprint/core| ingredient-1 = Class Token - Engineer | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Gunslinger | result-2 = Southern Hospitality | result-3 = Jag}}
 
 
 
<!-- Medic token recipes -->
 
  | medic primary = {{Blueprint/core| ingredient-1 = Class Token - Medic | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Blutsauger | result-2 = Crusader's Crossbow | result-3 = Overdose}}
 
  | medic secondary = {{Blueprint/core| ingredient-1 = Class Token - Medic | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Kritzkrieg | result-2 = Quick-Fix}}
 
  | medic melee = {{Blueprint/core| ingredient-1 = Class Token - Medic | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Übersaw | result-2 = Vita-Saw | result-3 = Amputator | result-4 = Solemn Vow}}
 
 
 
<!-- Sniper token recipes -->
 
  | sniper primary = {{Blueprint/core| ingredient-1 = Class Token - Sniper | ingredient-2 = Slot Token - Primary | ingredient-3 = Scrap Metal | result = Huntsman | result-2 = Sydney Sleeper | result-3 = Bazaar Bargain}}
 
  | sniper secondary = {{Blueprint/core| ingredient-1 = Class Token - Sniper | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Jarate | result-2 = Razorback | result-3 = Darwin's Danger Shield}}
 
  | sniper melee = {{Blueprint/core| ingredient-1 = Class Token - Sniper | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Tribalman's Shiv | result-2 = Bushwacka | result-3 = Shahanshah}}
 
 
 
<!-- Spy token recipes -->
 
  | spy pda
 
  | spy pda2 = {{Blueprint/core| ingredient-1 = Class Token - Spy | ingredient-2 = Slot Token - PDA2 | ingredient-3 = Scrap Metal | result = Cloak and Dagger | result-2 = Dead Ringer}}
 
  | spy secondary = {{Blueprint/core| ingredient-1 = Class Token - Spy | ingredient-2 = Slot Token - Secondary | ingredient-3 = Scrap Metal | result = Ambassador | result-2 = L'Etranger | result-3 = Enforcer}}
 
  | spy melee = {{Blueprint/core| ingredient-1 = Class Token - Spy | ingredient-2 = Slot Token - Melee | ingredient-3 = Scrap Metal | result = Your Eternal Reward | result-2 = Conniver's Kunai | result-3 = Big Earner}}
 
 
 
  | #default = {{Blueprint/core
 
 
       |{{#if:{{{ingredient-1|}}}| ingredient-1 | null}} = {{{ingredient-1|}}}
 
       |{{#if:{{{ingredient-1|}}}| ingredient-1 | null}} = {{{ingredient-1|}}}
 
       |{{#if:{{{ingredient-2|}}}| ingredient-2 | null}} = {{{ingredient-2|}}}
 
       |{{#if:{{{ingredient-2|}}}| ingredient-2 | null}} = {{{ingredient-2|}}}
Line 65: Line 17:
 
       |{{#if:{{{result-4|}}}| result-4 | null}} = {{{result-4|}}}
 
       |{{#if:{{{result-4|}}}| result-4 | null}} = {{{result-4|}}}
 
       |{{#if:{{{result-5|}}}| result-5 | null}} = {{{result-5|}}}
 
       |{{#if:{{{result-5|}}}| result-5 | null}} = {{{result-5|}}}
       |{{#if:{{{result-5|}}}| result-5 | null}} = {{{result-6|}}}
+
       |{{#if:{{{result-6|}}}| result-6 | null}} = {{{result-6|}}}
       |{{#if:{{{result-6|}}}| result-6 | null}} = {{{result-7|}}}}}
+
       |{{#if:{{{result-7|}}}| result-7 | null}} = {{{result-7|}}}}}
}}<noinclude>
+
}}<noinclude>{{Documentation}}</noinclude>
== Usage ==
 
<pre>
 
{{Blueprint
 
| autoresult =
 
| ingredient-1 =
 
| ingredient-2 =
 
| ingredient-3 =
 
| ingredient-4 =
 
| ingredient-5 =
 
| result =
 
| result-2 =
 
| result-3 =
 
| result-4 =
 
| result-5 =
 
| result-6 =
 
| result-7 =
 
}}
 
</pre>
 
 
 
===<code>autoresult</code>===
 
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>
 

Latest revision as of 15:03, 7 February 2023

Ingredient 1 Result
Item icon Unknown.png = Item icon Unknown.png

Template documentation [view] [edit] [history] [purge]

Arguments

{{Blueprint
| autoresult =
| ingredient-1 =
| ingredient-1-amount =
| ingredient-2 =
| ingredient-2-amount =
| ingredient-3 =
| ingredient-3-amount =
| ingredient-4 =
| ingredient-4-amount =
| ingredient-5 =
| ingredient-5-amount =
| ingredient-6 =
| ingredient-6-amount =
| result =
| result-2 =
| result-3 =
| result-4 =
| result-5 =
| result-6 =
| result-7 =
}}

autoresult

Setting autoresult to a "class slot", for example autoresult = Soldier primary, will automatically generate the blueprint for that slot with the correct slot token, class token, and possible results.

You can add automatic crafting recipes to {{Dictionary/blueprints}}.

Examples

{{Blueprint
| ingredient-1 = Kritzkrieg
| ingredient-2 = Bonk! Atomic Punch
| result = Crit-a-Cola
}}

produces

Kritzkrieg Bonk! Atomic Punch Crit-a-Cola
Item icon Kritzkrieg.png + Item icon Bonk! Atomic Punch.png = Item icon Crit-a-Cola.png
{{Blueprint
| autoresult = Scout secondary
}}

produces

Class Token - Scout Slot Token - Secondary Scrap Metal Possible Results
Item icon Class Token - Scout.png + Item icon Slot Token - Secondary.png + Item icon Scrap Metal.png =
Item icon Bonk! Atomic Punch.png Item icon Crit-a-Cola.png Item icon Mad Milk.png Item icon Winger.png
Item icon Pretty Boy's Pocket Pistol.png Item icon Flying Guillotine.png
{{Blueprint
| ingredient-1 = Reclaimed Metal
| ingredient-1-amount = 2
| ingredient-2 = Flare Gun
| result = Detonator
}}

produces

Reclaimed Metal Flare Gun Detonator
Item icon Reclaimed Metal.pngx2 + Item icon Flare Gun.png = Item icon Detonator.png
{{Blueprint/core
| setname = special delivery
| ingredient-1 = Refined Metal
| ingredient-1-amount = 4
| ingredient-2 = Shortstop
| ingredient-2-2 = Mad Milk
| ingredient-2-3 = Holy Mackerel
| result = Milkman
}}

produces

Refined Metal Special Delivery weapon Milkman
Item icon Refined Metal.pngx4 + Item icon Shortstop.pngItem icon Mad Milk.pngItem icon Holy Mackerel.png = Item icon Milkman.png
{{Blueprint/core
| ingredient-1 = Refined Metal
| ingredient-1-amount = 4
| ingredient-2 = Baby Face's Blaster
| ingredient-2-2 = Pretty Boy's Pocket Pistol
| result = Fed-Fightin' Fedora
| result-2 = Dillinger's Duffel
}}

produces

Refined Metal Baby Face's Blaster Possible Results
Item icon Refined Metal.pngx4 + Item icon Baby Face's Blaster.png =
Item icon Fed-Fightin' Fedora.png Item icon Dillinger's Duffel.png