From Wikipedia, the free encyclopedia
| Warning: You take full responsibility for any action you perform using Unpipe. You must read and understand Wikipedia policies and use this tool within these policies, or risk being blocked from editing. |
UnpipeDescription | Converts each piped link to a non-piped one if both lead to the same article |
---|
Updated | June 10, 2024 (2 months ago) |
---|
Browser support | Chrome, Firefox, etc. (ES2017+ needed) |
---|
Source | User:Nardog/Unpipe.js |
---|
This script adds a button to the sidebar that converts piped links to non-piped ones where doing so does not change the destination of the link, to comply with WP:NOPIPE and WP:NOTBROKEN. That is, if both "Foo" and "bar" in [[Foo|bar]]
lead to the same article or section directly or indirectly (i.e. through a redirect or not), it's converted to [[bar]]
. Links to non-main namespaces and to redirects ending in " (disambiguation)" will not be replaced. The button is available only in source mode (not 2017 editor).
Add the following to your common.js:
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/Unpipe.js&action=raw&ctype=text/javascript');
Or you may enable the script installer in Preferences → Gadgets and click "Install" in the infobox on this page.
This script relies on Pathoschild's TemplateScript framework.
Nardog's scripts |
---|
Extra functionality
- CatChangesViewer – Lists recent category additions/removals on a category page.
- CodeEditorAssist – Allows customizing the code editor, e.g. changing the color theme and enabling live autocompletion.
- Consecudiff – Adds links to diffs of consecutive edits by the same user on watchlist, history, etc.
- CopyCodeBlock – Adds a button to copy the content of each code block (
<pre> ).
- CopySectLink – Adds a button to copy the unencoded page title or section path next to each heading.
- MoveHistory – Lists the past moves a page has gone through.
- RCMuter – Hides specified users' edits on Watchlist/RecentChanges.
- SmartDiff – Makes links and template calls in diffs clickable (supports red links, avoids WP:SEAOFBLUE).
Editing assistance
- ExpandContractions – Expands contractions.
- IPAInput – Type in IPA symbols by directly looking at an IPA key like Help:IPA/English and clicking on the symbols.
- RefRenamer – Replaces reference names like ":0" with descriptive ones like "Smith-2015".
- Unpipe – Converts each piped link to a non-piped one if both lead to the same article.
Itch scratchers
- AutoSectionLink – Adds or refines the
/* section link */ as you edit so only the modified section will be linked in the summary.
- AutoTestcases – Autofills "Preview page with this template" with the most relevant /testcases page that exists.
- CatChangeLinker – Links "diff" and "hist" for category additions/removals on Watchlist/RecentChanges.
- PasteToCommons – Upload an image to Commons from anywhere on the site by pasting it.
- SortCentralAuthByEditCount – Sorts the list of local accounts on CentralAuth by edit count.
- TemplatePreviewGuard – Warns when you try to use "Preview page with this template" with a page that doesn't transclude the template.
|