跳转到内容

Template:Infobox Wikipedia user script

维基百科,自由的百科全书
Infobox Wikipedia user script
更新2020年6月26日(4年前)
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

示例

[编辑]
MyScript
描述Does something useful
作者Username
状态Stable
版本2.1.0
更新2013年3月3日,​11年前​(2013-03-03
浏览器支持Firefox, Chrome
皮肤支持Vector
源码User:Username/Example.js
{{infobox user script
 | name = MyScript
 | desc = Does something useful
 | author = [[User:Username|Username]]
 | updated = {{start date and age|2013|03|03}}
 | status = Stable
 | version = 2.1.0
 | source = [[User:Username/Example.js]]
 | skins = Vector
 | browsers = [[Firefox]], [[Google Chrome|Chrome]]
 | logo = [[File:Wikimedia-logo.svg|50px]]
 | screenshot = <!-- 檔案不存在 [[File:Floater script screenshot.png|300px]] ,可從英文維基百科取得 -->
 | screenshot-caption = MyScript in action
}}
  • Add |styled = yes for an alternate colored version (see second example):
用户工具
MyScript
描述Does something useful
作者Username
状态Stable
版本2.1.0
更新2013年3月3日,​11年前​(2013-03-03
浏览器支持Firefox, Chrome
皮肤支持Vector
源码User:Username/Example.js
{{infobox user script
 | name = MyScript
 | desc = Does something useful
 | author = [[User:Username|Username]]
 | updated = {{start date and age|2013|03|03}}
 | status = Stable
 | version = 2.1.0
 | source = [[User:Username/Example.js]]
 | skins = Vector
 | browsers = [[Firefox]], [[Google Chrome|Chrome]]
 | styled = yes
}}

使用

[编辑]

This infobox is intended to be used on user script description/documentation pages.

参数

[编辑]
  • name: The name of the script. Defaults to page name.
  • desc: A short description of what the script does.
  • author: The script author's user name
  • updated: The date of last update. Use {{start date and age}} to automatically display time since the last update.
  • status: Script's development status. You may describe this any way you like, such as alpha/beta/release, or stable/experimental/inactive.
  • source: The source code page.
  • skins: Supported skins.
  • browsers: Supported web browser(s).
  • github: The script's repository on GitHub.
  • logo: Image file address for logo
  • screenshot: Image file address for screenshot
  • screenshot-caption: Text caption for screenshot
  • styled: Set to yes for an alternate colored version (see example above)

The following parameters can aid in automatic installation:

  • mainsource: The main source file, which is to be loaded from the user's custom script.
  • install-target: The preferred page on which the script should be included. The default is common.js.