Template:User toolbox/doc

概要

就是各種鏈接。

參數及使用方法

{{User toolbox|1=Username}}添加到頁面以在工具箱中顯示用戶的鏈接。如果添加到用戶頁面使用,模板將自動獲取用戶名。但如果添加到子頁面使用,請手動指定用戶名或使用 {{User toolbox|{{ROOTPAGENAME}}}}。如果在用戶空間之外使用,例如在「Wikipedia talk:」命名空間中,必須指定用戶名。

  • |1= 指定不同的用戶名
  • |state=uncollapsed 將展開工具箱
  • |heading= 改變用戶工具箱的標題
  • |simple=n 顯示列出的所有部分

範例

例: {{User toolbox|1=Example}}

展開例:

完整例: {{User toolbox|1=Example|simple=n}}

完整展開例:

注意事项

重定向

模板编辑说明

參見

未翻譯/翻譯原文

已隱藏部分未翻譯内容,歡迎參與翻譯

(二〇二二年十二月二十三日)

Shows various links to counters and other user stats tools, various sections, followed by an Actions with tasks that someone (usually administrators) may take with regard to a user. Note that many of these are punitive; the |simple=y option should usually be used to suppress this section, and those relating to advanced user types like admins, bureaucrats and stewards, because they're usually not relevant.

Usage

如何控制本模板的显示状态
  • 使用{{User toolbox|state=collapsed}}使本模板显示为折叠(隐藏)状态。
  • 使用{{User toolbox|state=expanded}}使本模板显示为展开(显示)状态。
  • 使用{{User toolbox|state=autocollapse}}使本模板仅在页面上有其他相同类型的模板时,显示为折叠(隐藏)状态。
  • 除非另有设定(请见模板代码内的|state=参数),autocollapse为默认状态。

Add {{User toolbox|1=Username}} to a page to display a user's links in the toolbox. If added to a user page, it will automatically get the username. If used on a subpage, specify the username manually or use {{User toolbox|{{ROOTPAGENAME}}}}. If used outside of user space, e.g. in the "Wikipedia talk:" namespace, the username must be specified.

Typical example

{{User toolbox|1=Example}}

yields (when expanded):

Full example

{{User toolbox|1=Example|simple=n}}

yields (when expanded):

Parameters
  • |1= to specify a different user name
  • |state=uncollapsed will expand the toolbox
  • |heading= to change the "User toolbox" heading
  • |simple=n shows all of the sections listed below
    • |admin=y to show the display of the Admin history section if the user is an administrator
    • |bureaucrat=y to show the display of the Bureaucrat history section if the user is a bureaucrat
    • |steward=y to show the display of the Steward history section if the user is a steward

See also