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 have no page of their own (there is no Palm Wood Table page): Most of these recipes should be stored on their main ingredient's page (the Palm Wood Table recipe would be stored on Palm Wood page). Armor piece recipes should be stored on their armor pages. ''The natural procedure for editors is to search for the item, and go where ever the search (or redirect) takes them, and edit the recipe there. Hmm... some redirects lead editors to a "group" page. I may need to re-think this.''

Say these are wiki pages:

Rich Mahogany page
Would contain the recipes for all items whose name begins with "Rich Mahogany".

testing...

    hope
 * tool = Sawmill | toolspan = 2
 * result = Rich Mahogany Bed | link = no |
 * Rich Mahogany | 15
 * Silk | 15
 * tool = Work Bench | toolspan = 1
 * result = Rich Mahogany Table | link = no | id = 639 |
 * Rich Mahogany | 8

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



  

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.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.

Section names are made from
I'm trying to keep abbreviations between 3 and 5 characters long. Notes tool = Sawmill | toolspan = 30 crafts row |top=y