We've Moved! Just as Gamepedia has joined forces with Fandom, this wiki had joined forces with our Fandom equivalent. The wiki has been archived and we ask that readers and editors move to the now combined wiki on Fandom. Click to go to the new wiki.

Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Template:Interactions

From The Vault - Fallout Wiki
Jump to: navigation, search
Label? Label? Label?
Template documentation (for the template shown above, sometimes hidden or invisible)

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

{{Interactions
|labelA    =Label of first column
|labelB    =Label of second column
|labelC    =Label of third column
|textA1    =Essential
|inputA1   ={{{essential|}}}
|textB1    =Merchant
|textB1-1  =Sells {{{wares|}}}
|typeB1-1  =phrase
|inputB1-1 ={{{wares|}}}
|textC1    =Starts quests:
|typeC1-1  =plain
|inputC1-1 ={{{quests started|}}}
}}

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 type parameters below).

Parameters

RequiredIcon required.png
(default: none)
labelA, labelB, labelC

Column headlines.

Sometimes required or at least one requiredIcon semi-required.png
(default: none)
textA1 - textA5, textB1 - textB5, textC1 - textC5

Displayed text/labels for main interaction items.

OptionalIcon optional.png
(default: none)
textA1-1 - textA1-3, textA2-1 - textA2-3, textA3-1 - textA3-3, ...

Displayed text/labels for sub-items of the respective main interaction items. For example, textA1-1 is the displayed text for the first sub-item of interaction A1, textA1-2 the text for the second sub-item etc.

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

OptionalIcon optional.png
(default: "binary")
typeA1-1 - typeA1-3, typeA2-1 - typeA2-3, typeA3-1 - typeA3-3, ...

Determines valid inputs and displayed layout for the respective sub-item. type 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 text above) is displayed if "yes" is entered.
  • phrase: Displays user input in the middle of a preset phrase. If this option is used, text contains the phrase in question and must contain the respective input parameter in the place where the user input should appear.
  • plain: Displays user input without any additional formatting. The corresponding text 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.

Sometimes required or at least one requiredIcon semi-required.png
(default: none)
inputA1 - inputA5, inputA1-1 - inputA5-3, ...

The parameters users should fill out in articles. For each interaction item there needs to be a corresponding input 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 type parameter; see above.

Example

{{Interactions
|labelA    =Label of first column
|labelB    =Label of second column
|labelC    =Label of third column
|textA1    =Essential
|inputA1   ={{{essential|}}}
|textB1    =Merchant
|textB1-1  =Sells {{{wares|}}}
|typeB1-1  =phrase
|inputB1-1 ={{{wares|}}}
|textC1    =Starts quests:
|typeC1-1  =plain
|inputC1-1 ={{{quests started|}}}
}}

results in:

Label of first column Label of second column Label of third column
Essential: No
Merchant: No
Starts quests:: No

With the specified parameters filled in:

Label of first column Label of second column Label of third column
Essential: Yes
Merchant: Yes
Starts quests:: Yes
  • Search for the Holy Grail

Technical

Documentation transcluded from Template:Interactions/doc.