Jump to content

User:Isaac (WMF)/citation finder

From Wikipedia, the free encyclopedia

What?

[edit]

Insert search icons that are a direct link to an API result for where else a given citation appears on Wikipedia.

How?

[edit]

This uses a special-purpose API that holds a snapshot of all Wikipedia citations as indexed by their title, URL, doi, and ISBN. It currently depends on a number of heuristics to extract this information in place of a true database of citations, but gives a sense of the benefits of putting more structure around citations. Example request: [1]. Optionally you can use page_title instead of page_id. You can also leave out the citation_id to retrieve all citations: [2]

To install, simply go to Special:MyPage/common.js for just English and put {{subst:Lusc|User:Isaac_(WMF)/citation_finder.js}} // [[User:Isaac_(WMF)/citation_finder.js]] or meta:Special:MyPage/global.js for all available languages and place mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Isaac_(WMF)/citation_finder.js&action=raw&ctype=text/javascript' ); at the bottom of the page.

You should then notice search icons added before references on articles that link to the API results.

Who?

[edit]

Developed by Isaac (WMF) but heavily based on CiteUnseen.

Where?

[edit]

The source code is available at User:Isaac (WMF)/citation finder.js