• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:User script table row

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
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

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

Usage

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

Example

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

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.
}}
|}

Which renders:

Lua error in Module:User_script_table_row/data at line 4: bad argument #1 to 'gmatch' (string expected, got nil).
Name Description Users
Total Active

Parameters

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

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

See also

  • {{userscript}}

{{Wikipedia:User scripts/Navbox|expanded}}

The above documentation is transcluded from Template:User script table/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:User_script_table_row&oldid=36746"
Categories:
  • Pages with script errors
  • Templates using TemplateStyles
  • Lua-based templates
  • Wikipedia scripts
  • Wikipedia user script templates
Last edited on 6 November 2021, at 13:14

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 6 November 2021, at 13:14.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop