Template:WQBoolean
From Fallen London Wiki
Template documentation (for the above template, sometimes hidden or invisible)
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
World Quality | 1 | The page name of the World Quality whose value is to be checked.
| Page | required |
Value | 2 | 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.
| Line | optional |
Visit Template:WQBoolean/doc to edit this text! (How does this work?)