Template:Reagent card: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
uses lua
Line 4: Line 4:
{{docs|bb=
{{docs|bb=
{{wip}}
{{wip}}
{{uses lua|Chemistry}}
{{uses common styles}}
{{uses common styles}}
{{uses template styles}}
{{uses template styles}}

Revision as of 08:03, 27 May 2025

Template documentation
view or edit this documentation about template documentation
Unfinished page!

This page or template is a work in progress. If you wish to make changes, make sure the page is not currently being worked on by using History tab.

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

Lua error in Module:Chemistry at line 224: not impl.

Using reagent name

{{reagent card|polypyrylium oligomers}}

Lua error in Module:Chemistry at line 224: not impl.

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

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified