Template:Crafting: Difference between revisions
More actions
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Output Item | output | The exact name of the crafted item. This determines the image and page link. | Page name | required |
| Output Quantity | output_qty | The number of items produced by this recipe.
| String | suggested |
| Reagent 1 | item1 | The exact name of the first crafting reagent. | Page name | required |
| Quantity 1 | qty1 | The required or available quantity for the first reagent (e.g., '5' or '18/5').
| String | suggested |
| Reagent 2 | item2 | The exact name of the second crafting reagent. | Page name | suggested |
| Quantity 2 | qty2 | The quantity for the second reagent.
| String | optional |
| Reagent 3 | item3 | The exact name of the third crafting reagent. | Page name | optional |
| Quantity 3 | qty3 | The quantity for the third reagent.
| String | optional |
| Reagent 4 | item4 | The exact name of the fourth crafting reagent. | Page name | optional |
| Quantity 4 | qty4 | The quantity for the fourth reagent.
| String | optional |
| Reagent 5 | item5 | The exact name of the fifth crafting reagent. | Page name | optional |
| Quantity 5 | qty5 | The quantity for the fifth reagent.
| String | optional |
| Reagent 6 | item6 | The exact name of the sixth crafting reagent. | Page name | optional |
| Quantity 6 | qty6 | The quantity for the sixth reagent.
| String | optional |