Template:Chem box: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
typo
Aliser (talk | contribs)
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}}
{{depends on template|Manual Chem Box}}
}}
}}


Line 11: Line 13:
"params": {
"params": {
"1": {
"1": {
"label": "Reagent name or ID",
"label": "[Auto] Element name or ID",
"type": "line",
"type": "line",
"required": true,
"required": true,
"description": "Reagent name (any casing) or ID (strict casing)."
"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 card.",
"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

Template documentation
view or edit this documentation about template documentation
Uses Lua modules
This template uses Lua modules:

Warning
This template is obsolete, use {{Reagent card}} instead.

Examples

Using reagent ID

{{chem box|Dermaline}}

Dermaline

An advanced chemical that is more effective at treating burn damage than kelotane.

Seems to be translucent.

Using reagent name

{{chem box|polypyrylium oligomers}}

Polypyrylium Oligomers

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 page

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
[Auto] Element name or ID1

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
Linerequired
[Manual] Product namename

no description

Example
Ultravasculine
Linerequired
[Manual] Product IDid

In-game ID of the product. Used to create navigation links to this card.

Example
BuzzochloricBees
Linesuggested
[Manual] Header background colorcolor

Color used for the card header background.

Example
#215263
Linesuggested
[Manual] Header text colortextcolor

Color used for the card header label. Use one of the predefined values whenever possible.

Suggested values
Light Dark
Linesuggested
[Manual] Header text outline colortextcolor_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.

Suggested values
Light Dark
Linesuggested
[Manual] Recipesrecipes

Product recipes. Use {{Recipe Box}} and {{Recipe Component}} to define these.

Stringsuggested
[Manual] Effectseffects metabolisms

What effects does a product cause when consumed (metabolized)?

Stringsuggested
[Manual] Descriptiondesc

Product description

Stringsuggested
[Manual] Physical descriptionphysicalDesc

The X in "seems to be X" part of the description.

Stringsuggested