Template:Crafting general: Difference between revisions

From PZwiki
(Created page with "<noinclude>{{Documentation}}</noinclude><includeonly> {{#switch: {{{1|0}}} |#default={{!}}- {{!}} {{abbr|N/A|This index number contains no data}} {{!}}{{!}} {{!}}{{!}} {{!}}{...")
 
mNo edit summary
Line 21: Line 21:
   | m1_4 = [[File:RifleAmmo308loose.png|20px|link=.308 Ammo]] [[.308 Ammo]]
   | m1_4 = [[File:RifleAmmo308loose.png|20px|link=.308 Ammo]] [[.308 Ammo]]
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|002
|002
Line 39: Line 39:
   | q2 =  
   | q2 =  
   | tag2 = (consumed)
   | tag2 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|003
|003
Line 53: Line 53:
   | q1 =  
   | q1 =  
   | tag1 = (keep)
   | tag1 = (keep)
   | sl  = 0
   | sl  =  
  }}
  }}
|004
|004
Line 69: Line 69:
   | m2_1 = [[File:Lighter.png|20px|link=Lighter]] [[Lighter]]
   | m2_1 = [[File:Lighter.png|20px|link=Lighter]] [[Lighter]]
   | m2_2 = [[File:Matches.png|20px|link=Matches]] [[Matches]]
   | m2_2 = [[File:Matches.png|20px|link=Matches]] [[Matches]]
   | sl  = 0
   | sl  =  
  }}
  }}
|005
|005
Line 82: Line 82:
   | m1_2 = [[File:Vest_White.png|20px|link=Clothing]] [[Clothing]]
   | m1_2 = [[File:Vest_White.png|20px|link=Clothing]] [[Clothing]]
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|006
|006
Line 95: Line 95:
   | m1_2 = [[File:Vest_White.png|20px|link=Clothing]] [[Clothing]]
   | m1_2 = [[File:Vest_White.png|20px|link=Clothing]] [[Clothing]]
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|007
|007
Line 112: Line 112:
   | m2_2 = [[File:RagDirty.png|20px|link=Dirty Rag]] [[Dirty Rag]]
   | m2_2 = [[File:RagDirty.png|20px|link=Dirty Rag]] [[Dirty Rag]]
   | tag2 = (consumed)
   | tag2 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|008
|008
Line 133: Line 133:
   | m3_2 = [[File:RagDirty.png|20px|link=Dirty Rag]] [[Dirty Rag]]
   | m3_2 = [[File:RagDirty.png|20px|link=Dirty Rag]] [[Dirty Rag]]
   | tag3 = (consumed)
   | tag3 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|009
|009
Line 147: Line 147:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|010
|010
Line 161: Line 161:
   | q1 = x30
   | q1 = x30
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|011
|011
Line 175: Line 175:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|012
|012
Line 189: Line 189:
   | q1 = x24
   | q1 = x24
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|013
|013
Line 203: Line 203:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|014
|014
Line 217: Line 217:
   | q1 = x24
   | q1 = x24
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|015
|015
Line 231: Line 231:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|016
|016
Line 245: Line 245:
   | q1 = x40
   | q1 = x40
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|017
|017
Line 259: Line 259:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|018
|018
Line 273: Line 273:
   | q1 = x100
   | q1 = x100
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|019
|019
Line 287: Line 287:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|020
|020
Line 301: Line 301:
   | q1 = x100
   | q1 = x100
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|021
|021
Line 315: Line 315:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|022
|022
Line 329: Line 329:
   | q1 = x40
   | q1 = x40
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
|023
|023
Line 343: Line 343:
   | q1 =  
   | q1 =  
   | tag1 = (consumed)
   | tag1 = (consumed)
   | sl  = 0
   | sl  =  
  }}
  }}
}}
}}
</includeonly>
</includeonly>

Revision as of 15:47, 28 May 2019

[view] [edit] [history] [purge] Template documentation
This template is used as a single point to reference general crafting recipes – defined by the game's crafting categories.

Please use this template, so the recipe only needs to be updated in a single place, in case the recipe changes in a future update – along with the added bonus of quickly and easily displaying a crafting recipe on any page.

