跳至內容

模板: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)