模板:Native name checker
外觀
| 此模板使用Lua語言: |
{{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模板錯誤。上述錯誤信息的結尾會給出鏈接至本頁的幫助鏈接。