Template:Chem Recipe Component: Difference between revisions

From Space Station 14 Wiki
No edit summary
(desc)
 
(10 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%">[[#chem_{{{reagent}}}|'''{{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} [{{{amount|1}}}]''']]</div></div>
<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

Template documentation
view or edit this documentation about template documentation

{{Chem Recipe Component|amount=3|reagent=Egg|dest=Cooking}}

produces:

A recipe component to use in {{Template:Chem Box Recipe}}.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Amount of reagentamount

no description

Default
1
Example
3
Numbersuggested
Reagent IDreagent

no description

Example
egg
Stringrequired
Page with reagent descriptiondest

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>`.

Default
Chemistry
Page namesuggested