Imbox deletion.png
This page is a candidate for deletion.
Reason: For old crafting system, and documentation is being moved to template pages.
This page (and any subpages) will be deleted after being reviewed by an admin, and no one has objected to its deletion. Users may discuss this request for deletion on the page's talk page. Once added, this should only be removed by an admin, or the user that added it.

Usage

For a guide on how to display the table correctly, please refer to {{Crafting header}}.

See below for a step-by-step guide on how to add a recipe to an article:

  1. Insert the following snippet into your article:
  2. {{Crafting header|ing=Y}}
    {{Crafting general|X|ing=Y}}
    |}
  3. Replace the X with the index of the specific recipe you want to display. See Index reference for a list of available recipes.
  4. Add all the recipes you want to add. This can even be different types of recipes. I.e. {{Crafting general}} and {{Crafting cooking}}.
  5. {{Crafting header|ing=Y}}
    {{Crafting general|001|ing=Y}}
    {{Crafting cooking|001|ing=Y}}
    |}
  6. Now replace the Y with the most number of ingredients required (add ing=Y for each entry first). This will shorten the table and make it look neater, by removing the unnecessary columns.
  7. In our above example, 1 is the largest number of ingredients for any recipe in our table. So: This:
    {{Crafting header|ing=1}}
    {{Crafting general|001|ing=1}}
    {{Crafting cooking|001|ing=1}}
    |}

    Produces:

    Product XP gained Skill(s) Recipe Ingredient 1
    GunpowderJar.png
    Gunpowder
    0 XP
    (consumed)










    Empty Bottle (Bourbon)
    Water Bottle (Bourbon)
    0 XP none WhiskeyFull.png
    Bourbon
    (consumed)

    Note that the ing argument needs to be defined for the table contents too.

Edit existing recipe

It is inevitable that recipes will change as the game is continually developed. This may be as simple as changing the amount of XP gained, or completely changing how to make a Makeshift Ham Radio.

For how to create a new recipe refer to the below along with {{Crafting}}.

Getting started

  1. Go to Template:Crafting general and not Template:Crafting general/doc (current page will be bold)
  2. Click the Edit button at the very top, not the one next to Template documentation. Or click here to edit current page.

There are 5 main components to a crafting recipe:

  1. Product: The item/object that will be produced by the recipe.
  2. XP Gained: The amount and type of experience that will be gained when completing the recipe.
  3. Skill(s): The required skill level to unlock the recipe.
  4. Recipe: The required recipe magazines or occupation to unlock the recipe.
  5. Ingredient(s): The ingredients required in the recipe. There can be up to 11 different ingredients.

Product

The product uses the following parameters:

  1. product_image: The image used for the icon. For items this is displayed in the code section usually as icon.
  2. product_name: The name of the item. In most cases this is also the article name. For items this is displayed in the code section usually as DisplayName.
  3. product_quantity: The quantity this recipe will produce. Should be left blank if "1".

XP Gained

Xp Gained only uses a single parameter: xp.
This is the default amount of experience, with NO MODIFIER. This should be displayed as followed: 2.5 Cooking.

Skill(s)

Skill(s) only uses a single parameter: sl, short for "skill level".
This should be displayed as followed: CP = 7.

Recipe

Recipe only uses a single parameter: rec, short for "recipe". This is used to specify how to unlock the recipe (other than with a skill level), either by a trait, occupation or recipe magazine.

Ingredient(s)

