User:SD0001/easy-merge
From Wikipedia, the free encyclopedia
This is a script that makes the process of filling out the paperwork while merging articles a tad easier. Look for the menu item "easy-merge" in the "More" menu.
DescriptionRedirect page and add merge templates to talk pages
AuthorSD0001
UpdatedApril 6, 2026
(3 months ago)
(3 months ago)
SkinsAll desktop skins
| Description | Redirect page and add merge templates to talk pages |
|---|---|
| Author | SD0001 |
| Updated | April 6, 2026 (3 months ago) |
| Skins | All desktop skins |
| Source | User:SD0001/easy-merge.js |
The script is to be run from an article whose content has been merged to another article. A form window opens in which the name of the target article is to be entered. On submitting, following actions are performed:
- current page is redirected to specified target, with
{{R from merge}}tag, with a customisable edit summary - Any
{{merge from|currentpage}}or{{being merged|currentpage}}on the target page is removed {{merged-from}}is added to the talk page of target page{{merged-to}}added to talk page of current page- Any WikiProject templates on talk page are reset with class=redirect, and importance parameter is removed.
- Any media request templates and any |media-needed= parameters of wikiproject tags are removed.
All the above actions are optional and some may be skipped by unchecking a checkbox on the form window.
Installation
If you have the script-installer gadget, just click on the "Install" button in the infobox.
Otherwise, add the line
importScript('User:SD0001/easy-merge.js'); // [[User:SD0001/easy-merge.js]]
Usage
To merge two articles, follow these steps:
- Copy all or some of the content from the source article and paste it in an appropriate location at the destination article. (If you think the merge is especially complex and will take you a long time to fully clean up, you can let other editors know by placing {{In use}} or {{Inuse-section}} atop the destination article or section.) Then, immediately publish your edit, even if it duplicates some parts or it looks messy. In your edit summary, include a link to the source article and to the AfD discussion (unless this is a bold merge):
[[H:M|Merged content]] from [[SOURCEPAGE]]; see its history for [[WP:CWW|attribution]].
- Do any necessary rearranging and copy editing ideally in a second edit, to simplify attribution. In this edit, also remove any leftover {{Merge}}, {{Being merged}}, or {{In use}} templates from the destination article.
- Blank the source article whose content was just merged and replace it with a redirect
- To do this more quickly, install the easy-merge script and reload the source article. Then, click the "easy-merge" link in the "Tools" section of your sidebar, enter the name of the destination article or section, and keep this option enabled:If you want to enable other options, read the optional step 5 below before clicking Submit.And that's it! You've successfully merged two articles!
Redirect this page to the target page
- To do this more quickly, install the easy-merge script and reload the source article. Then, click the "easy-merge" link in the "Tools" section of your sidebar, enter the name of the destination article or section, and keep this option enabled:
Optional steps
- Tag the talk pages with the relevant notices for posterity.
- If the merge was not discussed at Articles for deletion (for example if it's a bold merge or if it was discussed elsewhere) you can optionally note that the merge has taken place by adding a tag to the articles' talk pages:
- This action is performed automatically when using the easy-merge script; simply enable these two options and click Submit:
Add {{merged-from}} to talk page of target page
Add {{merged-to}} to talk page of this page
- This action is performed automatically when using the easy-merge script; simply enable these two options and click Submit:
- However, if the merge was discussed at AfD and the {{Afd-merge from}} template is already on the destination's talk page, do not add another banner to the destination's talk page. However, you can optionally add a tag to the source article's talk page:
- If you are using the easy-merge script, simply keep this option disabled:You can optionally enable the other one, and then click Submit.
Add {{merged-from}} to talk page of target page
- If you are using the easy-merge script, simply keep this option disabled:
- If the merge was not discussed at Articles for deletion (for example if it's a bold merge or if it was discussed elsewhere) you can optionally note that the merge has taken place by adding a tag to the articles' talk pages: