Difference between revisions of "Template:Blueprint"

From Team Fortress Wiki
Jump to: navigation, search
(Whoever did this accidentally swapped the Scout primary and secondary lines >_>)
m
 
(34 intermediate revisions by 14 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 = Scout Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Shortstop | result-2 = Force-A-Nature | note = yes}}
 
  | scout secondary = {{Blueprint/core| ingredient-1 = Scout Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Bonk! Atomic Punch | result-2 = Crit-a-Cola | result-3 = Mad Milk | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- 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 | note = yes}}
 
  | 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 | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- Pyro token recipes -->
 
  | pyro primary = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Backburner | result-2 = Degreaser | note = yes}}
 
  | pyro secondary = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Flare Gun | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- 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 | note = yes}}
 
  | demoman secondary = {{Blueprint/core| ingredient-1 = Demoman Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Loch-n-Load | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- 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 | note = yes}}
 
  | 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 | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- Engineer token recipes -->
 
  | engineer primary = {{Blueprint/core| ingredient-1 = Engineer Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Frontier Justice | note = yes}}
 
  | engineer secondary = {{Blueprint/core| ingredient-1 = Engineer Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Wrangler | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- 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 | note = yes}}
 
  | medic secondary = {{Blueprint/core| ingredient-1 = Medic Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Kritzkrieg | note = yes}}
 
  | 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 | note = yes}}
 
 
 
<!-- 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 | note = yes}}
 
  | 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 | note = yes}}
 
  | sniper melee = {{Blueprint/core| ingredient-1 = Sniper Token | ingredient-2 = Melee Token | ingredient-3 = Scrap Metal | result = Tribalman's Shiv | result-2 = Bushwacka | note = yes}}
 
 
 
<!-- 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 | note = yes}}
 
  | spy secondary = {{Blueprint/core| ingredient-1 = Spy Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Ambassador | result-2 = L'Etranger | note = yes}}
 
  | 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 | note = yes}}
 
 
 
  | #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 53: Line 6:
 
       |{{#if:{{{ingredient-5|}}}| ingredient-5 | null}} = {{{ingredient-5|}}}
 
       |{{#if:{{{ingredient-5|}}}| ingredient-5 | null}} = {{{ingredient-5|}}}
 
       |{{#if:{{{ingredient-6|}}}| ingredient-6 | null}} = {{{ingredient-6|}}}
 
       |{{#if:{{{ingredient-6|}}}| ingredient-6 | null}} = {{{ingredient-6|}}}
 +
      |{{#if:{{{ingredient-1-amount|}}}| ingredient-1-amount | null}} = {{{ingredient-1-amount|}}}
 +
      |{{#if:{{{ingredient-2-amount|}}}| ingredient-2-amount | null}} = {{{ingredient-2-amount|}}}
 +
      |{{#if:{{{ingredient-3-amount|}}}| ingredient-3-amount | null}} = {{{ingredient-3-amount|}}}
 +
      |{{#if:{{{ingredient-4-amount|}}}| ingredient-4-amount | null}} = {{{ingredient-4-amount|}}}
 +
      |{{#if:{{{ingredient-5-amount|}}}| ingredient-5-amount | null}} = {{{ingredient-5-amount|}}}
 +
      |{{#if:{{{ingredient-6-amount|}}}| ingredient-6-amount | null}} = {{{ingredient-6-amount|}}}
 
       |{{#if:{{{result|}}}| result | null}} = {{{result|}}}
 
       |{{#if:{{{result|}}}| result | null}} = {{{result|}}}
 
       |{{#if:{{{result-2|}}}| result-2 | null}} = {{{result-2|}}}
 
       |{{#if:{{{result-2|}}}| result-2 | null}} = {{{result-2|}}}
Line 58: 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-6|}}}| result-6 | null}} = {{{result-6|}}}}}
+
       |{{#if:{{{result-6|}}}| result-6 | null}} = {{{result-6|}}}
}}
+
      |{{#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 =
 
}}
 
</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