跳转到内容

模板:User toolbox

本页使用了标题或全文手工转换
维基百科,自由的百科全书
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

概要

就是各种链接。

参数及使用方法

{{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