My Time at Portia Wiki:LSTdata

Labeled Section Transclusion (LST) allows you to transclude only a portion of a given page by dividing the page up into sections. Using LST, it is possible to store a large amount of data on a single page, and transclude that data into multiple other pages.

Code
The page storing the data will include code such as the following:


 * DATA

In the page that the data is being transcluded to, something like the following would be used:



Where PAGE NAME is the name of the page storing the data, and LABEL is the name of section on that page that contains the data.

Example
An example of how data can be stored in sections (in this case, the page where it is stored is called "LSTdata"):

2 
 * Displays as: 2 

Raw crafting material
 * Displays as: Raw crafting material

Logging
 * Displays as: Logging

In the "Hardwood" page, the following code can be used to transclude the relevant sections from the LSTdata page:



In the above example, "LSTdata" is the page name, and "Hardwood sellprice", "Hardwood type", and "Hardwood from" are the labels for the sections that are being transcluded. Visit the Hardwood |here page to see this example in practice.

This concept can be easily extended to work with templates to transclude data automatically into multiple pages:



As long as the labels are consistent with the names of the wiki pages, this allows the template to pull the appropriate information out of the data page based on the page name ("Hardwood" in the above example)

For more information on this extension, visit Wikimedia.