Wikipedia:Deputy/Attribution Notice Template Editor
NOTE: This scripts currently conflicts with Grammarly. Obscure, I know. Disable the Grammarly extension when using ANTE. |
Author(s) | Chlod |
---|---|
Status | Public beta |
First released | September 30, 2022 |
Version | v0.8.0 |
Updated | May 28, 2024 |
Browsers | browserslist: >0.05% and supports fetch and not dead |
Skins | Tested on Vector (2010 and 2022), report issues on talk page |
Source | User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js |
The Attribution Notice Template Editor (ANTE, /ˈæn.ti/) allows users to graphically edit a talk page's attribution notice templates. It is the successor of CopiedTemplateEditor, which only handles {{copied}} templates. This is mainly for WikiProject Copyright Cleanup members who commonly deal with article splits, merges, copies, and etc., but can also be used by the general public.
The script currently supports the following templates (and their redirects):
- {{copied}}
- {{split article}}
- {{merged-from}}
- {{merged-to}}
- {{backwards copy}}
- {{translated page}}
Installation
editANTE is loaded as part of Deputy, but you can also install a standalone version without Deputy if you wish to save up on bandwidth. ANTE is significantly larger than CTE due to newly-implemented features and support, see below for a filesize comparison. Note that unless userscript loads are cached, the script will be re-downloaded on every page load. This shouldn't be much of a problem for most modern browsers as the gzipped file will be requested, making the file size significantly smaller.
File | Size | Size (gzipped) |
---|---|---|
User:Chlod/Scripts/CopiedTemplateEditor-loader.js | 5.41 kB | 2.12 kB |
User:Chlod/Scripts/CopiedTemplateEditor-core.js | 77.6 kB | 16.2 kB |
User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js | 266.8 kB | 45.8 kB |
This does not include modules loaded from MediaWiki and additional requests made to Wikipedia to get page data, template previews, etc.
Standalone
editTo install the script, add this to your common.js file.
mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js]]
As of now, ANTE currently has no lightweight loader, unlike CTE. This is to be implemented later on.
Deputy
editSee User:Chlod/Scripts/Deputy § Installation for instructions on installing Deputy.
Usage
editThis section needs expansion. You can help by adding to it. (September 2022) |
ANTE will append an "Attribution Notice Template Editor" toolbox link on your sidebar (Vector, Timeless). When clicked, the main dialog is shown, and options are provided for modifying existing or adding new attribution notice templates.
Source
editThe source can be found at User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js. The script is licensed under the Apache License 2.0. The source code is available at https://github.com/ChlodAlejandro/deputy. ANTE uses third-party code that is bundled with the script. This third-party code is manually checked and verified for security and license compatibility. See the Licensing section on the Deputy README for more information.
Discussion
editYou may visit my talk page if you have any concerns.