User:Dispenser/Reflinks

#REDIRECTtools:~dispenser/cgi-bin/webreflinks.py
This page is a soft redirect.

Shortcut:

Reflinks is a tool that automatically or semi-automatically adds information to references using data present in the web page. It can process bare URLs (where the only information is a web address) or plain links (where the reference is a link and a title). Using Reflinks can save you time when writing your own articles as you can concentrate on writing and then fill in all the references once you are done. If you come across articles containing poorly formatted references, running Reflinks helps to prevent linkrot and provides readers with more details about where the information came from.

Usage – simple

Simplest method:

Usage – template banner

Paste the {{Cleanup-link rot}} banner at the top of the references section of an article with bare-URL references to encourage others to clean up the bare URLs. Just copy and paste {{Cleanup-link rot}}, and then save the page.

Then you or others can click the fix-it link in the banner. Wait for the bot to finish filling in all the citation templates for each bare URL. This can take ten minutes for a page with a hundred bare URLs. It is faster for fewer links. Scroll to the bottom of the results page to see how much has been completed. When done, click the "show preview" button at the bottom of the page. If things look OK, then click the "save page" button. If things don't look OK, then fix what needs to be fixed in the preview edit window. Then click the "save page" button. This banner uses the interactive mode described in the next section.

Interface

Reflinks operates in two modes, interactive and non-interactive.

FAQ

User script

While Reflinks can be easily run anywhere by using the bookmarklet, some people are never fixed to a single computer. Building off the code presented there for a copy and paste example for your common.js/monobook.js/vector.js.

// Add [[WP:Reflinks]] launcher in the toolbox on left
addOnloadHook(function () {
 addPortletLink(
  "p-tb",     // toolbox portlet
  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + wgPageName
   + "?client=script&citeweb=on&overwrite=&limit=20&lang=" + wgContentLanguage,
  "Reflinks"  // link label
)});

See also