User:Ferretwings/Sandbox/Transclusion Test

Time for some database management. (because this wiki has none)

This is a major task, but this is what will be accomplished:

'''The recipe for each item will be stored in one place. If a recipe changes, which can happen in any update, changing that one recipe will change all it's occurrences throughout the wiki. No more hunting for all the occurrences of a single recipe.'''

This is a 3-step process: 1. All the recipe sections need to be named (edit the page to see how this is done in the examples below). 2. The crafts template needs some work to accommodate this change (without breaking any recipes that may get missed). 3. The item recipes need to be transcluded throughout the wiki (see the examples below).

If done carefully, no pages will be broken during this transition, and we/I can take our time making this transition.

When deciding where to store the recipe:
Wherever possible, the item's recipe should be stored on the item's page. For items that have been grouped with identically functioning items (and armor sets), and have no page of their own (there is no Palm Wood Table page), the recipes should be stored on the group page. This seems the most logical, however, the recipes will be spread out throughout the wiki.

Say these are wiki pages:

Beds page
Would contain the recipes for all items with "Bed" in the name.

testing...

 
 * tool = Sawmill | toolspan = 2
 * result = Rich Mahogany Bed | link = no |
 * Rich Mahogany | 15
 * Silk | 15

Tables page
       
 * tool = Work Bench | toolspan = 1
 * result = Rich Mahogany Table | link = no | id = 639 |
 * Rich Mahogany | 8
 * Rich Mahogany Bed
 * Rich Mahogany Platform
 * Rich Mahogany Wood
 * result=Rich Mahogany Bed

sucess

end of hope tr tl l

this should be the list

end end test

test - this should be a table: end table test craft table test

end craft table test



  <section begin=RichM.Sofa/><section end=RichM.Sofa/>

Wood page
Would contain the recipes for all items made of normal Wood. There is already a section on this page for "any wood" (recipes that use any combination of the various forms of wood). The Living Wood recipes are already transcluded into this page. (a rather clumsy translusion)

<section begin=Wood.Table/><section end=Wood.Table/> <section begin=Wood.Bed/><section end=Wood.Bed/> <section begin=Wood.Sofa/><section end=Wood.Sofa/>

Sofa page
This page would contain NO actual recipes. All recipes are transcluded into the page.

Table page
This page would contain NO actual recipes. All recipes are transcluded into the page.

Bed page
This page would contain NO actual recipes. All recipes are transcluded into the page.

Work Bench page
This page would contain NO actual recipes. All recipes are transcluded into the page.

Sawmill page
This page would contain NO actual recipes. All recipes are transcluded into the page.

Notes tool = Sawmill | toolspan = 30 crafts row |top=y

Idea #2
Recipes would be stored on their crafting station page. The crafting stations already contain recipes, so this should be simple. Maybe pull the ids from the id lists.

Sawmill
{DisplayRecipe}}

Wooden Yoyo
{DisplayRecipe}}

Fishing Pole
{DisplayRecipe|Wood Fishing Pole}}

Table and Chair
-could put these recipes under chair

Work Bench and Chair
-could put these recipes under chair

Chair
{DisplayRecipe|Wood Chair}} --Work Bench and Chair-- recipes --Table and Chair-- recipes

Table
{DisplayRecipe|Wood Table}} {DisplayRecipe|Boreal Wood Table}}

Wooden Armor
{DisplayRecipe|Wood Helmet}} {UsedIn}} - should return sections for console & mobile as well

Crimtane Bar
{DisplayRecipe}} - should return sections for console & mobile as well {UsedIn}} - should return sections for console & mobile as well