Difference between revisions of "Template:Blueprint"

From Team Fortress Wiki
Jump to: navigation, search
m (test)
(new implementation)
Line 1: Line 1:
{{#switch: {{lc:{{{autoresult}}}}}
+
{{#switch: {{lc:{{{autoresult|}}}}}
|yes
 
|true
 
|y =
 
{{{!}} class="wikitable" style="font-size:90%; text-align:center;" width="auto"
 
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-1|}}}|[[Token#Tokens{{if lang}}|{{Item name|{{lc:{{{ingredient-1}}}}}}}]]|Ingredient 1}}
 
{{!}}
 
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-2|}}}|[[Token#Tokens{{if lang}}|{{Item name|{{lc:{{{ingredient-2}}}}}}}]]|Ingredient 2}}
 
{{!}}
 
{{!}} style="background-color: #FFDD99;" {{!}} {{#if:{{{ingredient-3|}}}|[[Token#Tokens{{if lang}}|{{Item name|{{lc:{{{ingredient-3}}}}}}}]]|Ingredient 3}}
 
{{!}}
 
  
{{!}} style="background-color: #FFDD99;" {{!}} {{Lang
+
<!-- Scout token recipes -->
   | ar = النتائج المحتملة
+
  | 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}}
   | de = Mögliche Ergebnisse
+
  | scout secondary = {{Blueprint/core| ingredient-1 = Scout Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Shortstop | result-2 = Force-A-Nature}}
   | en = Possible Results
+
  | 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}}
   | es = Resultados Posibles
+
 
   | hu = Lehetséges eredmény
+
<!-- Soldier token recipes -->
   | fi = Mahdolliset lopputulokset
+
   | 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}}
   | fr = Résultats Possibles
+
   | 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}}
   | it = Possibile Risultato
+
   | 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}}
   | ko = 가능한 결과물
+
 
   | nl = Mogelijke Resultaten
+
<!-- Pyro token recipes -->
   | no = Mulige Resultater
+
   | pyro primary = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Backburner | result-2 = Degreaser}}
   | pl = Mozliwe rezultaty
+
   | pyro secondary = {{Blueprint/core| ingredient-1 = Pyro Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Flare Gun}}
   | pt = Resultados Possíveis
+
   | 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}}
   | pt-br = Resultados Possíveis
+
 
   | ru = Возможные результаты
+
<!-- Demoman token recipes -->
   | sv = Möjliga Resultat
+
   | 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}}
   | zh-hant = 可能的結果
+
   | 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}}
{{!}}-
+
 
{{!}} [[Image:Item icon {{{ingredient-1}}}.png|text-bottom|100x100px|link={{{ingredient-1|}}}{{if lang}}]]
+
<!-- Heavy token recipes -->
{{!}} {{TF2B|text=+|size=65px|color=#292625}}
+
   | heavy primary = {{Blueprint/core| ingredient-1 = Heavy Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Natascha | result-2 = Brass Beast}}
{{!}} [[Image:Item icon {{{ingredient-2}}}.png|text-bottom|100x100px|link={{{ingredient-2|}}}{{if lang}}]]
+
   | 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}}
{{!}} {{TF2B|text=+|size=65px|color=#292625}}
+
   | 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}}
{{!}} [[Image:Item icon {{{ingredient-3}}}.png|text-bottom|100x100px|link={{{ingredient-3|}}}{{if lang}}]]
+
 
{{!}} {{TF2B|text==|size=65px|color=#292625}}
+
<!-- Engineer token recipes -->
{{!}} {{Blueprint/core|classtoken={{{ingredient-1}}}|slottoken={{{ingredient-2}}}|ingredient-3={{{ingredient-3}}}}}
+
   | 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}}
{{hatnote|1={{lang
+
   | 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}}
| en = '''Note''': this is a generic blueprint, and using it will produce only one of the items listed as 'possible results'.
+
 
| es = '''Nota''': Ésto es un plano genérico, se utiliza para obtener alguno de los objetos mostrados en 'Posibles Resultados'.
+
<!-- Medic token recipes -->
| 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'.
+
   | medic primary = {{Blueprint/core| ingredient-1 = Medic Token | ingredient-2 = Primary Token | ingredient-3 = Scrap Metal | result = Blutsauger | result-2 = Crusader's Crossbow}}
| pl = '''Uwaga''': Jest to podstawowy plan wytwarzania; jego użycie spowoduje wyprodukowanie tylko jednego z przedmiotów z kolumny "Możliwe rezultaty".
+
   | medic secondary = {{Blueprint/core| ingredient-1 = Medic Token | ingredient-2 = Secondary Token | ingredient-3 = Scrap Metal | result = Kritzkrieg}}
| pt-br = '''Nota''': Essa é uma receita genérica, e usá-la urá somente produzir um dos itens listados como "resultados possíveis".
+
  | 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|}}}}}
 
}}
 
}}
| #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}}}}}}
 
{{!}}-
 
{{!}}}
 
}}
 
{{#if:{{{autoresult|}}}
 
  | [[Category:autoresult use'|{{BASEPAGENAME}} {{SUBPAGENAME}}]]
 
  }}
 
<noinclude>
 
{{Translation switching|ar, de, es, fi, fr, it, ko, no, pl, pt, pt-br, hu, ru, sv, zh-hant}}
 
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
Line 126: Line 80:
  
 
===<code>Autoresult</code>===
 
===<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.
+
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.
 
 
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>
 
[[Category:Formatting templates|Blueprint]]</noinclude>

Revision as of 04:29, 19 March 2011

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

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.