Template:World Quality Condition/doc
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | The Wiki text to display or hide. This can include large content blocks and Template invocations.
| Content | required |
World Quality | Quality | The title of the World Quality that will control whether/how the content is displayed.
| Page | required |
Value | Value | 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.
| Line | required |
Second World Quality | Quality2 | Up to two World Qualities are allowed. | Page | optional |
Second Value | Value2 | Up to two World Qualities are allowed. | Page | optional |
Variable name | Variable | Changes the name of the variable used to store suppressed text.
| Line | optional |