Template:Crafting header

From PZwiki
Revision as of 23:05, 22 April 2022 by Redscarf (talk | contribs) (make tables sortable)
[view] [edit] [history] [purge] Template documentation
This template is used to simplify the heading of crafting tables.

This will only 'open' the table, and will still need to be closed with |}.

Usage

The default design:

{{Crafting header}}
{{Crafting carpentry|001}}
|}
Produces:
Product XP Gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6 Ingredient 7 Ingredient 8 Ingredient 9
Plank.png
Plank x3
0.75 Carpentry
(0.25 above level 3)
none Handsaw.png
Saw (tag)
(keep)
Logs.png
Log
(consumed)








The 'index' set to "true":

{{Crafting header|index=true}}
{{Crafting carpentry|001}}|001
|}
Produces:
Product XP Gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6 Ingredient 7 Ingredient 8 Ingredient 9 Index
Plank.png
Plank x3
0.75 Carpentry
(0.25 above level 3)
none Handsaw.png
Saw (tag)
(keep)
Logs.png
Log
(consumed)






001


Custom number of ingredients:

{{Crafting header|ing=2}}
{{Crafting carpentry|001|ing=2}}
|}
Produces:
Product XP Gained Skill(s) Recipe Ingredient 1 Ingredient 2
Plank.png
Plank x3
0.75 Carpentry
(0.25 above level 3)
none Handsaw.png
Saw (tag)
(keep)
Logs.png
Log
(consumed)

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

Arguments

ing
The maximum number of ingredients to be used in the table.
index
Whether the index number column should be included.

See also

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