Template:Reagent card

From Space Station 14 Wiki
Template documentation
view or edit this documentation about template documentation
Uses Lua module
This template uses Lua module:

Template:Uses common styles

Uses template styles
This template uses template styles found in:

Examples

Automatic lookup

Using reagent ID

{{reagent card|Dermaline}}

Dermaline

Dermaline
Mix
Dermaline [3]
Medicine (0.5u per second)
  • Heals 1.5 heat, 1.5 shock, and 1.5 cold
  • Deals 0.5 brute (≈0.2 blunt, ≈0.2 slash and ≈0.2 piercing), 1 asphyxiation, and 2 cold when there's at least 10u of dermaline
  • Causes jittering when there's at least 10u of dermaline

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

Seems to be translucent.

Using reagent name

{{reagent card|polypyrylium oligomers}}

Polypyrylium Oligomers

No recipes
Medicine (0.5u per second)
  • Heals 3.5 brute (≈1.2 blunt, ≈1.2 slash and ≈1.2 piercing) and 2.5 asphyxiation
  • Deals 3.5 asphyxiation when there's at least 30u of Polypyrylium Oligomers
  • Reduces bleeding

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.

Manual definition

{{Reagent card
| name = Licoxide
| id = Licoxide
| color = #abca
| desc = A synthetic battery acid. It looks... electrifying.
| physicalDesc = electric
| recipe = 123
| effect = Lorem clown
}}

Licoxide

123
Lorem clown

A synthetic battery acid. It looks... electrifying.

Seems to be electric.

Data fields

Fields
Field Definition
name [REQUIRED] This is the name used in the display. It should be in Title Case. However, the data itself comes in lower case, as that's how the localisation files display it.
id This is the ID used as an ID for the reagent card element. The current standard according to the JSON is PascalCase. The ID is almost always the same text as the name, except for when it isn't (looking at you, copper blood)
color This is the colour used in the header. It should be the colour taken from the game's files. It can be any CSS accepted color name, but hex must be proceeded by a hash.
recipes This should contain a joined list of all the relevant recipes used to make the chemical. Each recipe should be inputted as a {{Recipe Box}}, where in each item follows {{Recipe Component}}. For standard chemicals, the |transformer component should take {{Beaker}}. If the chemical requires a certain temperature, it can be passed into the Beaker component as |temperature=999k (replacing 999k with whatever temperature is required).
effects This is the effects list component. It should be listed in this format:
'''Subheading'''
* Effect Description
* Effect Description

In the data, there are three alternative forms of the effects data, but only effectLine should be needed.

desc Reagent description. This should be ended by a full stop.
physicalDesc This is a short descriptor. Use lower case and no full stop.

List of all reagents

See page

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]

This template prefers block formatting of parameters.

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] 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