Ingredient(s) uses the following parameters (Replace the # with the ingredient number):

  1. f#: This is the file/image that will display.
  2. i#: The item/object name that will display.
  3. q#: The quantity required in the recipe. Should be left blank if "1".
  4. tag#: A special tag used to display what will happen to this item/object in the recipe. E.g. (keep), (base item) or (consumed)
Note: "workstations" may use the tag to represent other requirements unique to the workstation. E.g. oven may have a cook time or temperature.

Multiple ingredients

Some ingredients can be substituted for other ingredients, such as the various different types of hammers.
The syntax for this is m#_α, where like the above, # is replaced with the ingredient number, and α is replaced with the number of "sub-" or "multi-" ingredient. There can be up to 10 multi-ingredients. The icon and name should be on one row with the icon set to 20px.
Example:

  | m1_1 = [[File:Saw.png|20px|link=Saw]] [[Saw]]
  | m1_2 = [[File:Handsaw.png|20px|link=Garden Saw]] [[Garden Saw]]
  | q1 =
  | tag1 = (keep)

Note that the quantity (q1) and tag (tag1) can still be used.

Ingredient order

The order of ingredients should remain consistent, using the following order:

  1. Workstation: This may be an oven or any other workstation, especially those added in build 42 and beyond.
  2. Keep tag: These are usually tools, and are not consumed in the recipe.
  3. Base item tag: These are primary ingredients, and are usually consumed in the recipe.
  4. Consumed tag: These can be ordered based on significance to the final product, use your best guess.

Index reference

General (001−100)

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Index
GunpowderJar.png
Gunpowder
0 XP
(consumed)










001
Flashlight.png
Flashlight
0 XP Flashlight.png
Flashlight
(consumed)
Battery.png
Battery
(consumed)









002
Battery.png
Battery
0 XP Flashlight.png
Flashlight
(keep)










003
CandleLit.png
Candle
0 XP Candle.png
Candle
(consumed)









004
Rag.png
Ripped Sheets
0 XP
One of:
Sheet.png Sheet
Vest White.png Clothing

(consumed)










005
SheetRope.png
Sheet Rope
0 XP
One of:
Sheet.png Sheet
Vest White.png Clothing

(consumed)










006
Molotov.png
Molotov Cocktail
0 XP WhiskeyFull.png
Bourbon
(consumed)

(consumed)









007
Molotov.png
Molotov Cocktail
0 XP
(consumed)
Petrol.png
Gas Can
(1 unit)

(consumed)

(consumed)








008
40calAmmoBox.png
9mm Round x30
0 XP HandgunAmmoBox.png
9mm Round
(consumed)










009
HandgunAmmoBox.png
9mm Round
0 XP 40calAmmoBox.png
9mm Round x30
(consumed)










010
ShotgunAmmo.png
Shotgun Shells x24
0 XP ShotgunAmmoBox.png
Shotgun Shells
(consumed)










011
ShotgunAmmoBox.png
Shotgun Shells
0 XP ShotgunAmmo.png
Shotgun Shells x24
(consumed)










012
RifleAmmo223loose.png
.223 Round x24
0 XP RifleAmmo223.png
.223 Round
(consumed)










013
RifleAmmo223.png
.223 Round
0 XP RifleAmmo223loose.png
.223 Round x24
(consumed)










014
RifleAmmo308loose.png
.223 Round x40
0 XP RifleAmmo308.png
.223 Round
(consumed)










015
RifleAmmo308.png
.308 Round
0 XP RifleAmmo308loose.png
.223 Round x40
(consumed)










016
Nails.png
Nails x100
0 XP NailsBox.png
Nails
(consumed)










017
NailsBox.png
Nails
0 XP Nails.png
Nails x100
(consumed)










018
Screws.png
Screws x100
0 XP ScrewsBox.png
Screws
(consumed)










019
ScrewsBox.png
Screws
0 XP Screws.png
Screws x100
(consumed)










020
Paperclip.png
Paperclip x40
0 XP PaperclipBox.png
Paperclip
(consumed)










021
PaperclipBox.png
Paperclip
0 XP Paperclip.png
Paperclip x40
(consumed)










022
JarEmpty2.png
Jar x6
0 XP JarBox.png
Jar
(consumed)










023
N/A 024
N/A 025
N/A 026
N/A 027
N/A 028
N/A 029
N/A 030
N/A 031
N/A 032
N/A 033
N/A 034
N/A 035
N/A 036
N/A 037
N/A 038
N/A 039
N/A 040
N/A 041
N/A 042
N/A 043
N/A 044
N/A 045
N/A 046
N/A 047
N/A 048
N/A 049
N/A 050
N/A 051
N/A 052
N/A 053
N/A 054
N/A 055
N/A 056
N/A 057
N/A 058
N/A 059
N/A 060
N/A 061
N/A 062
N/A 063
N/A 064
N/A 065

See also

Documentation transcluded from Template:Crafting general/doc.
Editors can experiment in this template's sandbox (create)