Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Crafting: Difference between revisions

Template page
Created page with "<includeonly><div class="crafting-wrapper"> <div class="crafting-reagents"> {{#if: {{{item1|}}} | <div class="crafting-item"> <div class="crafting-icon">[[File:{{{item1}}}.png|48px|link={{{item1}}}]]</div> <div class="crafting-qty">{{{qty1|1}}}</div> </div> }} {{#if: {{{item2|}}} | <div class="crafting-item"> <div class="crafting-icon">[[File:{{{item2}}}.png|48px|link={{{item2}}}]]</d..."
 
No edit summary
Line 56: Line 56:
}}
}}
</pre>
</pre>
</noinclude>
<templatedata>
{
"description": "A template for displaying crafting recipes with up to 6 reagents and 1 output item. Matches the Citizen skin dark theme.",
"format": "block",
"params": {
"output": {
"label": "Output Item",
"description": "The exact name of the crafted item. This determines the image and page link.",
"type": "wiki-page-name",
"required": true
},
"output_qty": {
"label": "Output Quantity",
"description": "The number of items produced by this recipe.",
"type": "string",
"default": "1",
"suggested": true
},
"item1": {
"label": "Reagent 1",
"description": "The exact name of the first crafting reagent.",
"type": "wiki-page-name",
"required": true
},
"qty1": {
"label": "Quantity 1",
"description": "The required or available quantity for the first reagent (e.g., '5' or '18/5').",
"type": "string",
"default": "1",
"suggested": true
},
"item2": {
"label": "Reagent 2",
"description": "The exact name of the second crafting reagent.",
"type": "wiki-page-name",
"suggested": true
},
"qty2": {
"label": "Quantity 2",
"description": "The quantity for the second reagent.",
"type": "string",
"default": "1"
},
"item3": {
"label": "Reagent 3",
"description": "The exact name of the third crafting reagent.",
"type": "wiki-page-name"
},
"qty3": {
"label": "Quantity 3",
"description": "The quantity for the third reagent.",
"type": "string",
"default": "1"
},
"item4": {
"label": "Reagent 4",
"description": "The exact name of the fourth crafting reagent.",
"type": "wiki-page-name"
},
"qty4": {
"label": "Quantity 4",
"description": "The quantity for the fourth reagent.",
"type": "string",
"default": "1"
},
"item5": {
"label": "Reagent 5",
"description": "The exact name of the fifth crafting reagent.",
"type": "wiki-page-name"
},
"qty5": {
"label": "Quantity 5",
"description": "The quantity for the fifth reagent.",
"type": "string",
"default": "1"
},
"item6": {
"label": "Reagent 6",
"description": "The exact name of the sixth crafting reagent.",
"type": "wiki-page-name"
},
"qty6": {
"label": "Quantity 6",
"description": "The quantity for the sixth reagent.",
"type": "string",
"default": "1"
}
}
}
</templatedata></noinclude>

Revision as of 12:17, 25 March 2026

Usage

{{CraftingRecipe
| item1 = Scrap Metal | qty1 = 18/5
| item2 = Wood        | qty2 = 116/30
| item3 = Screws      | qty3 = 22/5
| item4 = Spring      | qty4 = 3/1
| output = Pipe Rifle | output_qty = 1
}}

A template for displaying crafting recipes with up to 6 reagents and 1 output item. Matches the Citizen skin dark theme.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Output Itemoutput

The exact name of the crafted item. This determines the image and page link.

Page namerequired
Output Quantityoutput_qty

The number of items produced by this recipe.

Default
1
Stringsuggested
Reagent 1item1

The exact name of the first crafting reagent.

Page namerequired
Quantity 1qty1

The required or available quantity for the first reagent (e.g., '5' or '18/5').

Default
1
Stringsuggested
Reagent 2item2

The exact name of the second crafting reagent.

Page namesuggested
Quantity 2qty2

The quantity for the second reagent.

Default
1
Stringoptional
Reagent 3item3

The exact name of the third crafting reagent.

Page nameoptional
Quantity 3qty3

The quantity for the third reagent.

Default
1
Stringoptional
Reagent 4item4

The exact name of the fourth crafting reagent.

Page nameoptional
Quantity 4qty4

The quantity for the fourth reagent.

Default
1
Stringoptional
Reagent 5item5

The exact name of the fifth crafting reagent.

Page nameoptional
Quantity 5qty5

The quantity for the fifth reagent.

Default
1
Stringoptional
Reagent 6item6

The exact name of the sixth crafting reagent.

Page nameoptional
Quantity 6qty6

The quantity for the sixth reagent.

Default
1
Stringoptional
Contents