Difference between revisions of "Template:Blueprint"

From Team Fortress Wiki
Jump to: navigation, search
(Adding italian translation switching)
m
 
(64 intermediate revisions by 29 users not shown)
Line 1: Line 1:
{| class="wikitable" style="font-size:90%; text-align:center;" width="auto"
+
{{#if: {{{autoresult|}}}|{{dictionary/blueprints/{{lc:{{{autoresult|}}}}}}}|{{Blueprint/core
| style="background-color: #FFDD99;" | {{#if:{{{ingredient-1|}}}|[[{{{ingredient-1}}}{{if lang}}|{{{ingredient-1-local|{{{ingredient-1}}}}}}]]|Ingredient 1}}
+
      |{{#if:{{{ingredient-1|}}}| ingredient-1 | null}} = {{{ingredient-1|}}}
|
+
      |{{#if:{{{ingredient-2|}}}| ingredient-2 | null}} = {{{ingredient-2|}}}
| style="background-color: #FFDD99;" | {{#if:{{{ingredient-2|}}}|[[{{{ingredient-2}}}{{if lang}}|{{{ingredient-2-local|{{{ingredient-2}}}}}}]]|Ingredient 2}}
+
      |{{#if:{{{ingredient-3|}}}| ingredient-3 | null}} = {{{ingredient-3|}}}
|
+
      |{{#if:{{{ingredient-4|}}}| ingredient-4 | null}} = {{{ingredient-4|}}}
{{#if: {{{ingredient-3|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-3|}}}{{if lang}}|{{{ingredient-3-local|{{{ingredient-3}}}}}}]]
+
      |{{#if:{{{ingredient-5|}}}| ingredient-5 | null}} = {{{ingredient-5|}}}
{{!}}
+
      |{{#if:{{{ingredient-6|}}}| ingredient-6 | null}} = {{{ingredient-6|}}}
{{#if: {{{ingredient-4|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-4|}}}{{if lang}}|{{{ingredient-4-local|{{{ingredient-4}}}}}}]]
+
      |{{#if:{{{ingredient-1-amount|}}}| ingredient-1-amount | null}} = {{{ingredient-1-amount|}}}
{{!}}
+
      |{{#if:{{{ingredient-2-amount|}}}| ingredient-2-amount | null}} = {{{ingredient-2-amount|}}}
{{#if: {{{ingredient-5|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-5|}}}{{if lang}}|{{{ingredient-5-local|{{{ingredient-5}}}}}}]]
+
      |{{#if:{{{ingredient-3-amount|}}}| ingredient-3-amount | null}} = {{{ingredient-3-amount|}}}
{{!}}}}}}}}
+
      |{{#if:{{{ingredient-4-amount|}}}| ingredient-4-amount | null}} = {{{ingredient-4-amount|}}}
| style="background-color: #FFDD99;" | {{#if: {{{result-2|}}}|{{Lang
+
      |{{#if:{{{ingredient-5-amount|}}}| ingredient-5-amount | null}} = {{{ingredient-5-amount|}}}
| de = Mögliche Ergebnisse
+
      |{{#if:{{{ingredient-6-amount|}}}| ingredient-6-amount | null}} = {{{ingredient-6-amount|}}}
| en = Possible Results
+
      |{{#if:{{{result|}}}| result | null}} = {{{result|}}}
| hu = Lehetséges eredmény
+
      |{{#if:{{{result-2|}}}| result-2 | null}} = {{{result-2|}}}
| fr = Résultats Possibles
+
      |{{#if:{{{result-3|}}}| result-3 | null}} = {{{result-3|}}}
| it = Possibile Risultato
+
      |{{#if:{{{result-4|}}}| result-4 | null}} = {{{result-4|}}}
| no = Mulige Resultater
+
      |{{#if:{{{result-5|}}}| result-5 | null}} = {{{result-5|}}}
| pl = Możliwe rezultaty
+
      |{{#if:{{{result-6|}}}| result-6 | null}} = {{{result-6|}}}
| ru = Возможные результаты
+
      |{{#if:{{{result-7|}}}| result-7 | null}} = {{{result-7|}}}}}
}}|{{#if:{{{result|}}}|[[{{{result}}}{{if lang}}|{{{result-local|{{{result}}}}}}]]|Result}}}}
+
}}<noinclude>{{Documentation}}</noinclude>
|-
 
| [[Image:Item icon {{{ingredient-1|Unknown}}}.png|text-top|100x100px|link={{{ingredient-1|}}}{{if lang}}]]{{#if: {{{ingredient-1-amount|}}}|{{TF2B|text=x{{{ingredient-1-amount}}}|size=16px|color=#292625}}}}
 
| {{TF2B|text=+|size=65px|color=#292625}}
 
| [[Image:Item icon {{{ingredient-2|Unknown}}}.png|text-top|100x100px|link={{{ingredient-2|}}}{{if lang}}]]{{#if: {{{ingredient-2-amount|}}}|{{TF2B|text=x{{{ingredient-2-amount}}}|size=16px|color=#292625}}}}
 
{{#if: {{{ingredient-3|}}} |{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-3|}}}.png|text-top|100x100px|link={{{ingredient-3|}}}{{if lang}}]]{{#if: {{{ingredient-3-amount|}}}|{{TF2B|text=x{{{ingredient-3-amount}}}|size=16px|color=#292625}}}}
 
{{#if: {{{ingredient-4|}}} |{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-4|}}}.png|text-top|100x100px|link={{{ingredient-4|}}}{{if lang}}]]{{#if: {{{ingredient-4-amount|}}}|{{TF2B|text=x{{{ingredient-4-amount}}}|size=16px|color=#292625}}}}
 
{{#if: {{{ingredient-5|}}} |{{!}} {{TF2B|text=+|size=65px|color=#292625}}
 
{{!}} [[Image:Item icon {{{ingredient-5|}}}.png|text-top|100x100px|link={{{ingredient-5|}}}{{if lang}}]]{{#if: {{{ingredient-5-amount|}}}|{{TF2B|text=x{{{ingredient-5-amount}}}|size=16px|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-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}}]]}}
 
{{!}}}|[[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|de, fr, it, no, pl, hu, ru}}
 
== Usage ==
 
<pre>
 
{{Blueprint
 
| ingredient-1 =
 
| ingredient-2 =
 
| ingredient-3 =
 
| ingredient-4 =
 
| ingredient-5 =
 
| result =
 
| result-2 =
 
| result-3 =
 
| result-4 =
 
}}
 
</pre>
 
<pre>
 
{{Blueprint
 
| ingredient-1 =
 
| ingredient-1-local =
 
| ingredient-2 =
 
| ingredient-2-local =
 
| ingredient-3 =
 
| ingredient-3-local =
 
| ingredient-4 =
 
| ingredient-4-local =
 
| ingredient-5 =
 
| ingredient-5-local =
 
| result =
 
| result-local =
 
| result-2 =
 
| result-3 =
 
| result-4 =
 
}}
 
</pre>
 
[[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