The editors' meeting has been canceled for technical reasons.

Module:SafeCate/doc: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
m 1 revision imported
No edit summary
 
Line 1: Line 1:
{{#ifeq:{{NAMESPACENUMBER}}|828|模块|模板}}旨在应对本站时而发生的模板展开异常结合[[Help:缓存|缓存功能]]导致的分类异常问题。
This {{#ifeq:{{NAMESPACENUMBER}}|828|module|template}} is designed to address classification issues caused by occasional template expansion errors combined with the [[Help:Cache|caching system]] on this site.


'''{{#ifeq:{{NAMESPACENUMBER}}|828|模块|模板}}仅应用于模板[[Help:名字空间|名字空间]]'''
'''This {{#ifeq:{{NAMESPACENUMBER}}|828|module|template}} is only applicable in the template [[Help:Namespace|namespace]].'''


== 参数 ==
== Parameters ==


* 1:添加的分类名称。
* **1**: The name of the category to be added.
* 2:分类索引,一般用于修正排序或在分类页提前系列条目的主条目。
* **2**: Category index, usually used to adjust sorting or prioritize the main entry of a series in the category page.
* nsid:生效的名字空间,填数字代码,参照[[Help:名字空间]]。支持使用半角逗号做分隔符。
* **nsid**: The namespace(s) in which the template is effective. Use numeric codes as defined in [[Help:Namespace]]. Supports the use of half-width commas as separators.
* nsidExclude:排除的名字空间,如填写nsid参数且不为空则此参数不生效。
* **nsidExclude**: Namespaces to exclude. If the **nsid** parameter is filled and not empty, this parameter will not take effect.
* noSubpage:不应用于''''''页面,可以用于处理在用户''''''页面的错误模板引用。
* **noSubpage**: Excludes '''sub'''pages, which can help handle incorrect template references on users' '''main''' pages.
* strict:用于{{tl|SafeCate}}以外的包装模板,使用了此参数该模板才能生效,如{{tl|TemplateCate}},用于严格限制名字空间。
* **strict**: Used for wrappers other than {{tl|SafeCate}}, such as {{tl|TemplateCate}}. This parameter must be set for the template to take effect, ensuring strict namespace restrictions.
 
<noinclude>[[zh:Module:SafeCate/doc]][[Category:Template Documentation]]</noinclude>

Latest revision as of 19:58, 13 January 2025

This module is designed to address classification issues caused by occasional template expansion errors combined with the caching system on this site.

This module is only applicable in the template namespace.

Parameters

  • **1**: The name of the category to be added.
  • **2**: Category index, usually used to adjust sorting or prioritize the main entry of a series in the category page.
  • **nsid**: The namespace(s) in which the template is effective. Use numeric codes as defined in Help:Namespace. Supports the use of half-width commas as separators.
  • **nsidExclude**: Namespaces to exclude. If the **nsid** parameter is filled and not empty, this parameter will not take effect.
  • **noSubpage**: Excludes subpages, which can help handle incorrect template references on users' main pages.
  • **strict**: Used for wrappers other than {{SafeCate}}, such as {{TemplateCate}}. This parameter must be set for the template to take effect, ensuring strict namespace restrictions.