Template:Category see also if exists/doc:修订间差异

删除的内容 添加的内容
doc 转中文简体
取消示例段落
 
(未显示2个用户的3个中间版本)
第1行:
{{Documentation subpage}}<!-- 在本行下编辑模板说明 -->
<!-- 在本行下编辑模板说明 -->
{{lua|Module:SeeCategory see also if exists}}
{{high use|2611}}{{NODOC}}
 
此模板用于生成"参见"分类的顶注,仅列出'''实际存在'''的分类页面。
{{Category hatnote templates}}▼
 
== 用法 ==
<includeonly>{{sandbox other||▼
<pre>{{Category see also if exists|分类1|分类2|...}}</pre>
 
== 参数 ==
; 位置参数(可多个)
: 分类名称。可带或不带 <code>Category:</code> 前缀。
 
== 工作原理 ==
调用 [[Module:Category see also if exists]],遍历所有参数,用 <code>mw.title.exists</code> 检查分类是否存在,仅输出存在的分类。
 
== 参见 ==
* [[Module:Category see also if exists]]
▲{{Category hatnoteHatnote templates}}
 
▲<includeonly>{{sandbox other||
[[Category:顶注模板]]
}}</includeonly>