Difference between revisions of "Template:Blueprint"

From Team Fortress Wiki
Jump to: navigation, search
m (let's C?)
m
 
(43 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{#switch: {{lc:{{{autoresult}}}}}
+
{{#if: {{{autoresult|}}}|{{dictionary/blueprints/{{lc:{{{autoresult|}}}}}}}|{{Blueprint/core
|yes
+
      |{{#if:{{{ingredient-1|}}}| ingredient-1 | null}} = {{{ingredient-1|}}}
|true
+
      |{{#if:{{{ingredient-2|}}}| ingredient-2 | null}} = {{{ingredient-2|}}}
|y =
+
      |{{#if:{{{ingredient-3|}}}| ingredient-3 | null}} = {{{ingredient-3|}}}
{{{!}} class="wikitable" style="font-size:90%; text-align:center;" width="auto"
+
      |{{#if:{{{ingredient-4|}}}| ingredient-4 | null}} = {{{ingredient-4|}}}
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-1|}}}|[[Token#Tokens{{if lang}}|{{Item name|{{lc:{{{ingredient-1}}}}}}}]]|Ingredient 1}}
+
      |{{#if:{{{ingredient-5|}}}| ingredient-5 | null}} = {{{ingredient-5|}}}
{{!}}
+
      |{{#if:{{{ingredient-6|}}}| ingredient-6 | null}} = {{{ingredient-6|}}}
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-2|}}}|[[Token#Tokens{{if lang}}|{{Item name|{{lc:{{{ingredient-2}}}}}}}]]|Ingredient 2}}
+
      |{{#if:{{{ingredient-1-amount|}}}| ingredient-1-amount | null}} = {{{ingredient-1-amount|}}}
{{!}}
+
      |{{#if:{{{ingredient-2-amount|}}}| ingredient-2-amount | null}} = {{{ingredient-2-amount|}}}
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-3|}}}|[[Token#Tokens{{if lang}}|{{Item name|{{lc:{{{ingredient-3}}}}}}}]]|Ingredient 3}}
+
      |{{#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|}}}
{{!}} style="background-color: #FFDD99;" {{!}} {{Lang
+
      |{{#if:{{{ingredient-6-amount|}}}| ingredient-6-amount | null}} = {{{ingredient-6-amount|}}}
  | ar = النتائج المحتملة
+
      |{{#if:{{{result|}}}| result | null}} = {{{result|}}}
  | de = Mögliche Ergebnisse
+
      |{{#if:{{{result-2|}}}| result-2 | null}} = {{{result-2|}}}
  | en = Possible Results
+
      |{{#if:{{{result-3|}}}| result-3 | null}} = {{{result-3|}}}
  | es = Resultados Posibles
+
      |{{#if:{{{result-4|}}}| result-4 | null}} = {{{result-4|}}}
  | hu = Lehetséges eredmény
+
      |{{#if:{{{result-5|}}}| result-5 | null}} = {{{result-5|}}}
  | fi = Mahdolliset lopputulokset
+
      |{{#if:{{{result-6|}}}| result-6 | null}} = {{{result-6|}}}
  | fr = Résultats Possibles
+
      |{{#if:{{{result-7|}}}| result-7 | null}} = {{{result-7|}}}}}
  | it = Possibile Risultato
+
}}<noinclude>{{Documentation}}</noinclude>
  | ko = 가능한 결과물
 
  | nl = Mogelijke Resultaten
 
  | no = Mulige Resultater
 
  | pl = Mozliwe rezultaty
 
  | pt = Resultados Possíveis
 
  | pt-br = Resultados Possíveis
 
  | ru = Возможные результаты
 
  | sv = Möjliga Resultat
 
  | zh-hant = 可能的結果
 
  }}
 
{{!}}-
 
{{!}} [[Image:Item icon {{lc:{{{ingredient-1}}}}}.png|text-bottom|100x100px|link={{{ingredient-1|}}}{{if lang}}]]
 
{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{lc:{{{ingredient-2}}}}}.png|text-bottom|100x100px|link={{{ingredient-2|}}}{{if lang}}]]
 
{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{lc:{{{ingredient-3}}}}}.png|text-bottom|100x100px|link={{{ingredient-3|}}}{{if lang}}]]
 
{{!}} {{TF2B|text==|size=65px|color=#292625}}
 
{{!}} {{Blueprint/core|classtoken={{{ingredient-1}}}|slottoken={{{ingredient-2}}}|ingredient-3={{{ingredient-3}}}}}
 
{{!}}}
 
{{hatnote|1={{lang
 
| en = '''Note''': this is a generic blueprint, and using it will produce only one of the items listed as 'possible results'.
 
| fr = '''Note''': Il s'agit de la combinaison générique, l'utiliser résultera en la fabrication d'un seul des objets indiqués comme 'résultats possibles'.
 
| es = '''Nota''': Ésto es un plano genérico, se utiliza para obtener alguno de los objetos mostrados en 'Posibles Resultados'.
 
}}
 
}}
 
| #default =
 
{{{!}} class="wikitable" style="font-size:90%; text-align:center;" width="auto"
 
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-1|}}}|[[{{{ingredient-1}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-1}}}}}}}]]|Ingredient 1}}
 
{{!}}
 
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-2|}}}|[[{{{ingredient-2}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-2}}}}}}}]]|Ingredient 2}}
 
{{!}}
 
{{#if: {{{ingredient-3|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-3|}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-3}}}}}}}]]
 
{{!}}
 
{{#if: {{{ingredient-4|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-4|}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-4}}}}}}}]]
 
{{!}}
 
{{#if: {{{ingredient-5|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-5|}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-5}}}}}}}]]
 
{{!}}}}}}}}
 
{{!}} style="background-color: #FFDD99;" {{!}} {{#if: {{{result-2|}}}|{{Lang
 
  | ar = النتائج المحتملة
 
  | de = Mögliche Ergebnisse
 
  | en = Possible Results
 
  | es = Resultados Posibles
 
  | hu = Lehetséges eredmény
 
  | fi = Mahdolliset lopputulokset
 
  | fr = Résultats Possibles
 
  | it = Possibile Risultato
 
  | ko = 가능한 결과물
 
  | nl = Mogelijke Resultaten
 
  | no = Mulige Resultater
 
  | pl = Mozliwe rezultaty
 
  | pt = Resultados Possíveis
 
  | pt-br = Resultados Possíveis
 
  | ru = Возможные результаты
 
  | sv = Möjliga Resultat
 
  | zh-hant = 可能的結果
 
}}|{{#if:{{{result|}}}|[[{{{result}}}{{if lang}}|{{Item name|{{lc:{{{result}}}}}}}]]|Result}}}}
 
{{!}}-
 
{{!}} [[Image:Item icon {{{ingredient-1|Unknown}}}.png|text-bottom|100x100px|link={{{ingredient-1|}}}{{if lang}}]]{{#if: {{{ingredient-1-amount|}}}|{{TF2B|text=x{{{ingredient-1-amount}}}|size=22px|color=#292625}}}}
 
{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-2|Unknown}}}.png|text-bottom|100x100px|link={{{ingredient-2|}}}{{if lang}}]]{{#if: {{{ingredient-2-amount|}}}|{{TF2B|text=x{{{ingredient-2-amount}}}|size=22px|color=#292625}}}}
 
{{#if: {{{ingredient-3|}}} |{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-3|}}}.png|text-bottom|100x100px|link={{{ingredient-3|}}}{{if lang}}]]{{#if: {{{ingredient-3-amount|}}}|{{TF2B|text=x{{{ingredient-3-amount}}}|size=22px|color=#292625}}}}
 
{{#if: {{{ingredient-4|}}} |{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-4|}}}.png|text-bottom|100x100px|link={{{ingredient-4|}}}{{if lang}}]]{{#if: {{{ingredient-4-amount|}}}|{{TF2B|text=x{{{ingredient-4-amount}}}|size=22px|color=#292625}}}}
 
{{#if: {{{ingredient-5|}}} |{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-5|}}}.png|text-bottom|100x100px|link={{{ingredient-5|}}}{{if lang}}]]{{#if: {{{ingredient-5-amount|}}}|{{TF2B|text=x{{{ingredient-5-amount}}}|size=22px|color=#292625}}}}}}}}}}
 
{{!}} {{TF2B|text==|size=65px|color=#292625}}
 
{{!}} {{#if: {{{result-2|}}}|
 
{{{!}} cellpadding="0" cellspacing="0"
 
{{!}} [[Image: Item icon {{{result|Unknown}}}.png|text-top|50x50px|link={{{result|}}}{{if lang}}]]
 
{{!}} [[Image: Item icon {{{result-2|Unknown}}}.png|text-top|50x50px|link={{{result-2|}}}{{if lang}}]]
 
{{!}} {{#if: {{{result-5|}}}|[[Image: Item icon {{{result-5|Unknown}}}.png|text-top|50x50px|link={{{result-5|}}}{{if lang}}]]}}
 
{{!}}-
 
{{!}} {{#if: {{{result-3|}}}|[[Image: Item icon {{{result-3|Unknown}}}.png|text-top|50x50px|link={{{result-3|}}}{{if lang}}]]}}
 
{{!}} {{#if: {{{result-4|}}}|[[Image: Item icon {{{result-4|Unknown}}}.png|text-top|50x50px|link={{{result-4|}}}{{if lang}}]]}}
 
{{!}} {{#if: {{{result-6|}}}|[[Image: Item icon {{{result-6|Unknown}}}.png|text-top|50x50px|link={{{result-6|}}}{{if lang}}]]}}
 
{{!}}}|[[Image:Item icon {{{result|Unknown}}}.png|text-top|100x100px|link={{{result|}}}{{if lang}}]]{{#if: {{{result-amount|}}}|{{TF2B|text=x{{{result-amount}}}|size=16px|color=#292625}}}}}}
 
{{!}}-
 
{{!}}}
 
}}<noinclude>
 
{{Translation switching|ar, de, es, fi, fr, it, ko, no, pl, pt, pt-br, hu, ru, sv, zh-hant}}
 
== 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 <code>yes</code> has the template automatically generate the crafting result based upon the contents of [[Template:Blueprint/core]].  Autoresult currently only supports the ''class token + slot token + scrap'' blueprints.
 
 
 
When using <code>autoresult</code>, <code>ingredient-1</code> should be set to the class token, <code>ingredient-2</code> should be set to the slot token and <code>ingredient-3</code> the scrap metal.
 
 
 
{| class="wikitable collapsible collapsed"
 
! class="header" colspan="3" | List of supported blueprints
 
|-
 
|[[Scout Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Scout Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Scout Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Scout Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
 
 
|[[Soldier Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Soldier Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Soldier Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Soldier Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Pyro Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Pyro Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Pyro Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Pyro Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Demoman Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Demoman Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Demoman Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Demoman Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Heavy Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Heavy Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Heavy Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Heavy Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Engineer Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Engineer Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Engineer Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Engineer Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Medic Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Medic Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Medic Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Medic Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Sniper Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Sniper Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Sniper Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Sniper Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Spy Token]]
 
|[[Primary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Spy  Token]]
 
|[[Secondary Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Spy Token]]
 
|[[Melee Token]]
 
|[[Scrap Metal]]
 
|-
 
|[[Spy Token]]
 
|[[PDA Token]]
 
|[[Scrap Metal]]
 
|}
 
 
 
[[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