Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:reFill

From Wikipedia, the free encyclopedia
Wikipedia gadget
Shortcuts

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>

reFill converts bare references (red) into more complete ones (green)

Usage

[edit]

To use reFillyourself

[edit]

Use reFill

Paste the title of the article into thePage name textbox. You can choose to outputplain CS1 citations or{{cite web}} templates.

Tagging bare URLs for cleanup

[edit]

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

  1. ^https://www.cnn.com/
  1. Open the article in question in your browser
  2. Click the 'edit' button
  3. Paste the following line into thevery top of the article:
            {{Cleanup bare URLs}}
  4. Click the 'preview' button to verify that your change did not interfere with any other parts of the article
  5. Click the 'save' button

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!

Options

[edit]
  • Use plain formatting instead of{{cite web}}: If selected, the tool will fill out bare references inplain CS1 format instead of{{cite web}}. All available metadata is included.
  • Do not remove link rot tags: If selected, the tool will not remove anylink rot tags from the source, even if no bare references are skipped.
  • Add blank metadata fields when the information is unavailable If selected, the tool will insert blank|author= and/or|date= for filling in manually, when the corresponding metadata is unavailable.
  • Do not add access dates: If selected, access dates will be omitted from the result.
  • Use the base domain name as work when this information cannot be parsed: If selected, the base domain of the link will be used in the|website= field if the website does not supply its name in embedded metadata.

User script

[edit]

Automatic installation

[edit]
  1. Check the checkbox atPreferences →Gadgets →Advanced →TickInstall scripts without having to manually edit JavaScript files (documentation) and click Save.
  2. VisitUser:Novem_Linguae/Scripts/ReFillLink.js.
  3. Click "Install"

Manual installation

[edit]

Insert this code intoyour common.js:

importScript('User:Novem Linguae/Scripts/ReFillLink.js'); // Backlink: [[User:Novem Linguae/Scripts/ReFillLink.js]]

API

[edit]

AnAPI is available, enablinguser script and bot developers to take advantage ofthe APIs exposed by reFill to complete bare references programmatically.

Frequently asked questions

[edit]
Q1: Why is there an empty|publisher=?
A1: There isn't any reliable way to parse that field, and an empty one is intentionally left when|work= cannot be parsed. Please fill it in manually.
Q2: How can I run my own reFill instance for testing?
A2: reFill has zero Toolforge dependency, and can be easily installed. For Linux users, seeREADME.md and for Windows users, seeWikipedia:Refill/Windows.
Q3: Can you add support for other Wikipedias?
A3: Yes! Just add a request onthe talk page.[verification needed] Try usinghttps://refill.toolforge.org/ng/ as well.
Q4: How to find articles which can be improved using reFill?
A4: SeeCategory:Articles with bare URLs for citations,Category:CS1 errors, andthis search.
Q5: It's not working right now! What alternatives can I use while you're fixing it?
A5: Thecitoid service in thevisual editor provides a "Convert" button. You can also useDiberri's tool and similar scripts to generate citation templates, which you can paste into articles. You can also usereflinks This tool has the advantage of marking some (though not all) dead links with the proper template.

Double check ReFill's output

[edit]

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:

  • the author name (first= and last=) containing the name of the publication e.g.first=Deutsche|last=Welle (www.dw.com) representingDeutsche Welle, rather than the author's name, orfirst=Editorial|last=team
  • the title including metadata elements that shouldn't be in the title, e.g.Kosovo MPs elect lawyer Vjosa Osmani as president&amp;#124; DW&amp;#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.

How it works

[edit]
Main page:Wikipedia:ReFill/technical

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.

Known issues

[edit]
  • When ReFill encounters a bare URL which is an archive site, such as inthis example:
    • it writes the archive URL to the deprecatedarchiveurl parameter rather than the newerarchive-url parameter
    • adds the discontinueddeadurl=y rather than the currenturl-status=dead parameter
    • does not add the mandatoryarchive-date parameter
You will need to fix such references yourself manually to avoid an error showing in red in the references section. If your edit results in such an error, please fix it. The archive date can be found embedded in Wayback Machine links.[a]
If using an editor that supports global replace,archiveurl can be globally replaced byarchive-url anddeadurl=y byurl-status=dead.
  • When combining duplicate references, if one of them is already named, pointers to that name's reference are not updated when the name is changed.

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.

Reporting problems

[edit]

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

Contributing

[edit]

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.

See also

[edit]

Userbox

[edit]

{{User:UBX/reFill}}

This user usesreFill to expandbare references.

Notes

[edit]
  1. ^The date appears after the fourth slash in the form YYYYMMDD, i.e. an url like: :...//web.archive.org/web/20090719002615/... has an archive date of 2009-07-19.

References

[edit]
  1. ^Inthis change, bare url "https://www.sportskeeda.com/player/sukesh-hegde" should have mapped to "|website=www.sportskeeda.com |url=https://www.sportskeeda.com/player/sukesh-hegde%7Ctitle=Sukesh Hegde" but instead resulted in "|url=http://validate.perfdrive.com/sportskeeda/captcha?ssa=ff55a3c6-f57b-a88e-465b-29b5a0640586&ssc=http%3A%2F%2Fwww.sportskeeda.com%2Fplayer%2Fsukesh-hegde&ssi=56c5fac1-a33a-c8a4-85e3-788b215fdd3f&ssk=contactus@shieldsquare.com&ssm=17830260681708870104190720594593&ssn=3de4acad11585936007e4e404e43a79a5324c63ccaff-503c-f05c-20ab89&sso=c2cd6084-e08cfc34bc4df9670373ac6a989be7c31878c211001d86bb&ssp=62190422811571384179157137342726414&ssq=21011194250024033237542500057184896752304&ssr=MjA4LjgwLjE1NC40OQ==&sst=ZoteroTranslationServer/WMF%20(mailto:services@lists.wikimedia.org)&ssw=%7Ctitle=ShieldSquare Captcha|website=validate.perfdrive.com"

External links

[edit]
Citation metadata in Wikipedia
Identifiers
Meta pages
Bots
Templates
Policies and guidelines
General advice
Citing sources
Inline citations
Help for beginners
Advanced help
Footnote templates
Find references
Citation tools
(External links)
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:ReFill&oldid=1307782763"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp