Template:ObtainTrials/Doc

Introduction
This template generates a path table for use in the How to Obtain section of an Item page. It was created to minimize the amount of Wikitext on the page and to improve readability.

It uses sub-templates for creating individual rows:
 * /Path: The header for a path of trials.
 * /Row: A single trial entry.

Usage

 * The Syntax below includes the sub-templates.
 * The Expanded section shows how to use them for two paths.
 * Refer to the Example page for a full trial set.

Expanded
Expanded Syntax
 * This version shows how to provide the information for two (2) paths with five (5) branches with two (2) trials per branch.
 * The basic parameters for /Row have been condensed to one row for readability and space purposes.
 * Refer to the Example page for a full illustration.

Parameters
The parameters listed are for all templates as shown in the Syntax above.

Values for "paths"
 * type: Type of weapon or armor trials being shown. Example: Staff This is used to generate a category link in the form of  Trials.
 * branches: Maximum number of branches in the trial paths. This is usually 5 or 6.
 * paths: All of the Trial paths that require the item. NOTE: When the item changes to a different name, the path ends. Repeat the Path+Row sets for each trial path that uses the item.
 * /Path: When a new trial set is started, this template is used first.
 * branches: Maximum number of branches in the trial paths. This must match the value provided for branches in the base template.
 * path: Type of Trial path. This should equal Physical, an element name such as Light, or a specialized path such as Relic/Mythic.
 * new-item: The new item rewarded at the completion of the path. Even if the path has more trials using the new item, the path must end for the current item!
 * stats: The complete statistics of the new item.
 * /Row: NOTE: Each trial in a path gets its own row. The first row should be the same as the item shown in the page. The last row should be the item that it changes to.
 * branches: Maximum number of branches in the trial path. This must match the value provided for branches in the base template.
 * row: Current row number. For Trials: Values 1 and 2 are used for alternating row styling. Use the same value for trials within the same branch. For Item Change: A value of 3 indicates the final row where the item changes. (see example)
 * branch: Which branch the trial is in.
 * trial: The number of the trial.
 * reward: The stats rewarded upon completion of the trial. Format: NOTE: If the Row is for the final item and/or the level changes, the format is:
 * new-item: Name of the new item rewarded. Only used in the last row. This should match the value provided for new-item in /Path.