十字军之王3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
×
欢迎访问十字军之王3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
编辑源代码
查看历史
讨论
编辑“
Template:Terrain requirement/doc
”
咯咯炀
(
讨论
|
贡献
)
2020年11月14日 (六) 20:08的版本
(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”)
(差异) ←上一版本 |
最后版本
(
差异
) |
下一版本→
(
差异
)
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template can be used for displaying terrain requirements for buildings. Use this template for consistent, easier to update styling between different buildings. <div class="toclimit-3">__TOC__</div> == Parameters == {| class="wikitable" ! 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. [[#Accepted terrain parameters|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: {| class="wikitable" ! Parameter ! Terrain type |- | desert | {{iconify|Desert}} |- | desert mountains | {{iconify|Desert Mountains}} |- | drylands | {{iconify|Drylands}} |- | farmlands | {{iconify|Farmlands}} |- | floodplains | {{iconify|Floodplains}} |- | forest | {{iconify|Forest}} |- | hills | {{iconify|Hills}} |- | jungle | {{iconify|Jungle}} |- | mountains | {{iconify|Mountains}} |- | oasis | {{iconify|Oasis}} |- | plains | {{iconify|Plains}} |- | steppe | {{iconify|Steppe}} |- | taiga | {{iconify|Taiga}} |- | wetlands | {{iconify|Wetlands}} |} == Usage == ; Syntax : <code><nowiki>{{terrain requirement|any=yes/no|mode=table/sentence|<terrain>=yes/no...}}</nowiki></code> === Examples === ==== Tables (default) ==== {| class="wikitable" ! ! One terrain type ! Two terrain types ! Three terrain types |- ! Syntax | <code><nowiki>{{terrain requirement|desert=yes}}</nowiki></code> | <code><nowiki>{{terrain requirement|desert=yes|mountains=yes}}</nowiki></code> | <code><nowiki>{{terrain requirement|desert=yes|mountains=yes|steppe=yes}}</nowiki></code> |- ! Example | {{Terrain requirement|desert=yes}} | {{Terrain requirement|desert=yes|mountains=yes}} | {{Terrain requirement|desert=yes|mountains=yes|steppe=yes}} |} ==== Sentences ==== {| class="wikitable" ! ! One terrain type ! Two terrain types ! Three terrain types |- ! Syntax | <code><nowiki>{{terrain requirement|mode=sentence|desert=yes}}</nowiki></code> | <code><nowiki>{{terrain requirement|mode=sentence|desert=yes|mountains=yes}}</nowiki></code> | <code><nowiki>{{terrain requirement|mode=sentence|desert=yes|mountains=yes|steppe=yes}}</nowiki></code> |- ! Example | {{Terrain requirement|mode=sentence|desert=yes}} | {{Terrain requirement|mode=sentence|desert=yes|mountains=yes}} | {{Terrain requirement|mode=sentence|desert=yes|mountains=yes|steppe=yes}} |} ==== All terrain ==== ; Syntax : <code><nowiki>{{terrain requirement|any=yes}}</nowiki></code> : ''or'' : <code><nowiki>{{terrain requirement|desert=yes|...|wetlands=yes}}</nowiki></code> ; Result : {{Terrain requirement|any=yes}} == Subtemplates == * [[Template:Terrain requirement/Table|Table]] * [[Template:Terrain requirement/Row|Row]] * [[Template:Terrain requirement/Any terrain|Any terrain]] == See also == * [[Template:Sentence list]]
摘要:
请注意您对十字军之王3百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
十字军之王3百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:Comma list
(
编辑
)
Template:Em dash
(
编辑
)
Template:Icon
(
编辑
)
Template:Icon/d
(
编辑
)
Template:Icon/f
(
编辑
)
Template:Icon/h
(
编辑
)
Template:Icon/j
(
编辑
)
Template:Icon/m
(
编辑
)
Template:Icon/o
(
编辑
)
Template:Icon/p
(
编辑
)
Template:Icon/s
(
编辑
)
Template:Icon/t
(
编辑
)
Template:Icon/w
(
编辑
)
Template:Icon/y
(
编辑
)
Template:Iconify
(
编辑
)
Template:Ifeqall
(
编辑
)
Template:Sentence list
(
编辑
)
Template:Template doc page viewed directly
(
编辑
)
Template:Terrain requirement
(
编辑
)
Template:Terrain requirement/Any terrain
(
编辑
)
Template:Terrain requirement/Row
(
编辑
)
Template:Terrain requirement/Table
(
编辑
)
×
登录
密码
记住登录
加入十字军之王3百科
忘记密码?
其他方式登录