Template:Interactions/doc

Meta-template for constructing standardized tables with possible NPC interactions. Supports 3 columns with up to 5 interactions each. Every interaction can have up to 3 sub-points.

Usage
The template creates a table with 3 columns. Into each column (A, B, C) up to 5 interactions can be inserted which will display a symbol for "yes" or "no" depending on user input. The displayed icon can either be set directly or by specifying sub-items; if one (or more) of the sub-items contain a positive value, the icon will change to yes. If an interaction has sub-items, the displayed symbol can only be changed via the sub-items.

While the main interactions can only be set to "yes" or "no", sub-items can be of varying types. They always display text; either text entered by the user, text specified in the template or a mixture of both (for details, see the section about  parameters below).

Parameters
labelA, labelB, labelC
 * Column headings (default: none).

textA1 - textA5, textB1 - textB5, textC1 - textC5
 * Displayed text/labels for main interaction items (default: none).

textA1-1 - textA1-3, textA2-1 - textA2-3, textA3-1 - textA3-3 (etc)
 * Displayed text/labels for sub-items of the respective main interaction items. For example,  is the displayed text for the first sub-item of interaction ,   the text for the second sub-item etc.


 * In which manner the text is displayed depends on the corresponding  parameter; see below.

typeA1-1 - typeA1-3, typeA2-1 - typeA2-3, typeA3-1 - typeA3-3 (etc)
 * Determines valid inputs and displayed layout for the respective sub-item (default: "binary").  parameters are only available for sub-items; main interaction items with no sub-items are always of the "binary" type.


 * Possible choices are:
 * binary: Creates "yes"/"no"-type field. The text (see  above) is displayed if "yes" is entered.
 * phrase: Displays user input in the middle of a preset phrase. If this option is used,  contains the phrase in question and must contain the respective   parameter in the place where the user input should appear.
 * plain: Displays user input without any additional formatting. The corresponding  parameter has no effect and is not displayed.


 * For all types entering "no", "none", "-" or nothing will result in the sub-item not being displayed.

inputA1 - inputA5, inputA1-1 - inputA5-3 (etc)
 * The parameters users should fill out in articles (default: none). For each interaction item there needs to be a corresponding  parameter; the only exception are main items with sub-items as their output depends on what the users enter for the sub-items. Expected input depends on corresponding   parameter; see above.

Example
results in:

With the specified parameters filled in:

Technical

 * Auxiliary template: /aux