Difference between revisions of "Template:Blueprint"
(move result 5 to the first row: makes items with 6 possible results appear nicely in a 2x3 layout, while keeping 4 possible results in the square 2x2.) |
(Implementing "autoresult".) |
||
Line 1: | Line 1: | ||
− | {| class="wikitable" style="font-size:90%; text-align:center;" width="auto" | + | {{#switch: {{lc:{{{autoresult}}}}} |
− | | style="background-color: #FFDD99;" | {{#if:{{{ingredient-1|}}}|[[{{{ingredient-1}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-1}}}}}}}]]|Ingredient 1}} | + | |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 | ||
+ | | 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 = ????? | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}} [[Image:Item icon {{Item name|{{lc:{{{ingredient-1}}}}}}}.png|text-bottom|100x100px|link={{{ingredient-1|}}}{{if lang}}]] | ||
+ | {{!}} {{TF2B|text=+|size=65px|color=#292625}} | ||
+ | {{!}} [[Image:Item icon {{Item name|{{lc:{{{ingredient-2}}}}}}}.png|text-bottom|100x100px|link={{{ingredient-2|}}}{{if lang}}]] | ||
+ | {{!}} {{TF2B|text=+|size=65px|color=#292625}} | ||
+ | {{!}} [[Image:Item icon {{Item name|{{lc:{{{ingredient-3}}}}}}}.png|text-bottom|100x100px|link={{{ingredient-3|}}}{{if lang}}]] | ||
+ | {{!}} {{TF2B|text==|size=65px|color=#292625}} | ||
+ | {{!}} {{Template:Blueprint/core|classtoken={{{ingredient-1}}}|slottoken={{{ingredient-2}}}|ingredient-3={{{ingredient-3}}}}} | ||
+ | {{!}}} | ||
+ | '''''Note:''' This is a generic blueprint. You will receive '''one''' of the items listed under "Possible Results". | ||
+ | | #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-3|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-3|}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-3}}}}}}}]] | ||
{{!}} | {{!}} | ||
Line 10: | Line 52: | ||
{{#if: {{{ingredient-5|}}} |{{!}} style="background-color: #FFDD99;" {{!}} [[{{{ingredient-5|}}}{{if lang}}|{{Item name|{{lc:{{{ingredient-5}}}}}}}]] | {{#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 = | + | | ar = ??????? ???????? |
| de = Mögliche Ergebnisse | | de = Mögliche Ergebnisse | ||
| en = Possible Results | | en = Possible Results | ||
Line 19: | Line 61: | ||
| fr = Résultats Possibles | | fr = Résultats Possibles | ||
| it = Possibile Risultato | | it = Possibile Risultato | ||
− | | ko = | + | | ko = ??? ??? |
| nl = Mogelijke Resultaten | | nl = Mogelijke Resultaten | ||
| no = Mulige Resultater | | no = Mulige Resultater | ||
− | | pl = | + | | pl = Mozliwe rezultaty |
| pt = Resultados Possíveis | | pt = Resultados Possíveis | ||
| pt-br = Resultados Possíveis | | pt-br = Resultados Possíveis | ||
− | | ru = | + | | ru = ????????? ?????????? |
| sv = Möjliga Resultat | | sv = Möjliga Resultat | ||
− | | zh-hant = | + | | zh-hant = ????? |
}}|{{#if:{{{result|}}}|[[{{{result}}}{{if lang}}|{{Item name|{{lc:{{{result}}}}}}}]]|Result}}}} | }}|{{#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}} | {{#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}}}} | {{!}} [[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}}}} | ||
Line 39: | Line 81: | ||
{{#if: {{{ingredient-5|}}} |{{!}} {{TF2B|text=+|size=65px|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}}}}}}}}}} | {{!}} [[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" | {{{!}} cellpadding="0" cellspacing="0" | ||
{{!}} [[Image: Item icon {{{result|Unknown}}}.png|text-top|50x50px|link={{{result|}}}{{if lang}}]] | {{!}} [[Image: Item icon {{{result|Unknown}}}.png|text-top|50x50px|link={{{result|}}}{{if lang}}]] | ||
Line 50: | Line 92: | ||
{{!}} {{#if: {{{result-6|}}}|[[Image: Item icon {{{result-6|Unknown}}}.png|text-top|50x50px|link={{{result-6|}}}{{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}}}}}} | {{!}}}|[[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}} | {{Translation switching|ar, de, es, fi, fr, it, ko, no, pl, pt, pt-br, hu, ru, sv, zh-hant}} | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Blueprint | {{Blueprint | ||
+ | | autoresult = | ||
| ingredient-1 = | | ingredient-1 = | ||
| ingredient-2 = | | ingredient-2 = | ||
Line 69: | Line 114: | ||
}} | }} | ||
</pre> | </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> | [[Category:Formatting templates|Blueprint]]</noinclude> |
Revision as of 18:44, 17 March 2011
Ingredient 1 | Ingredient 2 | Result | ||
+ | = |
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Blueprint/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: ar, de, es, fi, fr, it, ko, no, pl, pt, pt-br, hu, ru, sv, zh-hant (add) |
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 yes
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 autoresult
, ingredient-1
should be set to the class token, ingredient-2
should be set to the slot token and ingredient-3
the scrap metal.