Template:Count
0
此Template被引用於約9,300個頁面。 為了避免造成大規模的影響,所有對此Template的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
概要
本模板返回传入参数的数量,最多支持10个参数。当没有参数传入时返回base(默认为0)
參數及使用方法
Set base=0 or base=1 to change from the default value returned if there are no defined parameters. (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))
範例
Note: {{ Count/testcase1 }} tests nesting of templates calling {{ Count }}.
注意事项
重定向
模板编辑说明
參見
- {{Counter}}
- {{條目計數}}
- module:ParameterCount, with more options
上述文档嵌入自Template:Count/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (编辑)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |