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 'continue' 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' ) ) + '&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' ) ) + '&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( [ 'mediawiki.util', 'jquery.makeCollapsible' ], 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;"> &&</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> && 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 === 'historysubmit' 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">⚫</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> && 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">⚫</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">⚫</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> && 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">⚫</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' ) ) + '&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' ) ) + '&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&diff=98264951&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 = 'auto' statt die willkürlichen width = '95%'. 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&callback=diffHistory.show&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&callback=diffHistory.show&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> && 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> && 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&callback=diffHistory.show&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&callback=diffHistory.show&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&callback=diffHistory.show&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&callback=diffHistory.show&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>&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('mw-diff-otitle1').firstChild.firstChild.href.match(/&oldid=([^&]*)/)[1];<br />
var curid = document.getElementById('mw-diff-ntitle1').firstChild.firstChild.href.match(/&oldid=([^&]*)/)[1];<br />
if (wgStableRevisionId == oldid && wgCurRevisionId == curid) {<br />
//Check if multi diff<br />
var table = getElementsByClassName(document, 'table', 'diff')[0];<br />
var multi = getElementsByClassName(table, 'td', 'diff-multi')[0];<br />
if (!multi) return; //all revisions shown<br />
}<br />
//Create history box above the review form<br />
d.box = document.createElement('fieldset');<br />
var legend = d.el('legend', 'Ungesichtete Versionen');<br />
legend.style.padding = 0;<br />
d.box.appendChild(legend);<br />
d.createToggle();<br />
d.box.appendChild(d.history = document.createElement('ul'));<br />
d.history.appendChild(d.el('li', 'Lade Versionsgeschichte …'));<br />
d.box.className = 'portlet pBody diffhistorybox';<br />
d.box.style.width = '95%';<br />
var reviewform = document.getElementById( 'mw-fr-reviewform' );<br />
reviewform.insertBefore(d.box,reviewform.firstchild);<br />
//Fetch history<br />
var url = mw.util.wikiScript( 'api' ) + '?format=json&callback=diffHistory.show&action=query'<br />
+ '&prop=revisions&rvprop=user|timestamp|size|flags|ids|comment&rvendid='<br />
+ (wgStableRevisionId + 1) + '&rvlimit=' + d.maxrows + '&pageids=' + 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() < 10 ? '0' + d.getHours() : d.getHours();<br />
var min = d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes();<br />
var month = ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'][d.getMonth()];<br />
return d.getDate() + '. ' + month + '. ' + d.getFullYear() + ', ' + hour + ':' + 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<p.revisions.length; j++)<br />
this.addEntry(p.revisions[j]);<br />
}<br />
if (res['query-continue']) {<br />
this.history.appendChild(this.el('li', '...'));<br />
}<br />
}<br />
catch (e) {<br />
this.history.appendChild(this.el('li', 'Fehler beim Laden der Versionen.'));<br />
}<br />
},<br />
addLink : function (node, text, target, postfix) {<br />
var link = this.el('a', 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('li', '(');<br />
this.addLink(li, 'Aktuell', mw.config.get( 'wgScript' ) + '?title=' + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) )<br />
+ '&diff=cur&oldid=' + rev.revid, ') (');<br />
this.addLink(li, 'Vorherige', mw.config.get( 'wgScript' ) + '?title=' + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) )<br />
+ '&diff=prev&oldid=' + rev.revid, ') . . ');<br />
this.addLink(li, diffHistory.tsToLocal(rev.timestamp), mw.config.get( 'wgScript' ) + '?title='<br />
+ mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + '&oldid=' + rev.revid, ' . . ');<br />
this.addLink(li, rev.user, wgArticlePath.replace(/\$1/g, 'User:' + rev.user), ' (');<br />
this.addLink(li, 'Diskussion', wgArticlePath.replace(/\$1/g, 'User talk:' + rev.user), ' | ');<br />
this.addLink(li, 'Beiträge', wgArticlePath.replace(/\$1/g, 'Special:Contributions/' + rev.user), ') ');<br />
if (rev.minor === '') {<br />
var span = this.el('span', 'K ');<br />
span.className = 'minor';<br />
li.appendChild(span);<br />
}<br />
if (rev.size) li.appendChild(document.createTextNode('(' + rev.size + ' Bytes) '));<br />
var span = this.el('span', '(' + (rev.comment || '') + ')');<br />
span.className = 'comment';<br />
li.appendChild(span);<br />
this.history.appendChild(li);<br />
},<br />
toggle : function () {<br />
var t = this.history.style.display == 'none';<br />
this.history.style.display = t ? 'block' : 'none';<br />
this.togglelink.firstChild.nodeValue = mw.msg ( t ? 'collapsible-collapse' : 'collapsible-expand' );<br />
},<br />
createToggle : function () {<br />
var span = this.el('span', '[');<br />
this.togglelink = this.el('a', mw.msg ( 'collapsible-collapse' ) );<br />
this.togglelink.href = 'javascript:diffHistory.toggle()';<br />
span.appendChild(this.togglelink);<br />
span.appendChild(document.createTextNode(']'));<br />
span.style.fontSize = 'x-small';<br />
span.style.cssFloat = 'right';<br />
span.style.styleFloat = 'right';<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( 'wgAction' ) === 'view')<br />
|| ( mw.config.get( 'wgAction' ) === 'historysubmit') )<br />
&& mw.util.getParamValue( 'diff' ) !== null ) {<br />
jQuery( document ).ready( diffHistory.addHistoryBox );<br />
}</div>
Fomafix