Talk:Guide to Food

From Paradise Station Wiki
Revision as of 21:40, 1 November 2020 by PacifistDalek (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 Food uses special templates and formatting....")
(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 Food uses special templates and formatting. Essentially how this works, is that while the name of the food, its image, and any notes about the food are on the Guide to Food and Drinks 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:RecursiveFood 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 RecursiveFood template pages, i.e. the pages you need to edit in order to make changes to the recipes in the guide.

Editing Existing Recipes

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

Combine 10u {{Tooltip|[[#Flour|Flour]]|{{RecursiveFood/Flour}}}}, 10u Milk, 5u {{Tooltip|[[#Sugar|Sugar]]|{{RecursiveFood/Sugar}}}} 

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

For example:

Flour
Grind Wheat in the "all in one grinder"

On the Guide to Food and Drink 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|[[#%%%|%%%]]|{{RecursiveFood/%%%}}}}

Adding New Recipes

If you're adding a totally new recipe, begin by adding the following to the relevant section on the Guide to Food and Drinks page:

!style='background-color:#D0F0C0;'|{{anchor|%%%}}[[#%%%|%%%]]
|[[File:***]]
|{{RecursiveFood/%%%}}
|
|- 

Replace the %%%s with the name of the food (such as Bun), and the *** with the filename of the image of the food that you've uploaded to the wiki (preferably in 64x64, png or gif format), such as bun.png

The first line creates the row of the table, giving it the right background, and then adds the food's name, and sets up the ability to link