Template:WQBoolean/doc

From Fallen London Wiki

Helper template for templates that do world quality logic, intended to be used as the condition in an if statement. Example:
{{#if:{{WQBoolean|<quality>|<value>}}|text if true|text if false}}

Returns a non-empty value if the WQ (first parameter) matches the value (optional second parameter) or, with no second parameter, if the WQ is present.

Template parameters

ParameterDescriptionTypeStatus
World Quality1

The page name of the World Quality whose value is to be checked.

Example
The Rat Season:
Pagerequired
Value2

If the World Quality has this value, a non-empty string will be returned. Comparison uses numeric comparison if the value is a number or range, and sub-string matching otherwise so a list of values is also accepted.

Example
Wine-Whisper, Rise-and-Rake or Nitre-Knife
Lineoptional