Template:Chem Recipe Component: Difference between revisions
From Space Station 14 Wiki
No edit summary |
(desc) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="width: 8em; display: flex; flex-direction: rows; background: #27272e; padding: 0 0.5em; margin-top: 0; margin-bottom: 0;"><div class="recipeimg" style="width: 40px">[[File:Beaker.png|32px]]</div><div style="text-align: right; display: inline-block; width: 100%"> | <includeonly><div style="width: 8em; display: flex; flex-direction: rows; background: #27272e; padding: 0 0.5em; margin-top: 0; margin-bottom: 0;"><div class="recipeimg" style="width: 40px">[[File:Beaker.png|32px]]</div><div style="text-align: right; display: inline-block; width: 100%">[[{{{dest|Chemistry}}}#chem_{{{reagent}}}|'''{{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} [{{{amount|1}}}]''']]</div></div></includeonly><noinclude> | ||
{{documentation}} | |||
[[Category:Recipe templates]] | |||
<templatedata> | |||
{ | |||
"params": { | |||
"dest": { | |||
"label": "Page with reagent description", | |||
"description": "Page containing a description of a reagent. An anchor will be created on that page based on the reagent ID, like this: `#chem_<reagent ID>`.", | |||
"type": "wiki-page-name", | |||
"default": "Chemistry", | |||
"suggested": true | |||
}, | |||
"reagent": { | |||
"label": "Reagent ID", | |||
"example": "egg", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"amount": { | |||
"label": "Amount of reagent", | |||
"example": "3", | |||
"type": "number", | |||
"default": "1", | |||
"suggested": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"amount", | |||
"reagent", | |||
"dest" | |||
], | |||
"description": "A recipe component to use in {{Template:Chem Box Recipe}}." | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 17:31, 24 June 2024
{{Chem Recipe Component|amount=3|reagent=Egg|dest=Cooking}}
produces:
A recipe component to use in {{Template:Chem Box Recipe}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Amount of reagent | amount | no description
| Number | suggested |
Reagent ID | reagent | no description
| String | required |
Page with reagent description | dest | Page containing a description of a reagent. An anchor will be created on that page based on the reagent ID, like this: `#chem_<reagent ID>`.
| Page name | suggested |