Template:User script table/sandbox
| This is the template sandbox page for Template:User script table (diff). |
| This template uses TemplateStyles: |
| This template uses Lua: |
{{user script table}} and {{user script table row}} are used to render tables in Wikipedia:User scripts/List.
Usage
{{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
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. | 569 | 180 |
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.jsto|doc=. If set tonone, 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.
TemplateData
TemplateData for User script table
A row used in the User script table. Only either |code= or |doc= is truly required.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Code | 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. | Page name | suggested |
| Doc | doc | Full page name of the script documentation. If omitted, it is generated by removing the file extension from |code=, provided the page exists. | Page name | suggested |
| Name | name | Script name. If omitted, it is generated from |code= or |doc=. | String | suggested |
| Description | desc | A short description of the script. | String | suggested |
| Indention | 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. | String | optional |
See also
- {{userscript}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.