“模板:Infobox/row”的版本间的差异

来自Ballance Wiki
跳转至: 导航搜索
(removed width settings)
2个标签移动版编辑移动网页编辑
 
(未显示同一用户的21个中间版本)
第1行: 第1行:
 
{{#if:{{{header|}}}
 
{{#if:{{{header|}}}
  |<tr {{#if: {{{rowstyle|}}} | style="{{{rowstyle}}}" }}><th colspan="2" {{#if: {{{class|}}} | class="{{{class}}}" }} style="text-align: center; {{{headerstyle|}}}">{{{header}}}</th></tr>
+
  |<tr {{#if: {{{rowstyle|}}} | style="{{{rowstyle}}}; width" }}><th colspan="2" {{#if: {{{class|}}} | class="{{{class}}}" }} style="text-align: center; {{{headerstyle|}}}">{{{header}}}</th></tr>
 
  |{{#if:{{{data|}}}
 
  |{{#if:{{{data|}}}
 
   |<tr {{#if: {{{rowclass|}}} | class="{{{rowclass}}}" }} {{#if: {{{rowstyle|}}} | style="{{{rowstyle}}}" }}>{{#if:{{{label|}}}
 
   |<tr {{#if: {{{rowclass|}}} | class="{{{rowclass}}}" }} {{#if: {{{rowstyle|}}} | style="{{{rowstyle}}}" }}>{{#if:{{{label|}}}
 
   |<th scope="row" style="text-align: left; {{{labelstyle|}}}">{{{label}}}</th>
 
   |<th scope="row" style="text-align: left; {{{labelstyle|}}}">{{{label}}}</th>
     <td {{#if: {{{class|}}} | class="{{{class}}}" }} {{#if: {{{datastyle|}}} | style="{{{datastyle}}}" }}>
+
     <td {{#if: {{{class|}}} | class="{{{class}}}" }} {{#if: {{{datastyle|}}} | style="{{{datastyle}}}" |}}>
 
   |<td colspan="2" {{#if: {{{class|}}} | class="{{{class}}}" }} style="text-align:center; {{{datastyle|}}}">
 
   |<td colspan="2" {{#if: {{{class|}}} | class="{{{class}}}" }} style="text-align:center; {{{datastyle|}}}">
 
   }}
 
   }}

2019年10月19日 (六) 12:29的最新版本