Template:Recipe: Difference between revisions

From TerraFirmaCraft Plus Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>This is a repository for recipe grids that can be transcluded beyond their item page for use in other articles like guides and lists. Updating a recipe here updates it across the wiki.
<noinclude>
This is a central location for crafting recipe grids so they can be transcluded across articles, guides, and lists. Updating the recipe templates here update them anywhere they are used on the wiki.


Each recipe goes on a subpage of this template with the subpage name matching the item's page name -capitalization matters. Make sure the recipe subpage contains nothing but the grid for the recipe.  
Each recipe goes on a subpage of this template with the subpage name matching the item's page name -capitalization matters.  


Example:  
The recipe for thatch should be at <code>'''Template:Recipe/Thatch'''</code>. The recipe for burlap sacks is at <code>'''Template:Recipe/Burlap_Sack'''</code>.
 
When you create or edit the recipe subpage, make sure it contains nothing but the grid for the recipe.
 
For example, the subpage for thatch should contain only:


To make a recipe for thatch, navigate to and/or create the subpage Template:Recipe/Thatch. The subpage should contain only:
<pre>{{Grid/Inventory Table
<pre>{{Grid/Inventory Table
|A1 = Straw |B1 = Straw
|A1 = Straw |B1 = Straw
Line 12: Line 16:
}}</pre>
}}</pre>


and would be called with <nowiki>{{Recipe/Thatch}} </nowiki>.  
To use this recipe on other pages, you would use the wikicode '''<code><nowiki>{{Recipe/Thatch}}</nowiki></code>''' and {{Recipe/Thatch}} would be the result.  


Below is a list of Recipe subpages:
----
 
Below is a list of Recipes saved here (automatically updated):
----
{{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}} }}}}}/|hideredirects=1}}
{{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}} }}}}}/|hideredirects=1}}
<noinclude>
</noinclude>

Latest revision as of 21:43, 3 February 2020

This is a central location for crafting recipe grids so they can be transcluded across articles, guides, and lists. Updating the recipe templates here update them anywhere they are used on the wiki.

Each recipe goes on a subpage of this template with the subpage name matching the item's page name -capitalization matters.

The recipe for thatch should be at Template:Recipe/Thatch. The recipe for burlap sacks is at Template:Recipe/Burlap_Sack.

When you create or edit the recipe subpage, make sure it contains nothing but the grid for the recipe.

For example, the subpage for thatch should contain only:

{{Grid/Inventory Table
|A1 = Straw |B1 = Straw
|A2 = Straw |B2 = Straw
|Output = Thatch
}}

To use this recipe on other pages, you would use the wikicode {{Recipe/Thatch}} and

Straw Straw Straw Block
Straw Straw

would be the result.


Below is a list of Recipes saved here (automatically updated):