User:Documentalist/Walkthrough (Skyrim)/Item Templates

Items
The templates in this section, define the items in Skyrim and how these items are presented in this Wiki. We distinguish 2 categories of templates: The design above, enables us to define a certain property value once, and use it multiple times. If we change the property value, all pages using the property will reflect these changes automagically. The same is true for a format. This improves consistency and reduces maintenance. It's maybe a bit 'deep' in the beginning, but when you start using it, and experience the power and flexibility it brings, I'm sure you'll like it.
 * "item data" templates, each providing the storage of, and access to all properties of 1 item.
 * "item format" templates, each presenting items in certain format.

Item properties
All items have the properties:
 * id
 * name
 * value
 * weight

All weapons have in addition the property:
 * damage

All apparel has in addition the property:
 * armor

Item data
The item data page stores the data of one item. On the items page you'll find a list of all item data pages.

This template is to query the items and build an item table body. As input it requires the item class and the table row format.

Items page
The template items page outputs a filter and an items table.

Wiki text: Rendered text:

Items table
The template Items table outputs an item table.

Wiki text: Rendered text:

Item header row
The template Item header row requires columns and root as input and produces a element (that contains 2..6 elements) as output.

Wiki text: Rendered text:

Item table row
The template Item table row requires columns, item and root as input and produces a element (that contains 2..6 elements) as output.

Wiki text: Rendered text:

Wiki text: Rendered text:

Wiki text: Rendered text:

Columns
These templates require number in the range [1..5] as input and produce the column names as output. These templates are used to reduce the number of parameters of the templates: Item table row, Item header row, Items table, and Items page.

Table header cells
These templates require root and item as input and produce a element as output. These header cell templates are used as parameter values in header row calls.

Armor header cell

Damage header cell

Edit header cell

Effect1 header cell

Effect2 header cell

Effect3 header cell

Effect3 header cell

Id header cell

Name header cell

Value header cell

Weight header cell

Table cell templates
These templates require root and item as input and produce a element as output. These table cell templates are used in the Item table row to convert a column name to a table cell.

Armor table cell

Wiki text: Rendered text:

Damage table cell

Wiki text: Rendered text:

Effect1 table cell

Effect2 table cell

Effect3 table cell

Effect4 table cell

Id table cell

Wiki text: Rendered text: The template Id is used to format the identifier itself.

Name table cell

Wiki text: Rendered text:

Value table cell

Wiki text: Rendered text:

Weight table cell

Wiki text: Rendered text: