This template can be used for displaying terrain requirements for buildings. Use this template for consistent, easier to update styling between different buildings.
Parameters
Parameter | Optional? | Description |
---|---|---|
any | Optional (default: no) | When set to "yes", will force the template to display a sentence stating that the building may be built in any terrain. |
mode | Optional (default: table) | Sets the formatting of the terrain requirements. Currently supports two modes: "table", with the terrain requirements shown in a yes/no table for each terrain type; and "sentence", with the terrain requirements shown in sentence form. As a guideline, use "sentence" instead of "table" if it would ease readability, such as when the building may only be built in one or two terrain types. If "any" is set to yes, or if all terrain parameters are equal to "yes", the mode does not change the formatting of the template output. |
<terrain> | Optional (default: no for each terrain) | There is a parameter for each terrain type. See below for accepted terrain types. If set to "yes", the building may be built in the corresponding terrain. If all available terrain types are set to "yes", the result is identical to having the "any" parameter set to "yes". |
Accepted terrain parameters
The following parameters may be used to define terrain requirements for the building:
Usage
- Syntax
{{terrain requirement|any=yes/no|mode=table/sentence|<terrain>=yes/no...}}
Examples
Tables (default)
Sentences
One terrain type | Two terrain types | Three terrain types | |
---|---|---|---|
Syntax | {{terrain requirement|mode=sentence|desert=yes}}
|
{{terrain requirement|mode=sentence|desert=yes|mountains=yes}}
|
{{terrain requirement|mode=sentence|desert=yes|mountains=yes|steppe=yes}}
|
Example | 此建筑可建造于 沙漠地形。 | 此建筑可建造于 沙漠和 山地地形。 | 此建筑可建造于 沙漠, 山地和 草原地形。 |
All terrain
- Syntax
{{terrain requirement|any=yes}}
- or
{{terrain requirement|desert=yes|...|wetlands=yes}}
- Result
- 此建筑可以在任何地形上建造。