View source: Reflinks
Views
Page
View source
We looking for new a maintainer for AndyZ's peerreviewer script, see
WT:Peer review
for details.
You can view and copy the source of this page:
<form action="../cgi-bin/webreflinks.py"> <fieldset> <legend>Reflinks</legend> {| | style="text-align:right;" | <label for="page">Page title or URL:</label> | <input name="page" id="page" size="40" value="" onchange="fixTitle(this)" /> |- style="vertical-align:top;" | style="text-align:right;" | Citation style: | <input type="checkbox" name="citeweb" id="citeweb" checked="checked" /><label for="citeweb">Use templates (e.g. {{cite web}})</label> |- style="vertical-align:top;" | style="text-align:right;" | Parse existing references<sup><a href="#Options">?</a></sup>: | <input type="radio" name="overwrite" value="" checked="checked" id="owNone" /><label for="owNone">Untitled links</label> <input type="radio" name="overwrite" value="bot" id="owBot" /><label for="owBot">Bot titled links</label> <input type="radio" name="overwrite" value="simple" id="owSimple" /><label for="owSimple">Plain links</label> <input type="radio" name="overwrite" value="text" id="owText" disabled="disabled"/><label for="owText" disabled="disabled">Convert text references</label> |- style="vertical-align:top;" | style="text-align:right;" | | <label>Limit to <input type="text" disabled="disabled" size="2" value="10" /> references </label> |- | | <input type="checkbox" name="addons" value="commonfixes" id="commonfixes" checked="checked" disabled="disabled" /><label for="commonfixes">Apply common fixes </label> |} <input value="Run reflinks" type="submit" /> </fieldset> </form> <table class="toccolours" style="float:right; width:16em;"> <caption><big>Reference cleanup</big></caption> <tr><td> Selection: * Scan from <a href="../view/BELs">web Pywikipedia</a> * Scan from <a href="../view/Checklinks-bare">Checklinks</a> * <a href="../view/InsertTitle">Peerreviewer</a> titler * [[Special:LinkSearch/http://toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=Template:linkrot|Cleanup-link rot]] tagged </td></tr> </table> '''Reflinks''' is a python script in the pywikipedia collection which adds title to bare references in the forms of <code><nowiki><ref>[http://www.google.fr/]</ref> or <ref>http://www.google.fr/</ref></nowiki></code>. These titles are taken from the <title> element contained on the page. It was developed as a pywikipedia bot by [[User:NicDumZ|NicDumZ]] and was used to convert ~5,500 references on French Wikipedia in January 2008 and then ~62,300 on English in February 2008. Its was ported over to the Toolserver a short time later by [[User:Dispenser|Dispenser]] and has developed independent of the original. == Flavors == There are two flavors of this script, web and bot. The web version provides a larger degree of interactivity and human review. While the <a href="../view/Pywikipedia">bot script</a> is automated and is the better one of you want to run and forget as it doesn't need human review. == Bookmarklet == [[Bookmarklet]]s are little snips of JavaScript code which are stored as a bookmark. Drag the links to the bookmark toolbar. You can use reflink on Wikipedia pages which have autonumbered links and it will convert them to <ref> style of linking. {| border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;" | Title overwrite: ! Never ! Bot ! Simple |- ! Text cite | <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=bookmarklet'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+wgPageName : '')" onclick="return false">[1]</a> | <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=bookmarklet&overwrite=bot'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+wgPageName : '')" onclick="return false">[2]</a> | <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=bookmarklet&overwrite=simple'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+wgPageName : '')" onclick="return false">[3]</a> |- ! {{Cite web}} | <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=bookmarklet&citeweb=true'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+wgPageName:'')" onclick="return false" title="webreflinks">[4]</a> | <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=bookmarklet&overwrite=bot&citeweb=true'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+wgPageName:'')" onclick="return false">[5]</a> | <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/webreflinks.py?client=bookmarklet&overwrite=simple&citeweb=true'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+wgPageName : '')" onclick="return false">[6]</a> |} <!-- <a href="javascript:location='//toolserver.org/~dispenser/cgi-bin/reflinks.py?client=bookmarklet'+(typeof wgPageName!='undefined'?'&page='+wgContentLanguage+':'+escape(wgPageName):'')+'&autoclick='+(autoClickToken?'wpSave&autosummary=Bot:%20Converting%20bare%20references,%20using%20ref%20names%20to%20avoid%20duplicates&actoken='+autoClickToken():'wpDiff')" onclick="return false">DumZiBoT</a> --> The <a href="javascript:if(typeof wgEnableAPI=='undefined'){alert('This bookmarklet only works on English Wikipedia pages.');}else{ try{xhr=new ActiveXObject('Microsoft.XMLHTTP')}catch(e){xhr=new XMLHttpRequest()}; xhr.onreadystatechange=function(){if(xhr.readyState==4){eval('pages=('+xhr.responseText+').query.pages');for(var page in pages)edittoken=pages[page].edittoken; if(edittoken=='+\\')if(!confirm('You are not logged in, continue?'))return; location.href='http:'+'//toolserver.org/~dispenser/cgi-bin/reflinks.py?client=autobm&family=wikipedia&lang='+wgContentLanguage+'&page='+encodeURIComponent(wgPageName)+(edittoken.length>6?'&autoclick=wpSave&wpEditToken='+edittoken:'&autoclick=wpPreview');};}; xhr.open('GET', wgScriptPath+'/api.php?action=query&prop=info&intoken=edit&titles=M&format=json', true); xhr.send(null);}">Full automatic reflinks</a> invokes the bot script rather than the human assist script here, It tags links === Options === '''None''' will only convert ref link which lack a title, '''bot''' will replace bot generated, and '''simple''' converts all bracketed links <!-- == Features == * Combining duplicate references with semi-intelligent naming * Citation template support * In page editing interactions - never open a new tab to view a page * Applies many common fixes such as convert inline links to <ref> and delinking dates in references --> == To do == * ISBN extraction from PDFs * Plain text converter * Handlers for specific websites (Google books/patents, Amazon, etc...) * Author name extraction * better date determination * figure out a way to tell ambigous dates apart (01.02.09, 02-01-2009) <!-- also ensure stuff like 27 December 05 work --> * Use the other templates more often (e.g. {{[[Template:Press release|Press release]]}} * Archive good links using CiteWeb == External links == * [[User:DumZiBoT/refLinks]] for a fuller explanation and commonly asked questions. * [http://en.wikipedia.org/wiki/User:DumZiBoT/reflinks.py Pywikipedia bot script] * [http://toolserver.org/~dispenser/sources/webreflinks.py Toolserver port source] * [[WP:CITET]] <div class="toptext"><a href="http://en.wikipedia.org/wiki/User:Dispenser/Reflinks" class="extiw">Documentation</a> | <a href="http://en.wikipedia.org/wiki/User_talk:Dispenser/Reflinks" title="User_talk:Dispenser/Reflinks" class="extiw">Report bugs / Feedback</a></div>
Interaction
Main page
Recent changes
Tools
Altviewer
Checklinks
Dablinks
Geodata
Peer reviewer
Pywikipedia
Reflinks
Interaction
Preferences