Template:World Quality Condition

From Fallen London Wiki (Staging)
Template documentation (for the above template, sometimes hidden or invisible)

Make Wiki content update dynamically based on the current value of World Qualities. This uses Semantic MediaWiki under the hood to look at the Current Value on the quality's Wiki page.

In the simple use, given text will only appear if the relevant World Quality has the correct value. If the World Quality has a different value, nothing will display. This can be used to display notices like "This Buyer is more valuable this week." The name of the World Quality is given in the Quality argument, and the relevant value (or a list of values) in the Value argument. An additional quality-value pair can be added with the Quality2 and Value2 arguments.

If the given text is suppressed, it will be stored (concatenated) into a variable, and can be displayed elsewhere on the page by calling the Deferred template. For example, actions that are locked during the current week can be stored in this variable, and displayed under a different heading. By default the variable is named "deferred_text," but this can be overriden by the Variable to concatenate different values into different lists.

Template parameters

ParameterDescriptionTypeStatus
Text1

The Wiki text to display or hide. This can include large content blocks and Template invocations.

Example
This Buyer is currently available.
Contentrequired
World QualityQuality

The title of the World Quality that will control whether/how the content is displayed.

Example
The Rat Season:
Pagerequired
ValueValue

If the World Quality has this value, the Text content will be displayed. Comparison uses sub-string matching, so a list of values is also accepted.

Example
Wine-Whisper, Rise-and-Rake or Nitre-Knife
Linerequired
Second World QualityQuality2

Up to two World Qualities are allowed.

Pageoptional
Second ValueValue2

Up to two World Qualities are allowed.

Pageoptional
Variable nameVariable

Changes the name of the variable used to store suppressed text.

Default
deferred_text
Example
moonphase
Lineoptional