Difference between revisions of "Template:Recipe"
m |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>This is a | + | <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 | + | 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 <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: | ||
− | |||
<pre>{{Grid/Inventory Table | <pre>{{Grid/Inventory Table | ||
|A1 = Straw |B1 = Straw | |A1 = Straw |B1 = Straw | ||
Line 12: | Line 16: | ||
}}</pre> | }}</pre> | ||
− | + | 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 | + | ---- |
+ | |||
+ | 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
Below is a list of Recipes saved here (automatically updated):