reFill is a tool that expandsbare URL references semi-automatically, hosted onToolforge attoolforge:refill/ng. It adds information (page title, work/website, author and publication date, if metadata is included) to bare URL references, and does additional fixes as well (e.g. combiningduplicated references). The tool is written inPython and licensed underSimplified BSD License. The tool is an open-source replacement ofDispenser's Reflinks. The source code is availableon GitHub. The templates created automatically by the tool need to be reviewed to ensure that they are accurate, as they are often not.
<ref>http://example.com</ref>
→<ref>{{cite web|url=http://example.com |title=Example page title|website=example.com}}</ref>
Paste the title of the article into thePage name textbox. You can choose to outputplain CS1 citations or{{cite web}} templates.
If there is a particular article which containsbare URLs in the references, like this one,[1] and you would like to request aWikipedian that already has reFillinstalled (and is familiar with how it works) to help you fix the problem:
References
{{Cleanup bare URLs}}This will display a visible message (the text of which is shown at the top ofTemplate:Cleanup bare URLs) at the top of the Wikipedia article, and will also add the article to ahidden category which requests that a Wikipedian experienced with reFill, apply it to the bare URLsin that article. As of January 2023[update] there were over 88,000 articles tagged as needing such attention from a volunteer, so don't hold your breath!
|author= and/or|date= for filling in manually, when the corresponding metadata is unavailable.|website= field if the website does not supply its name in embedded metadata.Insert this code intoyour common.js:
importScript('User:Novem Linguae/Scripts/ReFillLink.js'); // Backlink: [[User:Novem Linguae/Scripts/ReFillLink.js]]AnAPI is available, enablinguser script and bot developers to take advantage ofthe APIs exposed by reFill to complete bare references programmatically.
|publisher=?|work= cannot be parsed. Please fill it in manually.ReFill is not perfect, and never will be. You are responsible for every edit that ReFill 2 suggests so you must take the time to inspect every citation that this tool creates and fix anything that isn't quite right. Do not make work for other editors to clean up.
Some publications misuse the HTML metadata tags that ReFill extracts such as:
first=Deutsche|last=Welle (www.dw.com) representingDeutsche Welle, rather than the author's name, orfirst=Editorial|last=teamKosovo MPs elect lawyer Vjosa Osmani as president&#124; DW&#124; 04.04.2021 – the title here is "Kosovo MPs elect lawyer Vjosa Osmani as president" and the text that follows it – such as the article's date – should be stripped out and a date= element added if not already present.You'll need to remove these issues yourself.
ReFill extracts the date from the datemeta tag. On some web pages there isn't such a meta tag, but the date can easily be found at the top of the body of the page. ReFill will not find it, but you can add it manually.

ReFill is based onCitoid which is maintained by theWikimedia Foundation. Citoid depends on technology calledZotero, which is the bit that actually extractsmetadata from web pages. Zotero uses hundreds of 'translators' which containJavaScript code that knows how to extract useful metadata from different layouts of web page, particularly academic resources.Wikipedia:Citing sources with Zotero explains how to use Zotero yourself, enabling you to get closer to how the metadata is extracted.

This is the same way that the'cite' button on the toolbar ofWikipedia's visual editor works.
archiveurl parameter rather than the newerarchive-url parameterdeadurl=y rather than the currenturl-status=dead parameterarchive-date parameterarchiveurl can be globally replaced byarchive-url anddeadurl=y byurl-status=dead.See theReFill workboard andCitoid workboard onWikimedia Phabricator for fuller lists of known issues. That is the preferred place for recording issues, rather than adding to the list above.
If the tool is stuck displaying "waiting for an available worker",use this link to raise a report to get it restarted. You will need to register for aPhabricator account, which you will be able to link to your Wikipedia account. Fill in the description field and hit the "Create New Task" button.
If you have found a bug or want extra features, please either:
or
Having noWikimedia Cloud Services dependency, reFill can be installed on your own computer so that you can work on it. To contribute to reFill, create afork onreFill's GitHub repository, make your changes and submit apull request. Thank you for your contributions!
Volunteers are needed to help support and maintain reFill. If you are a software developer with experience inPython,Celery andNode.js and you are willing to help to any extent then pleaseleave a message.
To translate the tool, please head over totranslatewiki.net.
{{User:UBX/reFill}}
| This user usesreFill to expandbare references. |