Template:LeveledCraft

From 7 Days to Die Wiki
Jump to navigation Jump to search


Please DO NOT CHANGE this template without checking the result on the recipe page!
This template is used to provide the functions for the LevelCraft table portion in the Template:Recipe. By using fixed index values and #switch functions in the recipe template the code is simplified to make easy changes in the future as well as reducing the amount of repetitive code required.

Exceptions

Normally items that have quality levels have either a +50% or +100% multiplier per quality increase. There are some exceptions to which no multiplier is applied:

These are hardcoded in the template, no user input is required.

Future Changes

If the need arises to update the template, consider that the code is roughly build up in 3 parts:

Part 1: Multipliers

If the multipliers change you may edit the values that exist or add a new value to the #switch function.

Part 2: Table Cells

This part creates the 6 cells part of the LeveledCraft table portion and can be left as is.

Part 3: Values + Exceptions

If exceptions change or are added you may edit the ones that exist or add a new one to the #switch function. Exceptions in the #switch function should result in {{!}}colspan="6"{{!}}{{{itemcount|}}} to display the associated item's count and make it span 6 columns.
If you add a new exception please update the list in Exceptions above to inform other editors of this page.

If you need help editing or wish to contribute or have questions about this template join our 7 Days to Die Editors Discord and have access to the Admins and makes of this template!