User:Documentalist/Walkthrough (Skyrim)/Templates

Parameter ranges
A parameter range consists of 2 or more parameters with names that differ only in their last 2 characters. These last 2 characters are digits. The number these digits form is called the index of the parameter. The indices of the parameters in a range, form a consecutive sequence of numbers starting at 01. The number of parameters in the range is called the size of the range.

Parameter range groups
When an object has multiple parameter ranges with the same size, 2 or more of those indices can form a group. In grouped parameter ranges all parameters with the same index describe the same child object. One of the ranges in a group is called the key. Parameter ranges that are not part of a group are called solitary parameter ranges.

Example parameter range group: If

Processing ranges
Templates process the parameters in their solitary parameter ranges in ascending index sequence. If one of the parameters in the range is empty, parameters with a higher index will be skipped (performance issue).

Parameter ranges that for a group are processed in a similar way. If one of the parameters of the key range is empty all parameters in the group with a higher index will be skipped.

Style
These templates enable us to use a consistent and easy maintainable style. We would normally put this in the CSS file, but since we can't access that, this is a workable alternative.

Collapsibles
A Collapsibles groups one or more Collapsible.

Each row of the Collapsibles can hold 3 collapsed Collapsible and a Collapsibles and an 150px image fit next to each other on screen.



Images
This template is used to add images to a task. An single images template can hold up to 12 images.

If all steps of a task would have a screenshot, that task could combine the pictures and titles to a kind of "cartoon style" walkthrough, attractive and easy to use but a significant effort to make.

Levels
This template is used to define the skill levels.

The template calculates the character experience points (XPcharacter) and the character level.

"Legendaries" is the number of times a skill is made legendary, for all skills in total.

Example 1: Newbie imperial

Example 2: Same imperial a few weeks later

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 formats
The template items page outputs a column filter, a row filter and an items table. example The template items table outputs an item table. rows (header and table)
 * table row. 5 parameters for cells

Table row
The template Table row requires root, item table cell01, and accepts item table02..04 as input and produces a element (that contains 2..6 elements as output.

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 table cell
 * effect1 table cell
 * effect2 table cell
 * effect3 table cell
 * effect4 table cell
 * id table cell
 * name table cell
 * value table cell
 * weight table cell

Table cell templates
These templates require root and item as input and produce a element as output. These table cell templates are used as parameter values in table row calls.
 * Armor table cell.
 * damage table cell
 * effect1 table cell
 * effect2 table cell
 * effect3 table cell
 * effect4 table cell
 * id table cell
 * name table cell
 * value table cell
 * weight table cell

../Templates/Items overview

Inventory
This template is used to define an inventory. The template looks up the weight of the items and calculates the total weight of the inventory.

Objective
This template is used to define an objective.

Examples can be found on this page.

Phase
This template is used to define a phase.

Example of a phase: Getting Started

Task
This template is used to define a task.

Example of a task: Make his way to the Keep

Steps
This template is used to define a step.

Example of a step: Go up the stairs.

Example of a step that branches: Follow Hadvar to the Keep.

Example of a step that joins: Give the Dragonborn a name.

Work in progress
This template is used to signal Work in progress. Example:

Requirement
This template is used to define a requirement. For examples, refer to: Design

Save game (no longer used)
This template is used to mark a good point in the walkthrough to make a save game.