Template talk:Blueprint

From Team Fortress Wiki
Revision as of 11:49, 13 March 2011 by RJackson (talk | contribs) (Auto-generating results (implementation over at User:RJackson/sandbox/Template:Blueprint): new section)
Jump to: navigation, search

There something wrong with the existing one? -Shine () 02:55, 10 August 2010 (UTC)

Yes, it's overly complicated. Compare:
{{recipe|
number=3|
ingredient1img=Backpack Batter's Helmet|
ingredient1name=Batter's helmet|
ingredient2img=Backpack_bonk|
ingredient2name=Bonk! Atomic Punch|
ingredient3img=Backpack_bonk|
ingredient3name=Bonk! Atomic Punch|
resultimg=Backpack Bonk Helm|
resultname=Bonk helm|
}}

to

{{Crafting recipe
| ingredient-1 = Batter's Helmet
| ingredient-2 = Bonk! Atomic Punch
| ingredient-3 = Bonk! Atomic Punch
| result = Bonk Helm
}}

If I could only figure out why I can only only get it to be consistent with two ingredients OR 3+ ingredients, and not both. -- Pilk (talk) 03:02, 10 August 2010 (UTC)

Well, I can make the existing one only need
{{recipe
| number=3
| ingredient1=Batter's helmet
| ingredient2=Bonk! Atomic Punch
| ingredient3=Bonk! Atomic Punch
result=Bonk Helm
}}

Would that work? -Shine () 03:06, 10 August 2010 (UTC)

Well, so could I. The point is it shouldn't even need that. -- Pilk (talk) 03:10, 10 August 2010 (UTC)
Is this going to work on language pages, where the links need descriptions?--Piemanmoo 08:18, 13 August 2010 (UTC)

Alternative results

How'd be have more parameters for results, separated by a "OR"? To show something like Melee Token + Medic Token + Scrap Metal = Ubersaw OR Vita-Saw.--Kid Of The Century 08:17, 30 October 2010 (UTC)

I agree with this. It would look cleaner and take up less space. On the set hats articles for example. Moussekateer 17:50, 8 November 2010 (UTC)

Background color for specific blueprints

Could be useful having a light-colored background for recipes that have a single result?--Kid Of The Century 08:19, 30 October 2010 (UTC)

Todo

  • Make ingredient 2 optional (for recipes like Scrap Metal x3 = Reclaimed)
  • Add result-amount

Wind 20:25, 14 October 2010 (UTC)

Notes

Would it be possible to implement the notes of the chance of getting a certain weapon? Such as:

Note: The blueprint simply makes a <class name> <weapon type>; there is still a chance of getting the <result 1>, <result 2>, <result ect>, or <result 6> instead. There will be approximately a <percent> chance of crafting this item.

Specifically on the token crafting ones, he means. TF2 crosshair.png Fendermcbender 23:08, 11 March 2011 (UTC)

Auto-generating results (implementation over at User:RJackson/sandbox/Template:Blueprint)

As we have agreed to implement the generic blueprints into pages, each general blueprint is now manually added in each page; as such, every time there is an update adding new weapons that can be crafted via the generic blueprints, every page containing that generic blueprint will need to be updated. My modification to the template solves this: I've implemented an "autoresult", generated via adding autoresult=yes to the blueprint attributes; which automatically generates the results based upon the inputted items.

The autoresult is generated by interpreting ingredient-1 as a class token, ingredient-2 as a slot token and ingredient-3 as whatever additional item (currently it's only got support for the token blueprints (classtoken + slottoken + scrap metal).

Currently, the only thing preventing me from implementing this is that the /core file (containing the crafting combinations) is incomplete - it only supports primary, secondary and melee slots.

I welcome you all to review my modifications, and suggest any changes that should take place before it's implementation. I also welcome you all to contribute in populating the /core file with all of the token-related craft recipes and outcomes - it's written in a simple format, should be easy to get to grips with. -User RJackson Signature Colon DDDDDDDDDDDDDDDDDDDD.png 11:49, 13 March 2011 (UTC)