[go: up one dir, main page]

Jump to content

Wikipedia:Deputy/Attribution Notice Template Editor

From Wikipedia, the free encyclopedia
Attribution Notice Template Editor
The Deputy logo: a magnifying glass with the copyright "C" symbol at the center of its lens.
A screenshot of the Attribution Notice Template Editor editing dialog.
Author(s)Chlod
StatusPublic beta
First releasedSeptember 30, 2022; 2 years ago (2022-09-30)
Versionv0.8.0
UpdatedMay 28, 2024; 5 months ago (2024-05-28)
Browsersbrowserslist: >0.05% and supports fetch and not dead
SkinsTested on Vector (2010 and 2022), report issues on talk page
SourceUser: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):

Installation

[edit]

ANTE 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 comparison (as of August 8, 2022)
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

[edit]

To 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

[edit]

See User:Chlod/Scripts/Deputy § Installation for instructions on installing Deputy.

Usage

[edit]

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

[edit]

The 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

[edit]

You may visit my talk page if you have any concerns.