Template:Chem box: Difference between revisions
typo |
merged manual chem box into this template, adding params for manual definition |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke: Chem box|generate_chem_box|{{{1}}}}}</includeonly><noinclude> | <includeonly>{{#if: {{{1|}}}<!-- | ||
-->|{{#invoke: Chem box|generate_chem_box|{{{1}}}}}<!-- | |||
-->|{{#invoke: Chemistry|reagent_card}}<!-- | |||
-->}}</includeonly><noinclude> | |||
{{docs|bb= | {{docs|bb= | ||
{{uses lua|Chem box | {{uses lua|Chem box|Chemistry}} | ||
}} | }} | ||
Line 11: | Line 13: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": " | "label": "[Auto] Element name or ID", | ||
"type": "line", | "type": "line", | ||
"required": true, | "required": true, | ||
"description": " | "description": "Element name (any casing) or ID (strict casing). Lookups the specified reagent in the database. Specify either this, or manual fields, but not both.", | ||
"example": "Dermaline / Polypyrylium Oligomers" | |||
}, | |||
"id": { | |||
"label": "[Manual] Product ID", | |||
"description": "In-game ID of the product. Used to create navigation links to this card.", | |||
"example": "BuzzochloricBees", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"color": { | |||
"label": "[Manual] Header background color", | |||
"description": "Color used for the card header background.", | |||
"example": "#215263", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"textcolor": { | |||
"label": "[Manual] Header text color", | |||
"description": "Color used for the card header label. Use one of the predefined values whenever possible.", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"Light", | |||
"Dark" | |||
], | |||
"suggested": true | |||
}, | |||
"textcolor_outline": { | |||
"label": "[Manual] Header text outline color", | |||
"description": "Color used for the card header label outline. By default, uses the opposite of the text color (whenever possible). Use one of the predefined values if possible.", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"Light", | |||
"Dark" | |||
], | |||
"suggested": true | |||
}, | |||
"name": { | |||
"label": "[Manual] Product name", | |||
"example": "Ultravasculine", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"recipes": { | |||
"label": "[Manual] Recipes", | |||
"description": "Product recipes. Use {{Recipe Box}} and {{Recipe Component}} to define these.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"desc": { | |||
"label": "[Manual] Description", | |||
"description": "Product description", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"physicalDesc": { | |||
"label": "[Manual] Physical description", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "The X in \"seems to be X\" part of the description." | |||
}, | |||
"effects": { | |||
"aliases": [ | |||
"metabolisms" | |||
], | |||
"label": "[Manual] Effects", | |||
"description": "What effects does a product cause when consumed (metabolized)?", | |||
"type": "string", | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
"description": "Generates a reagent | "description": "Generates a card describing a reagent/food item/element/etc., their recipe and effects when consumed. Uses a dataset to fetch the data.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1", | ||
"name", | |||
"id", | |||
"color", | |||
"textcolor", | |||
"textcolor_outline", | |||
"recipes", | |||
"effects", | |||
"desc", | |||
"physicalDesc" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 10:00, 27 May 2025
Examples
Using reagent ID
{{chem box
↓
Dermaline
Recipe
Effects
An advanced chemical that is more effective at treating burn damage than kelotane.
Seems to be translucent.
Using reagent name
{{chem box
↓
Polypyrylium Oligomers
Recipe
Effects
A purple mixture of short polyelectrolyte chains not easily synthesized in the laboratory. Heals asphyxiation and brute damage. Stops bleeding over time.
Seems to be pungent.
List of all reagents
See also
- {{Manual chem box}} - same as this, but is filled out manually. Not dependent on the dataset.
Generates a card describing a reagent/food item/element/etc., their recipe and effects when consumed. Uses a dataset to fetch the data.
Parameter | Description | Type | Status | |
---|---|---|---|---|
[Auto] Element name or ID | 1 | Element name (any casing) or ID (strict casing). Lookups the specified reagent in the database. Specify either this, or manual fields, but not both.
| Line | required |
[Manual] Product name | name | no description
| Line | required |
[Manual] Product ID | id | In-game ID of the product. Used to create navigation links to this card.
| Line | suggested |
[Manual] Header background color | color | Color used for the card header background.
| Line | suggested |
[Manual] Header text color | textcolor | Color used for the card header label. Use one of the predefined values whenever possible.
| Line | suggested |
[Manual] Header text outline color | textcolor_outline | Color used for the card header label outline. By default, uses the opposite of the text color (whenever possible). Use one of the predefined values if possible.
| Line | suggested |
[Manual] Recipes | recipes | Product recipes. Use {{Recipe Box}} and {{Recipe Component}} to define these. | String | suggested |
[Manual] Effects | effects metabolisms | What effects does a product cause when consumed (metabolized)? | String | suggested |
[Manual] Description | desc | Product description | String | suggested |
[Manual] Physical description | physicalDesc | The X in "seems to be X" part of the description. | String | suggested |