模板:User toolbox/sandbox
這是Template: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
- Template:RfA toolbox
- {{ts|en|Template:Page toolbox]]