• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:User script table/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:User script table
This is the template sandbox page for Template:User script table (diff).
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:User script table/styles.css
This template uses Lua:
  • Module:User script table row (sandbox)

{{user script table}} and {{user script table row}} are used to render tables in Wikipedia:User scripts/List.

Contents

  • 1 Usage
    • 1.1 Example
    • 1.2 Parameters
  • 2 Dependencies
  • 3 TemplateData
  • 4 See also

Usage

edit

{{user script table}} embeds the TemplateStyles and renders the table head. {{user script table row}} is used between {{user script table}} and {{end}} to render the row for each script.

Example

edit

Employing the full syntax:

{{user script table}}
{{user script table row
|code=User:Jackmcbarn/editProtectedHelper.js
|doc=User:Jackmcbarn/editProtectedHelper
|name=editProtectedHelper
|desc=Quickly respond to [[WP:ER|edit requests]] with a form added to the bottom of request banners.
|indent=0
}}
{{end}}

This is equivalent to:

{{user script table}}
{{user script table row
|code=User:Jackmcbarn/editProtectedHelper.js
|desc=Quickly respond to [[WP:ER|edit requests]] with a form added to the bottom of request banners.
}}
{{end}}

Which renders:

Name Description Users
Total Active
editProtectedHelper (source)Quickly respond to edit requests with a form added to the bottom of request banners.558190

Parameters

edit

Parameters for {{user script table row}}:

|code=
Full page name of the script, usually starting in User: and ending in .js. If omitted, it is generated by appending .js to |doc=. If set to none, the source link doesn't appear.
|doc=
Full page name of the script documentation. If omitted, it is generated by removing the file extension from |code=, provided the page exists.
|name=
Script name. If omitted, it is generated from |code= or |doc=.
|desc=
Script description.
|indent=
Number of ems to indent the name in the first cell by. Provided mainly for backwards compatibility with the previous layout, where nested bullet points were used to indicate forks.

Only either |code= or |doc= is truly required.

Dependencies

edit

The usage statistics is taken from Wikipedia:User scripts/Most imported scripts, by way of Module:User script table row/data.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:User script table in articles based on its TemplateData.

TemplateData for User script table

A row used in the User script table. Only either |code= or |doc= is truly required.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Codecode

Full page name of the script, usually starting in User: and ending in .js. If omitted, it is generated by appending .js to |doc=. If set to none, the source link doesn't appear.

Page namesuggested
Docdoc

Full page name of the script documentation. If omitted, it is generated by removing the file extension from |code=, provided the page exists.

Page namesuggested
Namename

Script name. If omitted, it is generated from |code= or |doc=.

Stringsuggested
Descriptiondesc

A short description of the script.

Stringsuggested
Indentionindent

Number of ems to indent the name in the first cell by. Provided mainly for backwards compatibility with the previous layout, where nested bullet points were used to indicate forks.

Stringoptional

See also

edit
  • {{userscript}}
  • v
  • t
  • e
User scripts
Scripts lists
  • Main scripts list
  • The category for user scripts
  • Code snippets
  • Most imported scripts
  • Deprecated scripts list
New scripts
  • Requests
  • Scripts++ Newsletter
  • Code review
Script writing
  • Guide
  • Common techniques
  • Default ResourceLoader modules
  • Values in mw.config
Templates
  • {{Load user script}}
  • {{Infobox Wikipedia user script}}
  • {{userscript}}
  • {{user script table}}
Userboxes
  • {{user script developer}}
  • {{user script developer2}}
  • {{User script developer upon request}}
  • {{user scripts created}}
See also
  • Gadgets
  • Tools
  • User styles
  • Greasemonkey
  • IRC
    • scripts
  • Bots
  • Extensions
The above documentation is transcluded from Template:User script table/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:User_script_table/sandbox&oldid=1023729345"
Last edited on 18 May 2021, at 01:01

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 18 May 2021, at 01:01 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop