Talk:Guide to Chemistry

From Paradise Station Wiki
Revision as of 20:15, 25 November 2023 by SynthTee (talk | contribs) (Created page with "= Editing Recipes in the Guide = In order to have recursive dropdowns of ingredients inside the text of other recipes, the Guide to Chemistry uses special templates and formatting. Essentially how this works, is that while the name of the chemical, its image, and any notes about the chemical are on the Guide to Chemistry page, the recipe itself is on a separate template page. There are two easy ways to find the template page. While the template pages don't show up...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Editing Recipes in the Guide

In order to have recursive dropdowns of ingredients inside the text of other recipes, the Guide to Chemistry uses special templates and formatting. Essentially how this works, is that while the name of the chemical, its image, and any notes about the chemical are on the Guide to Chemistry page, the recipe itself is on a separate template page.

There are two easy ways to find the template page. While the template pages don't show up normally in wiki search, if you start typing Template:RecursiveChem into the search box, the dropdown will change to a list of the different pages that begin with that. The other option is with the following link: This is a link to all of the RecursiveChem template pages, i.e. the pages you need to edit in order to make changes to the recipes in the guide.

Editing Recipes

Say you want to edit the recipe for Oil. The actual recipe itself is found on the page Template:RecursiveChem/Oil. Once you find that page and click edit, you'll see the following:

1 part {{Tooltip|[[#Welding Fuel|Welding Fuel]]|{{RecursiveChem/Welding Fuel}}}}<br>1 part Carbon<br>1 part Hydrogen 

The Tooltip section is what allows for mouseover to work on the text, linking to the recipe for that ingredient.

For example:

Welding Fuel
Found in welding fuel tanks.

On the Guide to Chemistry page itself, this also links to the ingredient, so that clicking on the text instead of mousing over it will jump you to the ingredient in question.

If the recipe you're editing needs a new tooltip added, you can insert the following text, replacing the %%% with the name of the ingredient you're trying to link to (if you have any trouble with this, the ingredient's text specifically needs to be the text that comes after "RecursiveFood/" in the template page for that ingredient)

{{Tooltip|[[#%%%|%%%]]|{{RecursiveChem/%%%}}}}

Adding New Recipes

!style='background-color:#FFEE88;'|{{anchor|%%%}}[[#%%%|%%%]]
|{{RecursiveChem/%%%}}
|A
|B
|C
|D
|E
|- 

Replace the %%%s with the name of the chemical (such as Styptic Powder), replace the A with what it treats (Suffocation, Burn, Brute), B for the description of the chemical, C for the metabolism rate, D for the overdose threshold and E for addiction chance (Low, Medium, High, N/A).

The first line creates the row of the table, giving it the right background, and then adds the chemical's name, and sets up the ability to jump to the chemical via links. The second line adds in what the chemical is used for. The third inserts the description. The fourth is where you can add the metabolism rate. The fifth adds the overdose threshold and the sixth adds the addiction chance. The seventh line finishes the row of the table.

You then need to add the recipe itself. The easiest way is to save the page you were just editing, scrolling down to your new chemical listing, and clicking on the red link to Template:RecursiveChem/%%%. From there you can add in text and tooltips as above, and whatever you save will appear in the main Guide to Chemistry page. Please be aware that it may take a few minutes for the main page to update when you're editing the Template page after its initial creation, so don't panic if it doesn't work right away!

As an example of how a completed recipe looks, here's the recipe for Perfluorodecalin:

!style='background-color:#FFEE88;'|{{anchor|Perfluorodecalin}}[[#Perfluorodecalin|Perfluorodecalin]]
|{{RecursiveChem/Perfluorodecalin}}
|Suffocation
|Heals 25 respiratory damage per cycle. Has a 33% chance of healing brute and burn damage per cycle as well.
Keeps its healing properties when overdosed, but also causes loss of breath.
|0.2 units per cycle
|4 units
|Medium
|- 

Which shows up as:

Hover over the names of the reagents in the recipe column to see their chemical formulas!
Name Recipe Treatment for Description Metabolism Rate Overdose Threshold Addiction Chance
Perfluorodecalin 1 part Hydrogen
1 part Fluorine
1 part
Oil
1 part
Welding Fuel
Found in welding fuel tanks.

1 part Carbon
1 part Hydrogen

Temperature 374 K
Suffocation Heals 25 respiratory damage per cycle. Has a 33% chance of healing brute and burn damage per cycle as well.

Keeps its healing properties when overdosed, but also causes loss of breath.

0.2 units per cycle 4 units Medium

Additional Notes and Tips

  • Not everything needs a tooltip link, but if the steps to create or acquire it are complex or not obvious, it's probably worth adding it in.
  • The Guide to Food uses the same recursive template system (Template:RecursiveFood/), so it is possible to tooltip link to a food recipe.