Module:Materials/Data/doc

Usage
This is the subpage for Module:Materials, and stores the data needed for the module to function and outputs the material.

Inserting a new source/availability
When adding a new smaterial to be used on pages, the following syntax must be inserted into the main  table on Module:Materials/Data. Note that the table is split between and. Each material added must be added under its appropriate section.
 * describes the name of the material that the editor will write for the material templates. There is also a second instance of, which can also feature a different text to its first instance. To use the   parameter for certain instances (e.g.  and , leave the second instance blank.
 * requires an image (preferably an icon) to be added. It must include the filename extension.
 * describes the default size that  will be presented in.
 * describes the link that the player will click on (provided that the link is present). To use the  parameter for certain instances (e.g.  and ), leave this blank.
 * is optional, and is used to display specialized wikitext.

Each materialmust then be added under their appropriate section.

Example
"Wood" is the  in both instances that it appears. "Item:Wood (New Horizons)" is the  and has a special wikitext presented in , although it will be unused in this instance. Its  is "Wood NH Inv Icon.png", and the   is set to "15px".

The data is under the  table, so the data can be accessed by the Material template.

The output is:

"Cotton" is the, but it is blank in its second instance, along with its. Its  is "Cotton PC Icon.png", and the   is set to "20px". Its  is simply "Cotton", and will provide no links at all.

The data is under the  table, so the data can be accessed by the PC Material template.

The output is: