(merge from offical wiki) |
无编辑摘要 |
||
第1行: | 第1行: | ||
{| border=0 cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}}; border:1px solid; border-color:rgba(0,0,0,0); float:{{{float|right}}}; margin: 0 0 8px 8px;" | {| border=0 cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}}; border:1px solid; border-color:rgba(0,0,0,0); float:{{{float|right}}}; margin: 0 0 8px 8px;" | ||
|- style="height: 25px;" | |- style="height: 25px;" | ||
| align=center bgcolor={{purple 1}} style="color:#FFFFFF" | '''{{ | | align=center bgcolor={{purple 1}} style="color:#FFFFFF" | {{R|'''{{PAGENAME}}'''|{{{Building|}}}}} | ||
|- | |- | ||
| <includeonly>style="text-align:center;"|{{{SingleImage|[[Image: Castle {{{Building|1}}}.gif|{{{Building|1}}} of Castle|link=Castle town]][[Image: Tower {{{Building|1}}}.gif|{{{Building|1}}} of Tower|link=Tower town]][[Image: Rampart {{{Building|1}}}.gif|{{{Building|1}}} of Rampart|link=Rampart town]]<br>[[Image: Inferno {{{Building|1}}}.gif|{{{Building|1}}} of Inferno|link=Inferno town]][[Image: Necropolis {{{Building|1}}}.gif|{{{Building|1}}} of Necropolis|link=Necropolis town]][[Image: Dungeon {{{Building|1}}}.gif|{{{Building|1}}} of Dungeon|link=Dungeon town]]<br>[[Image: Stronghold {{{Building|1}}}.gif|{{{Building|1}}} of Stronghold|link=Stronghold town]][[Image: Fortress {{{Building|1}}}.gif|{{{Building|1}}} of Fortress|link=Fortress town]][[Image: Conflux {{{Building|1}}}.gif|{{{Building|1}}} of Conflux|link=Conflux town]]}}}</includeonly> | | <includeonly>style="text-align:center;"|{{{SingleImage|[[Image: Castle {{{Building|1}}}.gif|{{{Building|1}}} of Castle|link=Castle town]][[Image: Tower {{{Building|1}}}.gif|{{{Building|1}}} of Tower|link=Tower town]][[Image: Rampart {{{Building|1}}}.gif|{{{Building|1}}} of Rampart|link=Rampart town]]<br>[[Image: Inferno {{{Building|1}}}.gif|{{{Building|1}}} of Inferno|link=Inferno town]][[Image: Necropolis {{{Building|1}}}.gif|{{{Building|1}}} of Necropolis|link=Necropolis town]][[Image: Dungeon {{{Building|1}}}.gif|{{{Building|1}}} of Dungeon|link=Dungeon town]]<br>[[Image: Stronghold {{{Building|1}}}.gif|{{{Building|1}}} of Stronghold|link=Stronghold town]][[Image: Fortress {{{Building|1}}}.gif|{{{Building|1}}} of Fortress|link=Fortress town]][[Image: Conflux {{{Building|1}}}.gif|{{{Building|1}}} of Conflux|link=Conflux town]]}}}</includeonly> | ||
|- | |- | ||
{{{no_pre| | {{{no_pre| | ||
{{!}} align=center bgcolor=mediumorchid{{!}} ''' | {{!}} align=center bgcolor=mediumorchid{{!}} ''' 前提条件:''' }}} | ||
|- | |- | ||
| colspan=8 style="width: 150px;" | | | colspan=8 style="width: 150px;" | | ||
第14行: | 第14行: | ||
|- | |- | ||
{{{no_cost| | {{{no_cost| | ||
{{!}} colspan=8 align=center bgcolor=mediumorchid{{!}} ''' | {{!}} colspan=8 align=center bgcolor=mediumorchid{{!}} ''' 费用:''' | ||
{{!-}} align=center valign=middle | {{!-}} align=center valign=middle | ||
{{!}} {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} }}} | {{!}} {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} }}} | ||
|- | |- | ||
| colspan=8 align=center bgcolor=mediumorchid style="width: 150px;" | ''' | | colspan=8 align=center bgcolor=mediumorchid style="width: 150px;" | ''' 效果:''' | ||
|- | |- | ||
| colspan=8 style="width: 150px;" | | | colspan=8 style="width: 150px;" | | ||
第24行: | 第24行: | ||
| style="border-left: 5px solid #{{purple 3}}; border-right: 5px solid #E5CCFF; font-size:90%;" | {{{effect|}}} | | style="border-left: 5px solid #{{purple 3}}; border-right: 5px solid #E5CCFF; font-size:90%;" | {{{effect|}}} | ||
|} | |} | ||
|}<noinclude> | |}{{#cargo_store: | ||
_table = building | |||
| Building = {{{Building}}} | |||
| pre = {{{pre}}} | |||
| wood = {{{wood}}} | |||
| mercury = {{{mercury}}} | |||
| ore = {{{ore}}} | |||
| sulfur = {{{sulfur}}} | |||
| crystal = {{{crystal}}} | |||
| gem = {{{gem}}} | |||
| gold = {{{gold}}} | |||
| effect = {{{effect}}} | |||
| SingleImage = {{{SingleImage}}} | |||
}}<noinclude> | |||
== How to use == | == How to use == | ||
第48行: | 第61行: | ||
| <pre> | | <pre> | ||
| no_sulfur =</pre> | | no_sulfur =</pre> | ||
|} | |}{{#cargo_declare: | ||
_table = building | |||
| Building = String | |||
| pre = Wikitext string | |||
| wood = Wikitext string | |||
| mercury = Wikitext string | |||
| ore = Wikitext string | |||
| sulfur = Wikitext string | |||
| crystal = Wikitext string | |||
| gem = Wikitext string | |||
| gold = Wikitext string | |||
| effect = Wikitext | |||
| SingleImage = Wikitext string | |||
}} | |||
[[Category: Building templates|{{PAGENAME}}]]</noinclude> | [[Category: Building templates|{{PAGENAME}}]]</noinclude> |
2023年7月9日 (日) 17:37的版本
前提条件: | ||||||||
| ||||||||
费用: | ||||||||
效果: | ||||||||
|
How to use
Copy the code at the beginning of building article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "Ore" is not the same as "ore".
{{Building | pre = | wood = | mercury = | ore = | sulfur = | crystal = | gem = | gold = | effect = }} |
You can add more "pre rows" as parameters if the building needs more than one. If the building does not require certain resource, you have to add "no_" in front of the parameter and leave it empty. For example
| no_sulfur = |
此模板定义表格“building”。 查看表格.