模板:狗添加:修订间差异
来自RIA | Wiki
更多操作
建立内容为“<includeonly> {{Mbox | type = notice | image = 40px | text = <p>为了您的安全, 本页面添加了一些狗。这可以预防狗…”的新页面 |
修复 |
||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly><!-- | ||
{{Mbox | -->{{Mbox | ||
| type = notice | | type = notice | ||
| style = border-color: rgb(162, 169, 177); | |||
| image = [[File:狗.gif|40px]] | | image = [[File:狗.gif|40px]] | ||
| text = | | text = | ||
| 第12行: | 第13行: | ||
}}, 狗浓度为{{{level|{{{1|<strong class="error" style="font-size: inherit;">[[Template:Mbox-狗添加]]中的错误:未指定<code>level</code>参数。</strong>}}}}}}级。</p> | }}, 狗浓度为{{{level|{{{1|<strong class="error" style="font-size: inherit;">[[Template:Mbox-狗添加]]中的错误:未指定<code>level</code>参数。</strong>}}}}}}级。</p> | ||
| cat = [[Category:加狗主义]] | | cat = [[Category:加狗主义]] | ||
}} | }}<!-- | ||
</includeonly><!-- | --></includeonly><!-- | ||
--><noinclude> | --><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
2021年4月11日 (日) 10:41的版本
基于{{Mbox}}的狗添加模板, 用于标记加狗主义页面。
模板会将页面分类至Category:加狗主义中。
使用
参数
- level, 1
- 加狗等级, 可用值为
1,2,3。 - demospace
- 测试用, 详见Template:Mbox#关于_demospace。
示例
{{狗添加
| level = 1
}}
{{狗添加
| level = 2
}}
{{狗添加
| level = 3
}}
错误
当你没设置 level 参数或是将其设置成了无效值时, 模板会抛出错误:
{{狗添加}}
{{狗添加
| level = 100
}}
模板数据
模板用于标记加狗主义页面
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 加狗等级 | level 1 | 可用值有 «1», «2», «3» | 数字 | 可选 |
| demospace | demospace | 演示用参数, 不可在正常页面中使用, 指定模板的外观。 | 字符串 | 可选 |