Jump to content

User:Chlod/Scripts/CopiedTemplateEditor

From Wikipedia, the free encyclopedia
(Redirected from User:Chlod/CTE)
CopiedTemplateEditor
A screenshot of the CopiedTemplateEditor editing dialog.
Author(s)Chlod
Statuspretty much okay for general use
UpdatedJanuary 15, 2022; 2 years ago (2022-01-15)
BrowsersNot Internet Explorer 11 (i.e. supports ES6)
SkinsAll skins
SourceUser:Chlod/Scripts/CopiedTemplateEditor-loader.js, User:Chlod/Scripts/CopiedTemplateEditor-core.js

CopiedTemplateEditor (or CTE) allows users to graphically edit a talk page's {{copied}} templates. This is mainly for CCI case handlers who have to deal with mass intrawiki copying, but can be used by anyone who interacts frequently with {{copied}} templates.

Dedicated to the hardworking WikiProject Copyright Cleanup members.

Installation

[edit]

To install the script, add this to your common.js file.

mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/CopiedTemplateEditor-loader.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/CopiedTemplateEditor-loader.js]]

This will run a lightweight loader for the editor on every page load. This ensures that the main components of CTE are only loaded when you need it. When you click on the "{{copied}} Template Editor" option on the "Tools" list at the side of the page or when you click on the edit button on a {{copied}} template, the main components (found in User:Chlod/Scripts/CopiedTemplateEditor-core.js) are loaded and run.

You may optionally load the core script instead to make opening the dialog faster, but this is only recommended for high-speed connections with minimal ping to Wikimedia servers.

Source

[edit]

The source can be found at User:Chlod/Scripts/CopiedTemplateEditor-loader.js and User:Chlod/Scripts/CopiedTemplateEditor-core.js. The script is dual-licensed under the CC BY-SA 3.0 License and the Apache License 2.0. The source code is available at https://github.com/ChlodAlejandro/copied-template-editor.

Discussion

[edit]

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