Template:Reagent card: Difference between revisions
From Space Station 14 Wiki
No edit summary |
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
Uses Lua module
This template uses Lua module:
Uses template styles
This template uses template styles found in:
Examples
Automatic lookup
Using reagent ID
{{reagent card
↓
Lua error in Module:Chemistry at line 224: not impl.
Using reagent name
{{reagent card
↓
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
Recipe
123
Effects
Lorem clown
A synthetic battery acid. It looks... electrifying.
Seems to be electric.
Data 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 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 |
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 pageNo description.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |