模板:High-use/doc

來自維基學院

這是一個{{high-use}}提示框。如果某一模板被應用於多個頁面(2000 - 100,000個)當中,則應該將本模板放置於該模板的説明文檔頁的頂端。

如果某一模板被100,000個以上的頁面使用,則建議使用措辭更爲強硬的{{high-risk}}模板。

注意:消息框中的連接若為紅色,屬於正常情況。

用法[編輯原始碼]

本模板可以原封不動地直接放置在頁面中,同時也可以爲其添加一些參數:

  • 第一個參數是頁面數量。通過tools:~jarry/templatecount/可以知道有多少個頁面使用了目標模板。
  • 如果想在別處進行討論,可以在第二個參數中指明該頁的名稱。不過更爲理想的方式是將目標模板的討論頁重定向至您所希望的討論頁。

範例:

{{high-use| 40,000+ |Project talk:高風險模板}}
{{high-use| 40,000+ }}
{{high-use| |Project talk:高風險模板}}

目標模板的/doc頁面頂端的完整代碼可如下:

{{documentation subpage}}
{{high-use| 40,000+ }}
<!-- 請將分類及跨語言連接添加到本頁底端 -->

技術信息[編輯原始碼]

The /sandbox and /testcases links are the standard names for such subpages. If those pages are created then the green /doc box for the template will detect them and link to them in its heading. For instance see the top of this documentation.

參見[編輯原始碼]

  • {{used in system}} – 針對維基學院使用者介面中用到的模板。
  • {{high-risk}} – 針對使用範圍最廣的模板(高風險模板)。
  • {{high-use}} – 針對風險稍微小一些的模板。
  • {{intricate template}}
  • {{pp-template}} – 保護模板,常被置於高風險模板頁面

模板計數器[編輯原始碼]