“Template:Infobox”与“Template:Infobox/brick”:页面之间的差异

H萌娘,万物皆可H的百科全书!
(页面间差异)
跳到导航 跳到搜索
imported>Irukaza
(文本替换 - 替换“{{萌百:”为“{{萌百嵌入|模板:”)
 
imported>Nostalgia
(创建页面,内容为“<noinclude>{| class="wikitable-green" </noinclude> |- {{ #if: {{{column1|}}} | {{!}} {{{column1 style|}}} {{!}} {{{column1|}}} }}{{ #if: {{{column2|}}} | {{!}}{{!}...”)
 
第1行: 第1行:
<includeonly>{| class="{{{class|infobox}}}" align={{{align|right}}} style="display:table; font-size:{{{font-size|89%}}}; {{{text-align|text-align:center}}}; width:{{{width|}}}; max-width:{{{max-width|100%}}}; float:{{{float|right}}}; background-color:{{{bg-color|#FFF}}};"
<noinclude>{| class="wikitable-green" </noinclude>
{{{title-main|{{!}} colspan="{{{colspan-site|2}}}" style="background-color:{{{title-color|#26ca9b}}}; color:{{{text-color|#FFFFFF}}}; font-size:100%; padding:1em;" {{!}} {{{Title|}}} }}}
|-
|-
{{#if: {{{image|}}} |
{{ #if: {{{column1|}}} | {{!}} {{{column1 style|}}} {{!}} {{{column1|}}} }}{{ #if: {{{column2|}}} | {{!}}{{!}} {{{column2 style|}}} {{!}} {{{column2|}}} }}{{ #if: {{{column3|}}} | {{!}}{{!}} {{{column3 style|}}} {{!}} {{{column3|}}} }}{{ #if: {{{column4|}}} | {{!}}{{!}} {{{column4 style|}}} {{!}} {{{column4|}}} }}
{{!}} colspan= "{{{colspan-site|2}}}" {{!}} [[File:{{{image}}}|{{#if:{{{size|}}} | {{{size}}} | 285px}}]]<br/>{{{caption| }}}
|{{!}} colspan= "{{{colspan-site|2}}}" {{!}}{{{image-lostmessage|}}}
}} 
|-
|-
{{#if: {{{tabs| }}}|
<noinclude>|}</noinclude><noinclude>[[分类:信息 模板]]</noinclude>
{{!}} colspan="{{{colspan-site|2}}}" {{!}} {{{tabs| }}}
|
}}
{{Infobox/brick|column1= {{{Row x1|}}} |column1 style= {{{Row x1 style|}}} colspan="{{{colspan-site|2}}}"  }}
{{Infobox/brick|column1= {{{Row x2|}}} |column1 style= {{{Row x2 style|}}} colspan="{{{colspan-site|2}}}"  }}
{{#vardefine:maxidx|0}}{{#forargs:Row |k|v|{{#if:{{#vardefineecho:idx|{{str_match|str={{#var:k}}|ptn=^(%d+) title$}}}}|
{{#ifexpr:{{#var:maxidx}}<{{#var:idx}}|{{#vardefine:maxidx|{{#var:idx}}}}}}
}}}}
{{#invoke:loop|loop|time=1|{{#var:maxidx}}
|do=<nowiki>
{{Infobox/brick|column1= {{{Row {{#var:time}} title|}}}|column1 style= {{{Row {{#var:time}} titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}"
|column2= {{{Row {{#var:time}} info|}}}|column2 style={{{Row {{#var:time}} infostyle| {{{Row infostyle|}}} }}} }}
</nowiki>
}}
{{Infobox/brick|column1= {{{Row h1 title|}}} |column1 style= {{{Row h1 titlestyle|}}} colspan="{{{colspan-site|2}}}" bgcolor="{{{under-column-color|#62bca9}}}" }}
{{Infobox/brick|column1= {{clear}}
{{{Row h1 info|}}} |column1 style= {{{Row h1 infostyle|}}} colspan="{{{colspan-site|2}}}" }}
{{Infobox/brick|column1= {{{Row h2 title|}}} |column1 style= {{{Row h2 titlestyle|}}} colspan="{{{colspan-site|2}}}" bgcolor="{{{under-column-color|#62bca9}}}" }}
{{Infobox/brick|column1= {{clear}}
{{{Row h2 info|}}} |column1 style= {{{Row h2 infostyle|}}} colspan="{{{colspan-site|2}}}" }}
|-
{{{Row b1| }}}
|-
{{{Row b2| }}}
|}</includeonly><noinclude>{{萌百嵌入| 模板:Infobox}}</noinclude>

2016年6月3日 (五) 18:29的版本