模板:Default:修订间差异

来自Limbo Wiki
(把模板修了一半)
无编辑摘要
第6行: 第6行:
{{#if:{{{title|}}}|<td style="{{{title-style|}}};{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}">{{{title}}}</td></tr>}}
{{#if:{{{title|}}}|<td style="{{{title-style|}}};{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}">{{{title}}}</td></tr>}}


<tr><td style="{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}{{{content-style|}}}">{{{content|<div style="font-size:1.1em">'''警告:你还没有添加内容!'''</div>}}}</td>
<tr><td style="{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}{{{content-style|}}}">{{{text|<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>}}
{{#if:{{{below|}}}|<tr><td style="font-size:0.8em;{{#if:{{{backgroundColor}}}|background-color:{{{backgroundColor}}};}}{{{below-style|}}}">{{{below}}}</td></tr>}}
第21行: 第21行:
|title-style:<题目风格>
|title-style:<题目风格>
|backgroundColor:<背景颜色>
|backgroundColor:<背景颜色>
|content:<文字内容>
|text:<文字内容>
}}
}}
例子:
例子:
第28行: 第28行:
|title=题目
|title=题目
|backgroundColor=#ffff11
|backgroundColor=#ffff11
|content=123
|text=123
|below=456
|below=456
}}
}}
</noinclude>
</noinclude>

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


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

Icon-info.png 题目
123
456