Template:Crafting header: Difference between revisions
m (category) |
(make tables sortable) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="pztable" style="text-align:center;" | <includeonly>{| class="sortable pztable" style="text-align:center;" | ||
! style="width:120px; {{#switch: {{{style|{{{type}}}}}} | ! style="width:120px; {{#switch: {{{style|{{{type}}}}}} | ||
| medical|medicine|med = background-color:#{{Infobox nc|Medical}}; color:#{{Infobox nc|Medical|text}} | | medical|medicine|med = background-color:#{{Infobox nc|Medical}}; color:#{{Infobox nc|Medical|text}} |
Revision as of 00:05, 23 April 2022
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 x3 |
0.75 Carpentry (0.25 above level 3) |
none | Saw (tag) (keep) |
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 x3 |
0.75 Carpentry (0.25 above level 3) |
none | Saw (tag) (keep) |
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 x3 |
0.75 Carpentry (0.25 above level 3) |
none | Saw (tag) (keep) |
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
{{Crafting general}}
{{Crafting survivalist}}
{{Crafting farming}}
{{Crafting cooking}}
{{Crafting carpentry}}
{{Crafting health}}
{{Crafting hunting}}
{{Crafting electrical}}
{{Crafting metalworking}}
{{Crafting fishing}}
{{Crafting header}}
- Template:Crafting
Documentation transcluded from Template:Crafting header/doc.
Editors can experiment in this template's sandbox (create)
Editors can experiment in this template's sandbox (create)