3,072 バイト追加
、 2021年2月26日 (金) 23:02
<includeonly>{{#ifeq:{{lc:{{{any|no}}} }} | yes
| {{Terrain requirement/Any terrain}}
| {{Ifeqall
| compare = yes
| output = {{Terrain requirement/Any terrain}}
<!-- Different display style depending on "mode". -->
| default = {{#switch: {{lc:{{{mode|table}}} }}
| sentence = This building can only be built in {{Sentence list
<!-- All available terrain parameters (count=14) -->
| {{#ifeq: {{lc: {{{desert|}}} }} | yes |<!-- -->{{iconify|Desert}} }}
| {{#ifeq: {{lc: {{{desert mountains|}}} }} | yes |<!-- -->{{iconify|Desert Mountains}} }}
| {{#ifeq: {{lc: {{{drylands|}}} }} | yes |<!-- -->{{iconify|Drylands}} }}
| {{#ifeq: {{lc: {{{farmlands|}}} }} | yes |<!-- -->{{iconify|Farmlands}} }}
| {{#ifeq: {{lc: {{{floodplains|}}} }} | yes |<!-- -->{{iconify|Floodplains}} }}
| {{#ifeq: {{lc: {{{forest|}}} }} | yes |<!-- -->{{iconify|Forest}} }}
| {{#ifeq: {{lc: {{{hills|}}} }} | yes |<!-- -->{{iconify|Hills}} }}
| {{#ifeq: {{lc: {{{jungle|}}} }} | yes |<!-- -->{{iconify|Jungle}} }}
| {{#ifeq: {{lc: {{{mountains|}}} }} | yes |<!-- -->{{iconify|Mountains}} }}
| {{#ifeq: {{lc: {{{oasis|}}} }} | yes |<!-- -->{{iconify|Oasis}} }}
| {{#ifeq: {{lc: {{{plains|}}} }} | yes |<!-- -->{{iconify|Plains}} }}
| {{#ifeq: {{lc: {{{steppe|}}} }} | yes |<!-- -->{{iconify|Steppe}} }}
| {{#ifeq: {{lc: {{{taiga|}}} }} | yes |<!-- -->{{iconify|Taiga}} }}
| {{#ifeq: {{lc: {{{wetlands|}}} }} | yes |<!-- -->{{iconify|Wetlands}} }}
}} terrain.
| table = This building can only be built in the following terrain:
{{Terrain requirement/Table
<!-- All available terrain parameters (count=14) -->
<!-- Note: also edit table subtemplate if adding support for more terrain types. -->
|desert= {{{desert}}}
|desert mountains= {{{desert mountains}}}
|drylands= {{{drylands}}}
|farmlands= {{{farmlands}}}
|floodplains= {{{floodplains}}}
|forest= {{{forest}}}
|hills= {{{hills}}}
|jungle= {{{jungle}}}
|mountains= {{{mountains}}}
|oasis= {{{oasis}}}
|plains= {{{plains}}}
|steppe= {{{steppe}}}
|taiga= {{{taiga}}}
|wetlands= {{{wetlands}}}
}}
| #default = <span style="color: red; font-size: 11px;">(unrecognized string “{{{mode}}}” for [[Template:Terrain requirement]])</span>[[Category:Pages with unrecognized mode strings]]
}}
<!-- All available terrain parameters (count=14) -->
| {{{desert}}}
| {{{desert mountains}}}
| {{{drylands}}}
| {{{farmlands}}}
| {{{floodplains}}}
| {{{forest}}}
| {{{hills}}}
| {{{jungle}}}
| {{{mountains}}}
| {{{oasis}}}
| {{{plains}}}
| {{{steppe}}}
| {{{taiga}}}
| {{{wetlands}}}
}}
}}<!--
--></includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>