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.

Template:Interactions/aux

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

Auxiliary template for {{Interactions}}. It should not be used directly in articles; use {{Interactions}} instead.

This template creates a single interaction item with up to 3 sub-items.

Usage

{{Interactions/aux
|maininput =User input for the main item
|maintext  =Example label
|sub1input =User input for the sub-item
|sub1text  =Example sub-label
|sub1type  =plain
}}

Parameters

Sometimes required or at least one requiredIcon semi-required.png
(default: none)
maininput

User input for the main interaction item. Only required/effective if no sub-items are specified; otherwise the output for the main field is determined by the input for the sub-item(s).

RequiredIcon required.png
(default: none)
maintext

The displayed text/label for the main interaction item.

OptionalIcon optional.png
sub1input, sub2input, sub3input

User input for the respective sub-item.

OptionalIcon optional.png
sub1text, sub2text, sub3text

The displayed text/label for the respective sub-item. How exactly this text is displayed depends on the corresponding subtype parameter; see below.

OptionalIcon optional.png
(default: "binary")
sub1type, sub2type, sub3type

Determines valid inputs and displayed layout for the respective sub-item.

Possible choices are:

  • binary: Creates "yes"/"no"-type field. The text (see subtext above) is displayed if "yes" is entered.
  • phrase: Displays user input in the middle of a preset phrase. If this option is used, subtext 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 subtext 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.

Documentation transcluded from Template:Interactions/aux/doc.