https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Benutzer%3AFomafix%2Fdiffhistory.js Benutzer:Fomafix/diffhistory.js - Versionsgeschichte 2025-07-17T10:58:24Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.9 https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=143003194&oldid=prev Fomafix: Auf vereinfachtes 'continue' umstellen. https://lists.wikimedia.org/pipermail/wikitech-l/2015-June/081931.html 2015-06-11T17:19:34Z <p>Auf vereinfachtes &#039;continue&#039; umstellen. https://lists.wikimedia.org/pipermail/wikitech-l/2015-June/081931.html</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 11. Juni 2015, 19:19 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 38:</td> <td colspan="2" class="diff-lineno">Zeile 38:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> rvendid: wgStableRevisionId + 1,</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> rvendid: wgStableRevisionId + 1,</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> rvlimit: d.maxrows,</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> rvlimit: d.maxrows,</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> pageids: wgArticleId</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> pageids: wgArticleId<ins style="font-weight: bold; text-decoration: none;">,</ins></div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> 'continue': ''</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }, diffHistory.show );</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }, diffHistory.show );</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> },</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> },</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 60:</td> <td colspan="2" class="diff-lineno">Zeile 61:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.addEntry(p.revisions[j]);</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.addEntry(p.revisions[j]);</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> if (res['<del style="font-weight: bold; text-decoration: none;">query-</del>continue']) {</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> if (res['continue']) {</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.history.appendChild(diffHistory.el('li', '...'));</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.history.appendChild(diffHistory.el('li', '...'));</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=128010475&oldid=prev Fomafix: gerrit:94270: Rename mw.util.wikiGetlink to getUrl. 2014-02-27T20:42:05Z <p><a href="https://gerrit.wikimedia.org/r/94270" class="extiw" title="gerrit:94270">gerrit:94270</a>: Rename mw.util.wikiGetlink to getUrl.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 27. Februar 2014, 22:42 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 82:</td> <td colspan="2" class="diff-lineno">Zeile 82:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.addLink(li, diffHistory.tsToLocal(rev.timestamp), mw.config.get( 'wgScript' ) + '?title='</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.addLink(li, diffHistory.tsToLocal(rev.timestamp), mw.config.get( 'wgScript' ) + '?title='</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + '&amp;oldid=' + rev.revid, ' . . ');</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + '&amp;oldid=' + rev.revid, ' . . ');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.addLink(li, rev.user, mw.util.<del style="font-weight: bold; text-decoration: none;">wikiGetlink</del>( 'User:' + rev.user ), ' (');</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.addLink(li, rev.user, mw.util.<ins style="font-weight: bold; text-decoration: none;">getUrl</ins>( 'User:' + rev.user ), ' (');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Diskussion', mw.util.<del style="font-weight: bold; text-decoration: none;">wikiGetlink</del>( 'User talk:' + rev.user ), ' | ');</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Diskussion', mw.util.<ins style="font-weight: bold; text-decoration: none;">getUrl</ins>( 'User talk:' + rev.user ), ' | ');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Beiträge', mw.util.<del style="font-weight: bold; text-decoration: none;">wikiGetlink</del>( 'Special:Contributions/' + rev.user ), ') ');</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Beiträge', mw.util.<ins style="font-weight: bold; text-decoration: none;">getUrl</ins>( 'Special:Contributions/' + rev.user ), ') ');</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (rev.minor === '') {</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (rev.minor === '') {</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var span = diffHistory.el('span', 'K ');</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var span = diffHistory.el('span', 'K ');</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=103778065&oldid=prev Fomafix: mw.loader.using( [ 'mediawiki.util', 'jquery.makeCollapsible' ], function () {} ) verwendet, weil ab und zu mal collapsible-collapse und collapsible-expand nicht definiert waren. 2012-05-29T11:36:45Z <p>mw.loader.using( [ &#039;mediawiki.util&#039;, &#039;jquery.makeCollapsible&#039; ], function () {} ) verwendet, weil ab und zu mal collapsible-collapse und collapsible-expand nicht definiert waren.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 29. Mai 2012, 13:36 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 121:</td> <td colspan="2" class="diff-lineno">Zeile 121:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>};</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>};</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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>mw.loader.using( [ 'mediawiki.util', 'jquery.makeCollapsible' ], function () {</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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>if ( mw.config.get( 'wgAction' ) === 'view'</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> <del style="font-weight: bold; text-decoration: none;"> &amp;&amp;</del> mw.<del style="font-weight: bold; text-decoration: none;">util</del>.<del style="font-weight: bold; text-decoration: none;">getParamValue</del>( '<del style="font-weight: bold; text-decoration: none;">diff</del>' ) <del style="font-weight: bold; text-decoration: none;">!</del>== <del style="font-weight: bold; text-decoration: none;">null ) {</del></div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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><ins style="font-weight: bold; text-decoration: none;"> if</ins> <ins style="font-weight: bold; text-decoration: none;">(</ins> mw.<ins style="font-weight: bold; text-decoration: none;">config</ins>.<ins style="font-weight: bold; text-decoration: none;">get</ins>( '<ins style="font-weight: bold; text-decoration: none;">wgAction</ins>' ) <ins style="font-weight: bold; text-decoration: none;">=</ins>== <ins style="font-weight: bold; text-decoration: none;">'view'</ins></div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> &amp;&amp; mw.util.getParamValue( 'diff' ) !== null ) {</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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><del style="font-weight: bold; text-decoration: none;"> </del>$( diffHistory.addHistoryBox );</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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><ins style="font-weight: bold; text-decoration: none;"> </ins>$( diffHistory.addHistoryBox );</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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>}</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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><ins style="font-weight: bold; text-decoration: none;"> </ins>}</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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>} );</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=100338787&oldid=prev Fomafix: wgAction === 'historysubmit' gibt es nicht mehr. 2012-03-01T13:29:20Z <p>wgAction === &#039;historysubmit&#039; gibt es nicht mehr.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. März 2012, 15:29 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 99:</td> <td colspan="2" class="diff-lineno">Zeile 99:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var t = diffHistory.history.style.display == 'none';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var t = diffHistory.history.style.display == 'none';</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.history.style.display = t ? 'block' : 'none';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.history.style.display = t ? 'block' : 'none';</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.togglelink.firstChild.nodeValue = mw.msg<del style="font-weight: bold; text-decoration: none;"> </del>( t ? 'collapsible-collapse' : 'collapsible-expand' );</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.togglelink.firstChild.nodeValue = mw.msg( t ? 'collapsible-collapse' : 'collapsible-expand' );</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> return false;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> return false;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> },</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> },</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> createToggle : function () {</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> createToggle : function () {</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var span = diffHistory.el('span', '[');</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var span = diffHistory.el('span', '[');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.togglelink = diffHistory.el('a', mw.msg<del style="font-weight: bold; text-decoration: none;"> </del>( 'collapsible-collapse' ) );</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.togglelink = diffHistory.el('a', mw.msg( 'collapsible-collapse' ) );</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.togglelink.href = '#';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.togglelink.href = '#';</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.togglelink.onclick = diffHistory.toggle;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.togglelink.onclick = diffHistory.toggle;</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 121:</td> <td colspan="2" class="diff-lineno">Zeile 121:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>};</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>};</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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>if<del style="font-weight: bold; text-decoration: none;"> (</del> ( mw.config.get( 'wgAction' ) === 'view'</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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>if ( mw.config.get( 'wgAction' ) === 'view'</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Der Absatz wurde verschoben. Klicken, um zur alten Stelle zu springen." href="#movedpara_9_0_lhs">&#x26AB;</a></td> <td style="color: #202122; 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><a name="movedpara_6_0_rhs"></a> &amp;&amp; mw.util.getParamValue( 'diff' ) !== null ) {</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> || mw.config.get( 'wgAction' ) === 'historysubmit' ) // Kann entfallen, wenn [[rev:108343]] live ist.</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Der Absatz wurde verschoben. Klicken, um zur alten Stelle zu springen." href="#movedpara_10_0_lhs">&#x26AB;</a></td> <td style="color: #202122; 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><a name="movedpara_8_0_rhs"></a> <ins style="font-weight: bold; text-decoration: none;">$</ins>( diffHistory.addHistoryBox );</div></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Der Absatz wurde verschoben. Klicken, um zur neuen Stelle zu springen." href="#movedpara_6_0_rhs">&#x26AB;</a></td> <td style="color: #202122; 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><a name="movedpara_9_0_lhs"></a><del style="font-weight: bold; text-decoration: none;"> </del> &amp;&amp; mw.util.getParamValue( 'diff' ) !== null ) {</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Der Absatz wurde verschoben. Klicken, um zur neuen Stelle zu springen." href="#movedpara_8_0_rhs">&#x26AB;</a></td> <td style="color: #202122; 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><a name="movedpara_10_0_lhs"></a> <del style="font-weight: bold; text-decoration: none;">jQuery( document ).ready</del>( diffHistory.addHistoryBox );</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=98487668&oldid=prev Fomafix: mw.util.wikiGetlink() verwendet 2012-01-17T13:41:52Z <p><a href="https://www.mediawiki.org/wiki/ResourceLoader/Default_modules#wikiGetlink" class="extiw" title="mw:ResourceLoader/Default modules">mw.util.wikiGetlink()</a> verwendet</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 17. Januar 2012, 15:41 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 82:</td> <td colspan="2" class="diff-lineno">Zeile 82:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.addLink(li, diffHistory.tsToLocal(rev.timestamp), mw.config.get( 'wgScript' ) + '?title='</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> diffHistory.addLink(li, diffHistory.tsToLocal(rev.timestamp), mw.config.get( 'wgScript' ) + '?title='</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + '&amp;oldid=' + rev.revid, ' . . ');</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + '&amp;oldid=' + rev.revid, ' . . ');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.addLink(li, rev.user, mw.<del style="font-weight: bold; text-decoration: none;">config</del>.<del style="font-weight: bold; text-decoration: none;">get</del>(<del style="font-weight: bold; text-decoration: none;"> 'wgArticlePath' ).replace(/\$1/g,</del> 'User:' + rev.user), ' (');</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.addLink(li, rev.user, mw.<ins style="font-weight: bold; text-decoration: none;">util</ins>.<ins style="font-weight: bold; text-decoration: none;">wikiGetlink</ins>( 'User:' + rev.user<ins style="font-weight: bold; text-decoration: none;"> </ins>), ' (');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Diskussion', mw.<del style="font-weight: bold; text-decoration: none;">config</del>.<del style="font-weight: bold; text-decoration: none;">get</del>(<del style="font-weight: bold; text-decoration: none;"> 'wgArticlePath' ).replace(/\$1/g,</del> 'User talk:' + rev.user), ' | ');</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Diskussion', mw.<ins style="font-weight: bold; text-decoration: none;">util</ins>.<ins style="font-weight: bold; text-decoration: none;">wikiGetlink</ins>( 'User talk:' + rev.user<ins style="font-weight: bold; text-decoration: none;"> </ins>), ' | ');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Beiträge', mw.<del style="font-weight: bold; text-decoration: none;">config</del>.<del style="font-weight: bold; text-decoration: none;">get</del>(<del style="font-weight: bold; text-decoration: none;"> 'wgArticlePath' ).replace(/\$1/g,</del> 'Special:Contributions/' + rev.user), ') ');</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> diffHistory.addLink(li, 'Beiträge', mw.<ins style="font-weight: bold; text-decoration: none;">util</ins>.<ins style="font-weight: bold; text-decoration: none;">wikiGetlink</ins>( 'Special:Contributions/' + rev.user<ins style="font-weight: bold; text-decoration: none;"> </ins>), ') ');</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (rev.minor === '') {</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (rev.minor === '') {</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var span = diffHistory.el('span', 'K ');</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var span = diffHistory.el('span', 'K ');</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=98264951&oldid=prev Fomafix: Alle Funktionen nach mw:ResourceLoader/JavaScript Deprecations ersetzt. Teilweise auf jQuery umgestellt: AJAX statt JSONP. 2012-01-12T10:15:58Z <p>Alle Funktionen nach <a href="https://www.mediawiki.org/wiki/ResourceLoader/JavaScript_Deprecations" class="extiw" title="mw:ResourceLoader/JavaScript Deprecations">mw:ResourceLoader/JavaScript Deprecations</a> ersetzt. Teilweise auf jQuery umgestellt: <a href="/wiki/AJAX" class="mw-redirect" title="AJAX">AJAX</a> statt <a href="/wiki/JSONP" class="mw-redirect" title="JSONP">JSONP</a>.</p> <a href="//de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&amp;diff=98264951&amp;oldid=98122301">Änderungen zeigen</a> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=98122301&oldid=prev Fomafix: Umgestellt auf #mw-fr-diff-headeritems, da #contentSub und #jump-to-nav nicht auf allen Skins vorhanden ist. width = 'auto' statt die willkürlichen width = '95%'. Hinweis auf rev:108343 2012-01-09T08:28:35Z <p>Umgestellt auf #mw-fr-diff-headeritems, da #contentSub und #jump-to-nav nicht auf allen Skins vorhanden ist. width = &#039;auto&#039; statt die willkürlichen width = &#039;95%&#039;. Hinweis auf <a href="https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108343" class="extiw" title="rev:108343">rev:108343</a></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 9. Januar 2012, 10:28 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 25:</td> <td colspan="2" class="diff-lineno">Zeile 25:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.history.appendChild(d.el('li', 'Lade Versionsgeschichte …'));</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.history.appendChild(d.el('li', 'Lade Versionsgeschichte …'));</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.className = 'portlet pBody diffhistorybox';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.className = 'portlet pBody diffhistorybox';</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> d.box.style.width = '<del style="font-weight: bold; text-decoration: none;">95%</del>';</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> d.box.style.width = '<ins style="font-weight: bold; text-decoration: none;">auto</ins>';</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> var contentSub = document.getElementById('mw-fr-diff-headeritems');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> d.box.style.textAlign= 'left';</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> contentSub.parentNode.insertBefore(d.box, contentSub);</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> multi.appendChild(d.box);</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> //Fetch history</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> //Fetch history</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var url = mw.util.wikiScript( 'api' ) + '?format=json&amp;callback=diffHistory.show&amp;action=query'</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var url = mw.util.wikiScript( 'api' ) + '?format=json&amp;callback=diffHistory.show&amp;action=query'</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 112:</td> <td colspan="2" class="diff-lineno">Zeile 112:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>};</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>};</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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>if<del style="font-weight: bold; text-decoration: none;"> (</del> ( ( mw.config.get( 'wgAction' ) === 'view'<del style="font-weight: bold; text-decoration: none;">)</del></div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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>if ( ( mw.config.get( 'wgAction' ) === 'view'</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> ||<del style="font-weight: bold; text-decoration: none;"> (</del> mw.config.get( 'wgAction' ) === 'historysubmit'<del style="font-weight: bold; text-decoration: none;">)</del> )</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> || mw.config.get( 'wgAction' ) === 'historysubmit' )<ins style="font-weight: bold; text-decoration: none;"> // Kann mit [[rev:108343]] entfallen</ins></div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> &amp;&amp; mw.util.getParamValue( 'diff' ) !== null ) {</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> &amp;&amp; mw.util.getParamValue( 'diff' ) !== null ) {</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> jQuery( document ).ready( diffHistory.addHistoryBox );</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> jQuery( document ).ready( diffHistory.addHistoryBox );</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=97968039&oldid=prev Fomafix: Besser an die Stelle .diff-multi. Die Klasse wir eh schon gesucht. text-align:left ist hier zusätzlich notwendig. 2012-01-05T14:07:43Z <p>Besser an die Stelle .diff-multi. Die Klasse wir eh schon gesucht. text-align:left ist hier zusätzlich notwendig.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 5. Januar 2012, 16:07 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 26:</td> <td colspan="2" class="diff-lineno">Zeile 26:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.className = 'portlet pBody diffhistorybox';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.className = 'portlet pBody diffhistorybox';</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.style.width = '95%';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.style.width = '95%';</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> d.box.style.textAlign= 'left';</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> var contentSub = document.getElementById('contentSub');</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> multi.appendChild(d.box);</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> contentSub.parentNode.insertBefore(d.box, contentSub.nextSibling);</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> //Fetch history</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> //Fetch history</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var url = mw.util.wikiScript( 'api' ) + '?format=json&amp;callback=diffHistory.show&amp;action=query'</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var url = mw.util.wikiScript( 'api' ) + '?format=json&amp;callback=diffHistory.show&amp;action=query'</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=97966688&oldid=prev Fomafix: Auf #contentSub umgestellt. #jump-to-nav kann auf Spezial:Einstellungen#mw-prefsection-rendering ausgestellt werden. #mw-fr-reviewform ist nicht immer da. 2012-01-05T13:40:54Z <p>Auf #contentSub umgestellt. #jump-to-nav kann auf <a href="/wiki/Spezial:Einstellungen#mw-prefsection-rendering" title="Spezial:Einstellungen">Spezial:Einstellungen#mw-prefsection-rendering</a> ausgestellt werden. #mw-fr-reviewform ist nicht immer da.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 5. Januar 2012, 15:40 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 26:</td> <td colspan="2" class="diff-lineno">Zeile 26:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.className = 'portlet pBody diffhistorybox';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.className = 'portlet pBody diffhistorybox';</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.style.width = '95%';</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d.box.style.width = '95%';</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> var <del style="font-weight: bold; text-decoration: none;">reviewform</del> = document.getElementById(<del style="font-weight: bold; text-decoration: none;"> </del>'<del style="font-weight: bold; text-decoration: none;">mw-fr-reviewform</del>'<del style="font-weight: bold; text-decoration: none;"> </del>);</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> var <ins style="font-weight: bold; text-decoration: none;">contentSub</ins> = document.getElementById('<ins style="font-weight: bold; text-decoration: none;">contentSub</ins>');</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; 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> <del style="font-weight: bold; text-decoration: none;">reviewform</del>.insertBefore(d.box,<del style="font-weight: bold; text-decoration: none;">reviewform</del>.<del style="font-weight: bold; text-decoration: none;">firstchild</del>);</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; 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> <ins style="font-weight: bold; text-decoration: none;">contentSub.parentNode</ins>.insertBefore(d.box,<ins style="font-weight: bold; text-decoration: none;"> contentSub</ins>.<ins style="font-weight: bold; text-decoration: none;">nextSibling</ins>);</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> //Fetch history</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> //Fetch history</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var url = mw.util.wikiScript( 'api' ) + '?format=json&amp;callback=diffHistory.show&amp;action=query'</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var url = mw.util.wikiScript( 'api' ) + '?format=json&amp;callback=diffHistory.show&amp;action=query'</div></td> </tr> </table> Fomafix https://de.wikipedia.org/w/index.php?title=Benutzer:Fomafix/diffhistory.js&diff=97965106&oldid=prev Fomafix: Kopie von https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/diffhistory.js&oldid=65340160 mw:ResourceLoader/JavaScript Deprecations, mw:Manual:Coding conventions/JavaScript, #mw-fr-reviewform statt #jump-to-nav 2012-01-05T13:00:06Z <p>Kopie von https://de.wikipedia.org/w/index.php?title=<a href="/wiki/Benutzer:P.Copp/scripts/diffhistory.js" title="Benutzer:P.Copp/scripts/diffhistory.js">Benutzer:P.Copp/scripts/diffhistory.js</a>&amp;oldid=65340160 <a href="https://www.mediawiki.org/wiki/ResourceLoader/JavaScript_Deprecations" class="extiw" title="mw:ResourceLoader/JavaScript Deprecations">mw:ResourceLoader/JavaScript Deprecations</a>, <a href="https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript" class="extiw" title="mw:Manual:Coding conventions/JavaScript">mw:Manual:Coding conventions/JavaScript</a>, #mw-fr-reviewform statt #jump-to-nav</p> <p><b>Neue Seite</b></p><div>// Zeigt bei Diffs auf nachzusichtenden Seiten eine Übersicht über<br /> // ungesichtete Versionen an.<br /> <br /> var diffHistory = {<br /> maxrows : 10,<br /> addHistoryBox : function () {<br /> var d = diffHistory;<br /> //Check if old reviewed page<br /> if (!window.wgStableRevisionId || wgStableRevisionId == wgCurRevisionId) return;<br /> var oldid = document.getElementById(&#039;mw-diff-otitle1&#039;).firstChild.firstChild.href.match(/&amp;oldid=([^&amp;]*)/)[1];<br /> var curid = document.getElementById(&#039;mw-diff-ntitle1&#039;).firstChild.firstChild.href.match(/&amp;oldid=([^&amp;]*)/)[1];<br /> if (wgStableRevisionId == oldid &amp;&amp; wgCurRevisionId == curid) {<br /> //Check if multi diff<br /> var table = getElementsByClassName(document, &#039;table&#039;, &#039;diff&#039;)[0];<br /> var multi = getElementsByClassName(table, &#039;td&#039;, &#039;diff-multi&#039;)[0];<br /> if (!multi) return; //all revisions shown<br /> }<br /> //Create history box above the review form<br /> d.box = document.createElement(&#039;fieldset&#039;);<br /> var legend = d.el(&#039;legend&#039;, &#039;Ungesichtete Versionen&#039;);<br /> legend.style.padding = 0;<br /> d.box.appendChild(legend);<br /> d.createToggle();<br /> d.box.appendChild(d.history = document.createElement(&#039;ul&#039;));<br /> d.history.appendChild(d.el(&#039;li&#039;, &#039;Lade Versionsgeschichte …&#039;));<br /> d.box.className = &#039;portlet pBody diffhistorybox&#039;;<br /> d.box.style.width = &#039;95%&#039;;<br /> var reviewform = document.getElementById( &#039;mw-fr-reviewform&#039; );<br /> reviewform.insertBefore(d.box,reviewform.firstchild);<br /> //Fetch history<br /> var url = mw.util.wikiScript( &#039;api&#039; ) + &#039;?format=json&amp;callback=diffHistory.show&amp;action=query&#039;<br /> + &#039;&amp;prop=revisions&amp;rvprop=user|timestamp|size|flags|ids|comment&amp;rvendid=&#039;<br /> + (wgStableRevisionId + 1) + &#039;&amp;rvlimit=&#039; + d.maxrows + &#039;&amp;pageids=&#039; + wgArticleId;<br /> importScriptURI(url);<br /> },<br /> tsToLocal : function (ts) {<br /> var m = ts.match(/^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/);<br /> var d = new Date(Date.UTC(m[1],m[2]-1,m[3],m[4],m[5],m[6]));<br /> var tzdiff = d.getTimezoneOffset() - (new Date()).getTimezoneOffset();<br /> if (tzdiff) d.setTime(d.getTime() + tzdiff * 60 * 1000);<br /> var hour = d.getHours() &lt; 10 ? &#039;0&#039; + d.getHours() : d.getHours();<br /> var min = d.getMinutes() &lt; 10 ? &#039;0&#039; + d.getMinutes() : d.getMinutes();<br /> var month = [&#039;Jan&#039;,&#039;Feb&#039;,&#039;Mär&#039;,&#039;Apr&#039;,&#039;Mai&#039;,&#039;Jun&#039;,&#039;Jul&#039;,&#039;Aug&#039;,&#039;Sep&#039;,&#039;Okt&#039;,&#039;Nov&#039;,&#039;Dez&#039;][d.getMonth()];<br /> return d.getDate() + &#039;. &#039; + month + &#039;. &#039; + d.getFullYear() + &#039;, &#039; + hour + &#039;:&#039; + min;<br /> },<br /> show : function (res) {<br /> var i, j, p;<br /> this.history.removeChild(this.history.firstChild);<br /> try {<br /> for (i in res.query.pages) {<br /> p = res.query.pages[i];<br /> if (p.revisions) for (j=0; j&lt;p.revisions.length; j++)<br /> this.addEntry(p.revisions[j]);<br /> }<br /> if (res[&#039;query-continue&#039;]) {<br /> this.history.appendChild(this.el(&#039;li&#039;, &#039;...&#039;));<br /> }<br /> }<br /> catch (e) {<br /> this.history.appendChild(this.el(&#039;li&#039;, &#039;Fehler beim Laden der Versionen.&#039;));<br /> }<br /> },<br /> addLink : function (node, text, target, postfix) {<br /> var link = this.el(&#039;a&#039;, text);<br /> link.href = target;<br /> node.appendChild(link);<br /> node.appendChild(document.createTextNode(postfix));<br /> },<br /> addEntry : function (rev) {<br /> var li = this.el(&#039;li&#039;, &#039;(&#039;);<br /> this.addLink(li, &#039;Aktuell&#039;, mw.config.get( &#039;wgScript&#039; ) + &#039;?title=&#039; + mw.util.wikiUrlencode( mw.config.get( &#039;wgPageName&#039; ) )<br /> + &#039;&amp;diff=cur&amp;oldid=&#039; + rev.revid, &#039;) (&#039;);<br /> this.addLink(li, &#039;Vorherige&#039;, mw.config.get( &#039;wgScript&#039; ) + &#039;?title=&#039; + mw.util.wikiUrlencode( mw.config.get( &#039;wgPageName&#039; ) )<br /> + &#039;&amp;diff=prev&amp;oldid=&#039; + rev.revid, &#039;) . . &#039;);<br /> this.addLink(li, diffHistory.tsToLocal(rev.timestamp), mw.config.get( &#039;wgScript&#039; ) + &#039;?title=&#039;<br /> + mw.util.wikiUrlencode( mw.config.get( &#039;wgPageName&#039; ) ) + &#039;&amp;oldid=&#039; + rev.revid, &#039; . . &#039;);<br /> this.addLink(li, rev.user, wgArticlePath.replace(/\$1/g, &#039;User:&#039; + rev.user), &#039; (&#039;);<br /> this.addLink(li, &#039;Diskussion&#039;, wgArticlePath.replace(/\$1/g, &#039;User talk:&#039; + rev.user), &#039; | &#039;);<br /> this.addLink(li, &#039;Beiträge&#039;, wgArticlePath.replace(/\$1/g, &#039;Special:Contributions/&#039; + rev.user), &#039;) &#039;);<br /> if (rev.minor === &#039;&#039;) {<br /> var span = this.el(&#039;span&#039;, &#039;K &#039;);<br /> span.className = &#039;minor&#039;;<br /> li.appendChild(span);<br /> }<br /> if (rev.size) li.appendChild(document.createTextNode(&#039;(&#039; + rev.size + &#039; Bytes) &#039;));<br /> var span = this.el(&#039;span&#039;, &#039;(&#039; + (rev.comment || &#039;&#039;) + &#039;)&#039;);<br /> span.className = &#039;comment&#039;;<br /> li.appendChild(span);<br /> this.history.appendChild(li);<br /> },<br /> toggle : function () {<br /> var t = this.history.style.display == &#039;none&#039;;<br /> this.history.style.display = t ? &#039;block&#039; : &#039;none&#039;;<br /> this.togglelink.firstChild.nodeValue = mw.msg ( t ? &#039;collapsible-collapse&#039; : &#039;collapsible-expand&#039; );<br /> },<br /> createToggle : function () {<br /> var span = this.el(&#039;span&#039;, &#039;[&#039;);<br /> this.togglelink = this.el(&#039;a&#039;, mw.msg ( &#039;collapsible-collapse&#039; ) );<br /> this.togglelink.href = &#039;javascript:diffHistory.toggle()&#039;;<br /> span.appendChild(this.togglelink);<br /> span.appendChild(document.createTextNode(&#039;]&#039;));<br /> span.style.fontSize = &#039;x-small&#039;;<br /> span.style.cssFloat = &#039;right&#039;;<br /> span.style.styleFloat = &#039;right&#039;;<br /> this.box.appendChild(span);<br /> },<br /> el : function (tag, text) {<br /> var el = document.createElement(tag);<br /> el.appendChild(document.createTextNode(text));<br /> return el;<br /> }<br /> };<br /> <br /> if ( ( ( mw.config.get( &#039;wgAction&#039; ) === &#039;view&#039;)<br /> || ( mw.config.get( &#039;wgAction&#039; ) === &#039;historysubmit&#039;) )<br /> &amp;&amp; mw.util.getParamValue( &#039;diff&#039; ) !== null ) {<br /> jQuery( document ).ready( diffHistory.addHistoryBox );<br /> }</div> Fomafix