模板:Default:修订间差异

来自Limbo Wiki
无编辑摘要
(把模板修了一半)
第1行: 第1行:
<includeonly>
<includeonly>
<div class="infoBox wikitable {{{class|}}}" style="{{#if:{{{width|}}}|width:{{{width|}}}}};max-width:100%;border-left: 10px solid {{{color|#1e90ff}}};{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}">
<table class="wikitable {{{class|}}}"><tr>
<div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}>
<th style="background-color:{{{color|#1e90ff}}}" rowspan="3"><nowiki></nowiki></th>
{{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}}}</div>}}<div class="infoBoxIcon" style="{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}{{{icon-style|}}}">{{{leftimage|[[文件:Icon-info.png|{{#if:{{{smallimage|}}}|25px|50px}}|link=]]}}}</div><div class="infoBoxText" style="{{{text-style|}}}{{{content-style|}}}">{{{text|{{{content|{{{1|'''警告!你还没有添加任何内容'''}}}}}}}}}
 
</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
<th class="icon-cell" rowspan="3" style="{{{icon-style|}}}">{{{leftimage|[[File:Icon-info.png|50px|link=]]}}}</th>
</div>
{{#if:{{{title|}}}|<td style="{{{title-style|}}};{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}">{{{title}}}</td></tr>}}
</div>
 
<tr><td style="{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}{{{content-style|}}}">{{{content|<div style="font-size:1.1em">'''警告:你还没有添加内容!'''</div>}}}</td>
 
{{#if:{{{below|}}}|<tr><td style="font-size:0.8em;{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}{{{below-style|}}}">{{{below}}}</td></tr>}}
 
</table>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
模板使用方法:
模板使用方法:
</br>
<nowiki>
<nowiki>
{{Default
{{Default

2021年11月7日 (日) 01:53的版本


模板使用方法:
{{Default |color:<颜色条颜色,默认#1e90ff> |title:<题目> |title-style:<题目风格> |backgroundColor:<背景颜色> |content:<文字内容> }} 例子:

Icon-info.png 题目
123
456