Jump to content

Template:Infobox Wikipedia user script/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Equazcion (talk | contribs) at 16:47, 8 October 2013 (stuff). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This infobox is intended to be used for Wikipedia:User scripts.

Usage

Place the following at the top of the script page:

{{infobox user script
 | name = script name
 | author = script author
 | updated = last update date
 | status = development status
 | source = link to source code
 | skins = supported skins
 | browsers = supported browsers

 | logo = logo image address
 | screenshot = screenshot image address
 | screenshot-caption = caption for screenshot

 | mainsource = main source file to install
 | install-target = page to install to
}}
  • name: The name of the script. Defaults to page name.
  • 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).
  • logo: Image file address for logo
  • screenshot: Image file address for screenshot
  • screenshot-caption: Text caption for screenshot

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.
  • install-page: The "install-page" parameter is obsolete and ignored. Recent versions of MediaWiki made the preloading hack used by this template non-functional.

Example

MyScript
MyScript in action
Author(s)Username
StatusStable
UpdatedMarch 3, 2013; 12 years ago (2013-03-03)
BrowsersFirefox, Chrome
SkinsVector
SourceUser:Username/Example.js
{{infobox user script
 | name = MyScript
 | author = [[User:Username|Username]]
 | updated = {{start date and age|2013|03|03}}
 | status = Stable
 | 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
}}

See also

End of my android seriaL #ZY32CWZ8VP