http://en.demopaedia.org/w/index.php?title=MediaWiki:Gadget-citations.js&feed=atom&action=history
MediaWiki:Gadget-citations.js - Revision history
2024-03-29T12:59:26Z
Revision history for this page on the wiki
MediaWiki 1.28.0
http://en.demopaedia.org/w/index.php?title=MediaWiki:Gadget-citations.js&diff=497&oldid=prev
Nicolas Brouard at 16:23, 1 October 2012
2012-10-01T16:23:11Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 16:23, 1 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l31" >Line 31:</td>
<td colspan="2" class="diff-lineno">Line 31:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> cbButton.type="submit";</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> cbButton.type="submit";</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> originalAction=document.getElementById('editform').getAttribute('action');</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> originalAction=document.getElementById('editform').getAttribute('action');</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> cbButton.setAttribute("onmousedown", " document.getElementById('editform').setAttribute('action', 'http://tools.demopaedia.<del class="diffchange diffchange-inline">eu</del>/~brouard/Bot/citation-bot/text.php')");</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> cbButton.setAttribute("onmousedown", " document.getElementById('editform').setAttribute('action', 'http://tools.demopaedia.<ins class="diffchange diffchange-inline">org</ins>/~brouard/Bot/citation-bot/text.php')");</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> cbButton.setAttribute("onkeydown", " document.getElementById('editform').setAttribute('action', 'http://tools.demopaedia.<del class="diffchange diffchange-inline">eu</del>/~brouard/Bot/citation-bot/text.php')");</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> cbButton.setAttribute("onkeydown", " document.getElementById('editform').setAttribute('action', 'http://tools.demopaedia.<ins class="diffchange diffchange-inline">org</ins>/~brouard/Bot/citation-bot/text.php')");</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> diff.setAttribute("onmousedown", originalAction);</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> diff.setAttribute("onmousedown", originalAction);</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> diff.setAttribute("onkeydown", originalAction);</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> diff.setAttribute("onkeydown", originalAction);</div></td></tr>
</table>
Nicolas Brouard
http://en.demopaedia.org/w/index.php?title=MediaWiki:Gadget-citations.js&diff=496&oldid=prev
Nicolas Brouard: Back to org.
2012-10-01T16:22:28Z
<p>Back to org.</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 16:22, 1 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l19" >Line 19:</td>
<td colspan="2" class="diff-lineno">Line 19:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>   var escPageName = encodeURIComponent(wgPageName);</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>   var escPageName = encodeURIComponent(wgPageName);</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>   addPortletLink("p-tb", "http://tools.demopaedia.<del class="diffchange diffchange-inline">eu</del>/~brouard/Bot/citation-bot/doibot.php?edit=toolbar&slow=1&user="+encodeURIComponent(wgUserName)+"&page="+escPageName, 'Expand citations', '', "Expand citations and fix common formatting errors");</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>   addPortletLink("p-tb", "http://tools.demopaedia.<ins class="diffchange diffchange-inline">org</ins>/~brouard/Bot/citation-bot/doibot.php?edit=toolbar&slow=1&user="+encodeURIComponent(wgUserName)+"&page="+escPageName, 'Expand citations', '', "Expand citations and fix common formatting errors");</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>     }</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>     }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>}</div></td></tr>
</table>
Nicolas Brouard
http://en.demopaedia.org/w/index.php?title=MediaWiki:Gadget-citations.js&diff=466&oldid=prev
Nicolas Brouard: 1 revision: From Paris 2007
2012-09-26T17:32:13Z
<p>1 revision: From Paris 2007</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 17:32, 26 September 2012</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Nicolas Brouard
http://en.demopaedia.org/w/index.php?title=MediaWiki:Gadget-citations.js&diff=465&oldid=prev
Nicolas Brouard at 10:52, 25 September 2012
2012-09-25T10:52:20Z
<p></p>
<p><b>New page</b></p><div>/* _____________________________________________________________________________<br />
* | |<br />
* | === WARNING: GLOBAL GADGET FILE === |<br />
* | Changes to this page affect many users. |<br />
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |<br />
* |_____________________________________________________________________________|<br />
*<br />
* Imported from version 1.0 as of 17:18, 9 April 2011 (UTC) from [[User:Smith609/citations.js]]<br />
* Adds a "Citation bot" link to the toolbox, and a button beneath edit fields, see [[User:Smith609/citations]]<br />
* Ported to demopaedia<br />
*/<br />
<br />
// @Version 1.0 - Adds an "Expand citations" link to the toolbox, and a button beneath edit fields.<br />
<br />
function addCBToToolbox() {<br />
if (wgCanonicalNamespace != "Special") {<br />
var pTb = document.getElementById("p-tb");<br />
if( !pTb ) return;<br />
var escPageName = encodeURIComponent(wgPageName);<br />
<br />
addPortletLink("p-tb", "http://tools.demopaedia.eu/~brouard/Bot/citation-bot/doibot.php?edit=toolbar&slow=1&user="+encodeURIComponent(wgUserName)+"&page="+escPageName, 'Expand citations', '', "Expand citations and fix common formatting errors");<br />
}<br />
}<br />
<br />
// Add a citation bot button<br />
function addCitationBot() {<br />
if (document.getElementById('wpDiff')){<br />
var diff = document.getElementById('wpDiff');<br />
var cbButton = document.createElement("input");<br />
cbButton.value="Citations";<br />
cbButton.type="submit";<br />
originalAction=document.getElementById('editform').getAttribute('action');<br />
cbButton.setAttribute("onmousedown", " document.getElementById('editform').setAttribute('action', 'http://tools.demopaedia.eu/~brouard/Bot/citation-bot/text.php')");<br />
cbButton.setAttribute("onkeydown", " document.getElementById('editform').setAttribute('action', 'http://tools.demopaedia.eu/~brouard/Bot/citation-bot/text.php')");<br />
diff.setAttribute("onmousedown", originalAction);<br />
diff.setAttribute("onkeydown", originalAction);<br />
document.getElementById('wpPreview').setAttribute("onmousedown", originalAction);<br />
document.getElementById('wpPreview').setAttribute("onkeydown", originalAction);<br />
document.getElementById('wpSave').setAttribute("onmousedown", originalAction);<br />
document.getElementById('wpSave').setAttribute("onkeydown", originalAction);<br />
diff.parentNode.insertBefore(cbButton, diff.nextSibling);<br />
}<br />
<br />
}<br />
addOnloadHook(addCitationBot);<br />
if( skin == "myskin" || skin == "simple" || skin == "monobook" || skin == "modern" || skin == "chick" || skin == "vector") {<br />
addOnloadHook(addCBToToolbox);<br />
}</div>
Nicolas Brouard