User:Chlod/Scripts/CopiedTemplateEditor
This Wikipedia page has been superseded by historical reference. |
Author(s) | Chlod |
---|---|
Status | pretty much okay for general use |
Updated | January 15, 2022 |
Browser support | Not Internet Explorer 11 (i.e. supports ES6) |
Skin support | All skins |
Source | User:Chlod/Scripts/CopiedTemplateEditor-loader.js, User:Chlod/Scripts/CopiedTemplateEditor-core.js |
CopiedTemplateEditor (or CTE) allows users to graphically edit a talk page's {{
Dedicated to the hardworking
Installation
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
The source can be found at
Discussion
You may visit my talk page if you have any concerns.