模板:狗添加:修订间差异
来自RIA | Wiki
更多操作
bugfix |
bugfix |
||
| (未显示同一用户的1个中间版本) | |||
| 第5行: | 第5行: | ||
| image = [[File:狗.gif|40px]] | | image = [[File:狗.gif|40px]] | ||
| text = | | text = | ||
<p>为了您的安全,本{{#ifeq:{{yesno|def=|1={{{sect|{{{section}}}}}} }}|yes|章节|{{{sect|{{{section|{{{1|页面}}}}}}}}}}}添加了一些[[狗]]。<span class="hide-when-compact">这可以预防狗缺乏症。 </span></p> | <p>为了您的安全,本{{#ifeq:{{yesno|def=|1={{{sect|{{{section}}}}}} }}|yes|章节|{{{sect|{{{section|{{{1|页面}}}}}}}}}}}添加了一些'''[[狗]]'''。<span class="hide-when-compact">这可以预防狗缺乏症。 </span></p> | ||
<p class="hide-when-compact">本{{#ifeq:{{yesno|def=|1={{{sect|{{{section}}}}}} }}|yes|章节|{{{sect|{{{section|{{{1|页面}}}}}}}}}}}{{#switch: {{{level|{{{1|}}}}}} | <p class="hide-when-compact">本{{#ifeq:{{yesno|def=|1={{{sect|{{{section}}}}}} }}|yes|章节|{{{sect|{{{section|{{{1|页面}}}}}}}}}}}{{#switch: {{{level|{{{1|}}}}}} | ||
| 1 = 添加了一点狗 | | 1 = 添加了一点狗 | ||
| 2 = 添加了一些狗 | | 2 = 添加了一些狗 | ||
| 3 = 狗含量超过75% | | 3 = 狗含量超过75% | ||
| #default = <strong class="error" style="font-size: inherit;">[[Template: | | #default = <strong class="error" style="font-size: inherit;">[[Template:狗添加]]中的错误: 错误的<code>level</code>参数。</strong> | ||
}}, 狗浓度为{{{level|{{{1|<strong class="error" style="font-size: inherit;">[[Template: | }}, 狗浓度为{{{level|{{{1|<strong class="error" style="font-size: inherit;">[[Template:狗添加]]中的错误: 未指定<code>level</code>参数。</strong>}}}}}}级。</p> | ||
| all = 加狗主义 | | all = 加狗主义 | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
2022年8月17日 (三) 23: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 | 演示用参数, 不可在正常页面中使用, 指定模板的外观。 | 字符串 | 可选 |