跳转到内容

模板:Native name checker/doc

本页使用了标题或全文手工转换
维基百科,自由的百科全书

{{Native name checker}}用于检查信息框中的|native_name=参数的值,并返回该值,以及错误信息。

用法

[编辑]

典型用法是:

|dataxx={{Native name checker|{{{native_name|}}}}}

错误信息

[编辑]

{{Native name checker}}返回以下错误信息:

  • {{native name checker}}错误:参数值有误|native_name=应包含{{Native name}}{{Native name list}}。检测器寻找具有正确IETF语言标签格式的lang=HTML属性。如果未找到,{{Native name checker}}会发出此错误信息。
  • {{native name checker}}错误:列表标记预计用于多个名称 – when {{Native name checker}} detects more than one name in |native_name=, those names are expected to be listed using appropriate list markup. The detector is looking for <div class="plainlist">...</div> html list markup. When that markup is not detected, {{Native name checker}} emits this error message. Data from multiple {{Native name}} templates can be combined into a single {{Native name list}} template or multiple {{Native name}} templates can be listed using {{Plainlist}}.
  • {{native name checker}}错误:<br /> 列表不允许使用 – 根据MOS:无障碍,禁止使用<br />来分隔列表中的项目。Usually <br />-separated lists are caught by the list markup expected detector but, occasionally, not. The detector looks for a variety of acceptable and unacceptable <br /> variants. Data from multiple {{Native name}} templates can be combined into a single {{Native name list}} template or multiple {{Native name}} templates can be listed using {{Plainlist}}.

出现上述错误的主命名空间条目将被归入Category:Native name checker模板错误。上述错误信息的结尾会给出链接至本页的帮助链接。

追踪分类

[编辑]

Category:Native name checker模板错误(0)