Template:Common building:修订间差异

无编辑摘要
无编辑摘要
 
(未显示同一用户的1个中间版本)
第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="width:150px;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" | {{R|'''{{PAGENAME}}'''|{{{Building|}}}}}
| align=center bgcolor={{purple 1}} style="color:#FFFFFF" | {{R|'''{{PAGENAME}}'''|{{{Building|}}}}}
第6行: 第6行:
|-
|-
{{{no_pre|
{{{no_pre|
{{!}} align=center bgcolor=mediumorchid{{!}} '''前提条件 ''' }}}
{{!}} align=center bgcolor=mediumorchid{{!}} '''前提条件''' }}}
|-
|-
| colspan=8 style="width: 150px;" |
| colspan=8 style="width: 150px;" |
{| align=center cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
{| align=center cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
| style="border-left: 5px solid #E8C0E8; border-right: 5px solid #{{purple 3}};" | {{{pre|}}}
| {{{pre|}}}
|}
|}
|-
|-
{{{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;" |

2023年7月9日 (日) 23:48的最新版本

Common building
前提条件
费用
效果

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”。 查看表格.