https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Benutzer%3AP.Copp%2Fscripts%2FExtra-Editbuttons.js Benutzer:P.Copp/scripts/Extra-Editbuttons.js - Versionsgeschichte 2025-06-13T08:58:21Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.4 https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=227984484&oldid=prev Doc Taxon: HTML-Validierung: <tt> → <code> 2022-11-15T01:29:38Z <p><a href="/wiki/Hilfe:LINT#Veraltetes_HTML-Tag" class="mw-redirect" title="Hilfe:LINT">HTML-Validierung</a>: &lt;tt&gt; → &lt;code&gt;</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 15. November 2022, 03:29 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 338:</td> <td colspan="2" class="diff-lineno">Zeile 338:</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> commonsUrl + '7/70/Button_fusion.png',</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> commonsUrl + '7/70/Button_fusion.png',</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> 'Redundanz',</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> 'Redundanz',</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;">ers:Redundanz|',</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;">Redundanztext</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;"> '}}</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;">|3=</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> <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>|4=Artikel2</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>|2=November 2022|1=– [[Benutzer:Doc Taxon|Doc Taxon]] • &lt;small&gt;[[BD:Doc Taxon|Disk.]]&lt;/small&gt; •&lt;small&gt; 02:29, 15. Nov 2022 (CET)&lt;/small&gt; 02:29, 15. Nov. 2022 (CET)}}',</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> 'Artikel1|Artikel2|Artikel3…'</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> 'Artikel1|Artikel2|Artikel3…'</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 366:</td> <td colspan="2" class="diff-lineno">Zeile 369:</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> commonsUrl + '7/74/Button_oeil.png',</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> commonsUrl + '7/74/Button_oeil.png',</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> 'Smiley',</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> 'Smiley',</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> '&lt;<del style="font-weight: bold; text-decoration: none;">tt</del> style="background:#FE3"&gt;',</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> '&lt;<ins style="font-weight: bold; text-decoration: none;">code</ins> style="background:#FE3"&gt;',</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> '&lt;/<del style="font-weight: bold; text-decoration: none;">tt</del>&gt;',</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> '&lt;/<ins style="font-weight: bold; text-decoration: none;">code</ins>&gt;',</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'</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'</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 394:</td> <td colspan="2" class="diff-lineno">Zeile 397:</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> commonsUrl + '3/30/Tt_icon.png',</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> commonsUrl + '3/30/Tt_icon.png',</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> 'Schreibmaschinenstil',</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> 'Schreibmaschinenstil',</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> '&lt;<del style="font-weight: bold; text-decoration: none;">tt</del>&gt;',</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> '&lt;<ins style="font-weight: bold; text-decoration: none;">code</ins>&gt;',</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> '&lt;\/<del style="font-weight: bold; text-decoration: none;">tt</del>&gt;',</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> '&lt;\/<ins style="font-weight: bold; text-decoration: none;">code</ins>&gt;',</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> 'Teletyper Text'</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> 'Teletyper Text'</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> Doc Taxon https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=107149882&oldid=prev P.Copp: fix für 1.20wmf9 2012-08-23T12:31:37Z <p>fix für 1.20wmf9</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 23. August 2012, 14:31 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 642:</td> <td colspan="2" class="diff-lineno">Zeile 642:</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"></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> // Remove some default buttons if requested</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> // Remove some default buttons if requested</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( window.rmEditButtons<del style="font-weight: bold; text-decoration: none;"> &amp;&amp; mw.toolbar.$toolbar</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( window.rmEditButtons ) {</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 remove = window.rmEditButtons;</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 remove = window.rmEditButtons;</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( ( remove[0] + '' ).toLowerCase() === 'all' ) {</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( ( remove[0] + '' ).toLowerCase() === 'all' ) {</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 649:</td> <td colspan="2" class="diff-lineno">Zeile 649:</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> remove.sort().reverse();</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> remove.sort().reverse();</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> var $toolbarButtons = <del style="font-weight: bold; text-decoration: none;">mw.toolbar.</del>$toolbar.children();</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 $toolbarButtons = $<ins style="font-weight: bold; text-decoration: none;">( '#</ins>toolbar<ins style="font-weight: bold; text-decoration: none;">' )</ins>.children();</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> for( var i = 0, l = remove.length; i &lt; l; i++ ) {</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> for( var i = 0, l = remove.length; i &lt; l; i++ ) {</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> $toolbarButtons.eq( remove[i] ).remove();</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> $toolbarButtons.eq( remove[i] ).remove();</div></td> </tr> </table> P.Copp https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=107149817&oldid=prev P.Copp: sync 2012-08-23T12:29:54Z <p>sync</p> <a href="//de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&amp;diff=107149817&amp;oldid=100636760">Änderungen zeigen</a> P.Copp https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=100636760&oldid=prev P.Copp: fix und merge (https://de.wikipedia.org/w/index.php?diff=100635872&oldid=100635298) 2012-03-08T17:48:31Z <p>fix und merge (https://de.wikipedia.org/w/index.php?diff=100635872&amp;oldid=100635298)</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 8. März 2012, 19:48 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 16:</td> <td colspan="2" class="diff-lineno">Zeile 16:</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;</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;</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-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;"><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> // Defer registering the document.ready hook until after mediawiki.action.edit is loaded</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.loader.using( 'mediawiki.action.edit', 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;"><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"></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> // By registering our dependency after document.ready, we make sure</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> // By registering our dependency after document.ready, we make sure</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 643:</td> <td colspan="2" class="diff-lineno">Zeile 646:</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"></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> // Remove some default buttons if requested</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> // Remove some default buttons if requested</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( window.rmEditButtons ) {</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( window.rmEditButtons<ins style="font-weight: bold; text-decoration: none;"> &amp;&amp; mw.toolbar.$toolbar</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> var remove = window.rmEditButtons;</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 remove = window.rmEditButtons;</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( ( remove[0] + '' ).toLowerCase() === 'all' ) {</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( ( remove[0] + '' ).toLowerCase() === 'all' ) {</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 677:</td> <td colspan="2" class="diff-lineno">Zeile 680:</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"></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> // Adjust width of spacer images</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> // Adjust width of spacer images</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.toolbar.$toolbar.children( 'img[src="' + buttons['T1'][0] + '"]' ).width( 6 ).unbind( 'click' );</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( mw.toolbar.$toolbar ) {</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><ins style="font-weight: bold; text-decoration: none;"> </ins> mw.toolbar.$toolbar.children( 'img[src="' + buttons['T1'][0] + '"]' ).width( 6 ).unbind( 'click' );</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> <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"></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 698:</td> <td colspan="2" class="diff-lineno">Zeile 703:</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( exfield ) {</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( exfield ) {</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> items++;</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> items++;</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> code += '|-\n! style="background: #FFDDDD;"|ITEM ' + items + '\n';</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> code += '|-\n! style="background: #FFDDDD;"<ins style="font-weight: bold; text-decoration: none;"> </ins>|<ins style="font-weight: bold; text-decoration: none;"> </ins>ITEM ' + items + '\n';</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> } else {</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> } else {</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> code += '|-\n';</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> code += '|-\n';</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 744:</td> <td colspan="2" class="diff-lineno">Zeile 749:</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> popup.document.close();</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> popup.document.close();</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> return false</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> return false<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> }</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> } );</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-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> <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>})();</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> P.Copp https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=100617917&oldid=prev P.Copp: fix, siehe https://de.wikipedia.org/w/index.php?diff=100616942&oldid=100601733 2012-03-08T09:50:43Z <p>fix, siehe https://de.wikipedia.org/w/index.php?diff=100616942&amp;oldid=100601733</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 8. März 2012, 11:50 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 671:</td> <td colspan="2" class="diff-lineno">Zeile 671:</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> $( '#wpTextbox1' ).val( text );</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> $( '#wpTextbox1' ).val( text );</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> $( '#wpSummary' ).val( text );</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> $( '#wpSummary' ).val( text );</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> $( '#wpWatchthis' ).<del style="font-weight: bold; text-decoration: none;">val</del>( false );</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> $( '#wpWatchthis' ).<ins style="font-weight: bold; text-decoration: none;">prop</ins>(<ins style="font-weight: bold; text-decoration: none;"> 'checked',</ins> 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> } ); </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> P.Copp https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=100583768&oldid=prev P.Copp: überarbeitet 2012-03-07T13:01:04Z <p>überarbeitet</p> <a href="//de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&amp;diff=100583768&amp;oldid=100583640">Änderungen zeigen</a> P.Copp https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/Extra-Editbuttons.js&diff=100583640&oldid=prev P.Copp: Kopie von MediaWiki:Gadget-Extra-Editbuttons.js 2012-03-07T12:57:25Z <p>Kopie von <a href="/wiki/MediaWiki:Gadget-Extra-Editbuttons.js" title="MediaWiki:Gadget-Extra-Editbuttons.js">MediaWiki:Gadget-Extra-Editbuttons.js</a></p> <p><b>Neue Seite</b></p><div>//============================================================<br /> // en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL [[:en:User:MarkS/Extra edit buttons]]<br /> // de: FÜGE NEUE BUTTON IN DIE WERKZEUGLEISTE [[:de:Benutzer:Olliminatore/Extra-Editbuttons]]<br /> // Converted by [[User:Olliminatore]] 25.09.2006 <br /> // Angepasst an RL und mw.toolbar von [[User:✓]] April 2011<br /> //============================================================<br /> // de: Die Reihenfolge und Anzahl der Buttons ist über die (alphabetische) Variable customEditButtons wählbar.<br /> //<br /> <br /> (function(){<br /> <br /> var editform = document.getElementById(&quot;editform&quot;);<br /> var action = mw.config.get(&#039;wgAction&#039;);<br /> <br /> if (action != &quot;edit&quot; &amp;&amp; action != &quot;submit&quot; || ! editform)<br /> return;<br /> <br /> if (typeof usersignature == &#039;undefined&#039;)<br /> var usersignature = &quot;--\~\~\~\~&quot;;<br /> <br /> var BDict = {<br /> &#039;A&#039;:[&#039;e/e9/Button_headline2.png&#039;,&#039;Sekundäre Überschrift&#039;,&#039;\n=== &#039;,&#039; ===&#039;,&#039;Sekundäre Überschrift&#039;],<br /> &#039;A3&#039;:[&#039;/3/3a/Button_headline3.png&#039;,&#039;Untergeordnete Überschrift&#039;,&#039;\n==== &#039;,&#039; ====&#039;,&#039;Untergeordnete Überschrift&#039;],<br /> &#039;B&#039;:[&#039;1/13/Button_enter.png&#039;,&#039;Zeilenumbruch&#039;,&#039;&lt;br /&gt;&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;B1&#039;:[&#039;6/62/Button_desambig.png&#039;,&#039;Begriffsklärungseite&#039;,&#039;{{Begriffsklärung}}&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;B2&#039;:[&#039;5/5e/Button_disambig_small.png&#039;,&#039;Dieser Artikel erläutert…&#039;,&#039;{{Dieser Artikel|&#039;,&#039;}}&#039;,&#039;erläutert den Buchstaben X, zu anderen Bedeutungen siehe [[X (Begriffsklärung)]].&#039;],<br /> &#039;B3&#039;:[&#039;5/5e/Button_disambig_small.png&#039;,&#039;Begriffsklärungshinweis&#039;,&#039;{{Begriffsklärungshinweis}}&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;C&#039;:[&#039;5/5f/Button_center.png&#039;,&#039;Zentriert&#039;,&#039;&lt;div style=&quot;text-align: center;&quot;&gt;\n&#039;,&#039;\n&lt;\/div&gt;&#039;,&#039;Zentriert&#039;],<br /> &#039;CF&#039;:[&#039;3/37/Btn_toolbar_commentaire.png&#039;,&#039;Chemische Formel&#039;,&#039;:&lt;math&gt;\u005Cmathrm{&#039;,&#039;}&lt;/math&gt;&#039;,&#039;&#039;],<br /> &#039;CO&#039;:[&#039;6/6c/Button_commons.png&#039;,&#039;Commons&#039;,&#039;{{Commons|Category:&#039;,&#039;}}&#039;,&#039;Seitenname&#039;],<br /> &#039;D&#039;:[&#039;e/ea/Button_align_left.png&#039;,&#039;Left-Align&#039;,&#039;&lt;div style=&quot;text-align: left; direction: ltr; margin-left: 1em;&quot;&gt;\n&#039;,&#039;\n&lt;\/div&gt;&#039;,&#039;Left-aligned Text&#039;],<br /> &#039;DS&#039;:[&#039;4/4e/Button_romain.png&#039;,&#039;SORTIERUNG&#039;,&#039;{{SORTIERUNG:&#039;,&#039;}}&#039;,&#039;Sortierbegriff&#039;],<br /> &#039;DO&#039;:[&#039;e/e9/Button_done.png&#039;,&#039;Erledigt (kurz)&#039;,&#039;{{Erl.}}&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;ER&#039;:[&#039;9/9d/Button_fait.png&#039;,&#039;Erledigt (lang)&#039;,&#039;{{Erledigt|1=&#039; + usersignature,&#039;}}&#039;,&#039;&#039;],<br /> &#039;E&#039;:[&#039;0/04/Button_array.png&#039;,&#039;Tabelle&#039;,&#039;&#039;,&#039;&#039;,&#039;&#039;,&#039;mw-editbutton-tablegenerator&#039;],<br /> &#039;F&#039;:[&#039;8/8f/Button_poeme.png&#039;,&#039;Farbiger Text&#039;,&#039;&lt;span style=&quot;color: color&quot;&gt;&#039;,&#039;&lt;\/span&gt;&#039;,&#039;Farbig&#039;],<br /> &#039;FS&#039;:[&#039;1/1b/Button_miss_signature.png&#039;,&#039;Fehlende Signatur&#039;,&#039;\{\{subst\:Unsigned|&#039;,&#039;}}&#039;,&#039;BENUTZER&#039;],<br /> &#039;G&#039;:[&#039;9/9e/Btn_toolbar_gallery.png&#039;,&#039;Bildergalerie&#039;,&quot;\n&lt;gallery&gt;\nDatei:M63.jpg|[[M63]]\nDatei:Mona Lisa.jpg|[[Mona Lisa]]\nDatei:Truite arc-en-ciel.jpg|Eine [[Forelle ]]\n&lt;\/gallery&gt;&quot;,&quot;&quot;,&#039;&#039;],<br /> &#039;H&#039;:[&#039;7/74/Button_comment.png&#039;,&#039;Versteckter Kommentar&#039;,&quot;&lt;!--&quot;,&quot;--&gt;&quot;,&#039;Versteckt&#039;],<br /> &#039;I&#039;:[&#039;4/41/Button_hr_halfwidth.png&#039;,&#039;Gedankenstrich&#039;,&#039;–&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;I1&#039;:[&#039;6/6a/Button_sup_letter.png&#039;,&#039;Hochgestellter Text (superscript)&#039;,&#039;&lt;sup&gt;&#039;,&#039;&lt;\/sup&gt;&#039;,&#039;Hochgestellt&#039;],<br /> &#039;I2&#039;:[&#039;a/aa/Button_sub_letter.png&#039;,&#039;Tiefgestellter Text (subscript)&#039;,&#039;&lt;sub&gt;&#039;,&#039;&lt;\/sub&gt;&#039;,&#039;Tiefgestellt&#039;],<br /> &#039;J1&#039;:[&#039;5/58/Button_small.png&#039;,&#039;Kleingeschriebener Text (small)&#039;,&#039;&lt;small&gt;&#039;,&#039;&lt;\/small&gt;&#039;,&#039;Klein&#039;],<br /> &#039;J2&#039;:[&#039;5/56/Button_big.png&#039;,&#039;Größerer Text (big)&#039;,&#039;&lt;big&gt;&#039;,&#039;&lt;\/big&gt;&#039;,&#039;Groß&#039;],<br /> &#039;K&#039;:[&#039;b/b4/Button_category03.png&#039;,&#039;Kategorie&#039;,&quot;[[Kategorie:&quot;,&quot;]]&quot;,&#039;Name der Kategorie&#039;],<br /> &#039;KR&#039;:[&#039;b/b1/Button_dagger.png&#039;,&#039;Kreuz&#039;,&#039;†&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;L&#039;:[&#039;8/8e/Button_shifting.png&#039;,&#039;Setze Tab(s)&#039;,&#039;:&#039;,&#039;&#039;,&#039;:&#039;],<br /> &#039;M&#039;:[&#039;f/fd/Button_blockquote.png&#039;,&#039;Markiert ein Zitat mit Absatz&#039;,&#039;&lt;blockquote style=&quot;border: 1px solid blue; padding: 2em;&quot;&gt;\n&#039;,&#039;\n&lt;\/blockquote&gt;&#039;,&#039;Text&#039;],<br /> &#039;N&#039;:[&#039;4/4b/Button_nbsp.png&#039;,&#039;Geschütztes Leerzeichen (nonbreaking space)&#039;,&#039;&amp;nbsp;&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;NT&#039;:[&#039;b/bf/Button_thinsp.png&#039;,&#039;Schmales geschütztes Leerzeichen&#039;,&#039;&amp;thinsp;&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;O&#039;:[&#039;2/23/Button_code.png&#039;,&#039;Code einfügen&#039;,&#039;&lt;code&gt;&#039;,&#039;&lt;\/code&gt;&#039;,&#039;Code&#039;],<br /> &#039;P&#039;:[&#039;3/3c/Button_pre.png&#039;,&#039;Vorformatierter Text&#039;,&#039;&lt;pre&gt;&#039;,&#039;&lt;\/pre&gt;&#039;,&#039;Präformatierter Text&#039;],<br /> &#039;P1&#039;:[&#039;9/93/Button_sub_link.png&#039;,&#039;Link zu einem Seiten-Abschnitt&#039;,&#039;[[Seite#&#039;,&#039;]]&#039;,&#039;Abschnitt&#039;],<br /> &#039;PF&#039;:[&#039;f/ff/Button_arrow_right.png&#039;,&#039;Pfeil nach rechts&#039;,&#039;\u2192&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;PD&#039;:[&#039;e/ee/Button_vote_biblio.png&#039;,&#039;Personendaten&#039;,&#039;{{Personendaten\n|NAME=\n|ALTERNATIVNAMEN=&#039;,&#039;\n|KURZBESCHREIBUNG=\n|GEBURTSDATUM=\n|GEBURTSORT=\n|STERBEDATUM=\n|STERBEORT=\n}}&#039;,&#039;&#039;],<br /> &#039;PO&#039;:[&#039;c/c7/Button_polytonique.png&#039;,&#039;Unicode-Sonderzeichen der altgriechischen Schrift&#039;,&#039;{{Polytonisch|&#039;,&#039;}}&#039;,&#039;Text&#039;],<br /> &#039;Q&#039;:[&#039;d/d3/Button_definition_list.png&#039;,&#039;Definitionsliste&#039;,&#039;\n; &#039;,&#039; : &#039;,&#039;Text&#039;],<br /> &#039;Q1&#039;:[&#039;0/05/Button_Anf%C3%BChrung.png&#039;,&#039;Anführungszeichen&#039;,&quot;„&quot;,&quot;“&quot;,&#039;Text&#039;],<br /> &#039;Q2&#039;:[&#039;2/26/Button_latinas.png&#039;,&#039;Latinas&#039;,&quot;«&quot;,&quot;»&quot;,&#039;Text&#039;],<br /> &#039;Q3&#039;:[&#039;b/bc/Button_guillemet.png&#039;,&#039;Guillemets&#039;,&quot;»&quot;,&quot;«&quot;,&#039;Text&#039;],<br /> &#039;R&#039;:[&#039;7/79/Button_reflink.png&#039;,&#039;Markiere eine Referenz&#039;,&#039;&lt;ref&gt;&#039;,&#039;&lt;\/ref&gt;&#039;,&#039;Bezugsangabe&#039;],<br /> &#039;R1&#039;:[&#039;c/c4/Button_ref.png&#039;,&#039;Referenz mit Name&#039;,&#039;&lt;ref name=&quot;&quot;&gt;&#039;,&#039;&lt;\/ref&gt;&#039;,&#039;Bezugsangabe&#039;],<br /> &#039;R2&#039;:[&#039;f/fe/Button_refs.png&#039;,&#039;Wiederholungs-Referenz&#039;,&#039;&lt;ref name=&quot;&#039;,&#039;&quot;/&gt;&#039;,&#039;Referenzname&#039;],<br /> &#039;R3&#039;:[&#039;9/9a/Button_references.png&#039;,&#039;Referenz-Footer&#039;,&#039;\n== Einzelnachweise ==\n&lt;references /&gt;\n&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;RD&#039;:[&#039;7/70/Button_fusion.png&#039;,&#039;Redundanz&#039;,&#039;{{ers:Redundanz|&#039;,&#039;}}&#039;,&#039;Artikel1|Artikel2|Artikel3…&#039;], <br /> &#039;S&#039;:[&#039;c/c9/Button_strike.png&#039;,&#039;Durchgestrichener Text&#039;,&quot;&lt;s&gt;&quot;,&quot;&lt;\/s&gt;&quot;,&#039;Durchgestrichen&#039;],<br /> &#039;SA&#039;:[&#039;b/bb/Seealso.png&#039;,&#039;Siehe auch&#039;,&#039;\n== Siehe auch ==\n&#039;,&#039;&#039;,&#039;&#039;],<br /> &#039;SC&#039;:[&#039;0/02/Button_S_yellow.png&#039;,&#039;SourceCode hervorheben&#039;,&#039;&lt;source lang=&quot;javascript&quot;&gt;&#039;,&quot;&lt;\/source&gt;&quot;,&#039;Quelltext&#039;], <br /> &#039;SM&#039;:[&#039;7/74/Button_oeil.png&#039;,&#039;Smiley&#039;,&#039;&lt;tt style=&quot;background:#FE3&quot;&gt;&#039;,&#039;&lt;/tt&gt;&#039;,&#039;:D&#039;],<br /> &#039;ST&#039;:[&#039;7/72/Button_span_2.png&#039;,&#039;span-tag mit CSS-Angabe&#039;,&#039;&lt;span style=&quot;&quot;&gt;&#039;,&#039;&lt;\/span&gt;&#039;,&#039;Markierter Inhalt&#039;],<br /> &#039;T&#039;:[&#039;e/eb/Button_plantilla.png&#039;,&#039;Vorlage&#039;,&#039;{{&#039;,&#039;}}&#039;,&#039;Vorlagenname&#039;],<br /> &#039;TL&#039;:[&#039;e/eb/Button_templatelink.png&#039;,&#039;Vorlagenlink&#039;,&#039;{{[[Vorlage:&#039;,&#039;|]]}}&#039;,&#039;Vorlagenname&#039;],<br /> &#039;TT&#039;:[&#039;3/30/Tt_icon.png&#039;,&#039;Schreibmaschinenstil&#039;,&#039;&lt;tt&gt;&#039;,&#039;&lt;\/tt&gt;&#039;,&#039;Teletyper Text&#039;],<br /> &#039;U&#039;:[&#039;f/fd/Button_underline.png&#039;,&#039;Unterstreichen&#039;,&quot;&lt;u&gt;&quot;,&quot;&lt;\/u&gt;&quot;,&#039;Unterstrichener Text&#039;],<br /> &#039;UR&#039;:[&#039;e/ec/Button_aviso.png&#039;,&#039;Urheberrecht ungeklärt&#039;,&quot;{{Urheberrecht ungeklärt}}&quot;,&quot;&quot;,&#039;&#039;],<br /> &#039;URV&#039;:[&#039;9/9d/Button_halt.png&#039;,&#039;Urheberrechtsverletzung&#039;,&quot;{{URV}} [&quot;,&quot;] &quot; + usersignature,&#039;Url&#039;],<br /> &#039;V&#039;:[&#039;c/c8/Button_redirect.png&#039;,&#039;Weiterleitung (Redirect)&#039;,&quot;#WEITERLEITUNG [[&quot;,&quot;]]&quot;,&#039;Ziel einfügen&#039;, &#039;mw-editbutton-redirect&#039;],<br /> &#039;VP&#039;:[&#039;b/ba/Button_conserver.png&#039;,&#039;Vote *pro*&#039;,&quot;# {{pro}} &quot; + usersignature,&quot;&quot;,&#039;&#039;],<br /> &#039;VC&#039;:[&#039;f/fc/Button_supp.png&#039;,&#039;Vote *contra*&#039;,&quot;# {{contra}} &quot; + usersignature,&quot;&quot;,&#039;&#039;],<br /> &#039;VN&#039;:[&#039;4/4e/Button_neutre.png&#039;,&#039;Vote *neutral*&#039;,&quot;# {{neutral}} &quot; + usersignature,&quot;&quot;,&#039;&#039;],<br /> &#039;WB&#039;:[&#039;6/61/Button_wikibooks.png&#039;,&#039;Wikibooks&#039;,&quot;{{Wikibooks&quot;,&quot;}}&quot;,&#039;|Seitenname&#039;],<br /> &#039;WS&#039;:[&#039;e/eb/Button_wikisource.png&#039;,&#039;Wikisource&#039;,&quot;{{Wikisource&quot;,&quot;}}&quot;,&#039;|Seitenname&#039;],<br /> &#039;WT&#039;:[&#039;b/bf/WP-icon.png&#039;,&#039;Wiktionary&#039;,&quot;{{Wiktionary&quot;,&quot;}}&quot;,&#039;|Seitenname&#039;],<br /> &#039;WV&#039;:[&#039;b/b5/Button_wikiversity.png&#039;,&#039;Wikiversity&#039;,&quot;{{Wikiversity&quot;,&quot;}}&quot;,&#039;|Seitenname&#039;],<br /> &#039;W&#039;:[&#039;8/88/Btn_toolbar_enum.png&#039;,&#039;Nummerierung&#039;,&quot;\n# Element 1\n# Element 2\n# Element 3&quot;,&quot;&quot;,&#039;&#039;],<br /> &#039;X&#039;:[&#039;1/11/Btn_toolbar_liste.png&#039;,&#039;Liste&#039;,&quot;\n* Element A\n* Element B\n* Element C&quot;,&quot;&quot;,&#039;&#039;],<br /> &#039;Y1&#039;:[&#039;c/ce/Button_no_include.png&#039;,&#039;No Include&#039;,&quot;&lt;noinclude&gt;&quot;,&quot;&lt;\/noinclude&gt;&quot;,&#039;Text&#039;],<br /> &#039;Y2&#039;:[&#039;7/79/Button_include.png&#039;,&#039;Include only&#039;,&quot;&lt;includeonly&gt;&quot;,&quot;&lt;\/includeonly&gt;&quot;,&#039;Text&#039;],<br /> &#039;Z&#039;:[&#039;3/35/Button_substitute.png&#039;,&#039;Ersetzen&#039;,&quot;{{ers:&quot;,&quot;}}&quot;,&#039;Vorlage&#039;],<br /> &#039;ZI&#039;:[&#039;8/83/Button_biocitas.png&#039;,&#039;Zitat&#039;,&quot;{{Zitat|&quot;,&quot;}}&quot;,&#039;Text|Autor (optional)|Quelle (optional)&#039;],<br /> &#039;T1&#039;:[&#039;c/c6/Blending_blue_button_background.png&#039;,&#039;Spacer (no function)&#039;,&#039;&#039;,&#039;&#039;,&#039;&#039;]<br /> };<br /> for (var b in BDict)<br /> BDict[b][0] = &quot;/media/wikipedia/commons/&quot; + BDict[b][0]; // Add the begin of the URL to the buttons<br /> <br /> var DBDict = {<br /> &#039;1&#039;:[&quot;de/button_bold.png&quot;,&quot;Fetter Text&quot;,&quot;\&#039;\&#039;\&#039;&quot;,&quot;\&#039;\&#039;\&#039;&quot;,&quot;Fetter Text&quot;,&quot;mw-editbutton-bold&quot;],<br /> &#039;2&#039;:[&quot;de/button_italic.png&quot;,&quot;Kursiver Text&quot;,&quot;\&#039;\&#039;&quot;,&quot;\&#039;\&#039;&quot;,&quot;Kursiver Text&quot;,&quot;mw-editbutton-italic&quot;],<br /> &#039;3&#039;:[&quot;button_link.png&quot;,&quot;Interner Link&quot;,&quot;[[&quot;,&quot;]]&quot;,&quot;Link-Text&quot;,&quot;mw-editbutton-link&quot;],<br /> &#039;4&#039;:[&quot;button_extlink.png&quot;,&quot;Externer Link (http:// beachten)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;http://www.example.com Link-Text&quot;,&quot;mw-editbutton-extlink&quot;],<br /> &#039;5&#039;:[&quot;button_headline.png&quot;,&quot;überschrift&quot;,&quot;\n== &quot;,&quot; ==\n&quot;,&quot;überschrift&quot;,&quot;mw-editbutton-headline&quot;],<br /> &#039;6&#039;:[&quot;button_image.png&quot;,&quot;Dateilink&quot;,&quot;[[Datei:&quot;,&quot;]]&quot;,&quot;Beispiel.jpg&quot;,&quot;mw-editbutton-image&quot;],<br /> &#039;7&#039;:[&quot;button_media.png&quot;,&quot;Mediendatei-Link&quot;,&quot;[[Media:&quot;,&quot;]]&quot;,&quot;Beispiel.ogg&quot;,&quot;mw-editbutton-media&quot;],<br /> &#039;8&#039;:[&quot;button_math.png&quot;,&quot;Mathematische Formel (LaTeX)&quot;,&quot;\x3cmath\x3e&quot;,&quot;\x3c/math\x3e&quot;,&quot;Formel hier einfügen&quot;,&quot;mw-editbutton-math&quot;],<br /> &#039;9&#039;:[&quot;button_nowiki.png&quot;,&quot;Unformatierter Text&quot;,&quot;\x3cnowiki\x3e&quot;,&quot;\x3c/nowiki\x3e&quot;,&quot;Unformatierten Text hier einfügen&quot;,&quot;mw-editbutton-nowiki&quot;],<br /> &#039;10&#039;:[&quot;button_sig.png&quot;,&quot;Deine Signatur mit Zeitstempel&quot;,&quot;--~~~~&quot;,&quot;&quot;,&quot;&quot;,&quot;mw-editbutton-signature&quot;],<br /> &#039;11&#039;:[&quot;button_hr.png&quot;,&quot;Horizontale Linie (sparsam verwenden)&quot;,&quot;\n----\n&quot;,&quot;&quot;,&quot;&quot;,&quot;mw-editbutton-hr&quot;]<br /> };<br /> for (var b in DBDict)<br /> DBDict[b][0] = &quot;//bits.wikimedia.org/skins-1.5/common/images/&quot; + DBDict[b][0]; // Add the begin of the URL to the default buttons<br /> <br /> $.extend(BDict, DBDict);<br /> <br /> var t, normal;<br /> mw.loader.using(&quot;mediawiki.action.edit&quot;, function() {<br /> t = mw.toolbar;<br /> normal = t.buttons.splice(0); // Leeren<br /> if ($.isArray(mwCustomEditButtons))<br /> normal = normal.concat(mwCustomEditButtons.splice(0));<br /> var reload = t.onReady || t.init || function() { // just copied from /action.edit.js<br /> this.$toolbar = $(&quot;#toolbar&quot;);<br /> this.isReady = true;<br /> // Legacy<br /> // Merge buttons from mwCustomEditButtons<br /> var buttons = [].concat( this.buttons, window.mwCustomEditButtons );<br /> for (var i=0; i&lt;buttons.length; i++) {<br /> if ($.isArray(buttons[i])) {<br /> // Passes our button array as arguments<br /> this.insertButton.apply(this, buttons[i]);<br /> } else {<br /> // Legacy mwCustomEditButtons is an object<br /> var c = buttons[i];<br /> this.insertButton(c.imageFile, c.speedTip, c.tagOpen, c.tagClose, c.sampleText, c.imageId, c.selectText);<br /> }<br /> }<br /> };<br /> <br /> $(document).ready(function(){<br /> t.buttons = normalButtons(); // eventually remove some<br /> extendNormalArray(); // eventually change some<br /> addNewButtons(); // to t.buttons<br /> reload.call(t); // Ja keinen Aufwand betreiben<br /> extendButtons(); // with onclick-magic<br /> t.buttons = mwCustomEditButtons = []; // und wieder leeren<br /> });<br /> });<br /> <br /> function normalButtons() {<br /> // Returns the normal buttons for use<br /> if (t.buttons.length)<br /> normal = normal.concat(t.buttons);<br /> if (typeof rmEditButtons != &#039;object&#039; || ! $.isArray(rmEditButtons))<br /> return normal;<br /> if (typeof rmEditButtons[0] == &#039;string&#039; &amp;&amp; rmEditButtons[0].toLowerCase() == &quot;all&quot;) {<br /> if (t.isReady)<br /> t.$toolbar.empty();<br /> return [];<br /> }<br /> if (t.isReady) { // we&#039;re late<br /> rmEditButtons.sort().reverse();<br /> var tbc = t.$toolbar.children();<br /> for (var i=0; i&lt;rmEditButtons.length; i++)<br /> tbc.eq(rmEditButtons[i]).remove();<br /> return t.buttons; // if any were left<br /> }<br /> //Remove the buttons the user doesn&#039;t want <br /> var ret = [];<br /> for (var i=0, l=normal.length; i&lt;l; i++) {<br /> if ($.inArray(i, rmEditButtons) == -1) {<br /> ret.push(normal[i]);<br /> }<br /> }<br /> return ret;<br /> };<br /> <br /> function addNewButtons() {<br /> // Adds the custom buttons to mw.toolbar.buttons<br /> var order = [], b;<br /> if (typeof customEditButtons != &#039;string&#039;) {// can be modified<br /> order = &quot;A,A3,B,E,F,G,H,I1,I2,J1,K,M,Q,R,R1,R2,R3,S,T,U,V,W,X&quot;.split(&quot;,&quot;);<br /> } else if (customEditButtons.toLowerCase() == &quot;all&quot;) {<br /> for (b in BDict) {<br /> order.push(b);<br /> }<br /> } else {<br /> order = customEditButtons.split(&quot;,&quot;);<br /> }<br /> $.extend(BDict, normal); // Standardbuttons auswählbar<br /> if (typeof myButtons == &#039;object&#039;) {<br /> $.extend(BDict, myButtons);<br /> }<br /> for (var i=0, l=order.length; i&lt;l; i++) {<br /> t.buttons.push( BDict[order[i]] );<br /> }<br /> }<br /> <br /> function extendNormalArray() {<br /> // Changes some attributes in normal array<br /> var extend = {}; // which to extend<br /> if (typeof usersignature == &#039;string&#039; &amp;&amp; usersignature != &quot;--~~~~&quot;)<br /> extend[&quot;mw-editbutton-signature&quot;] = function(b) {<br /> b[0] = Isrc + &#039;d/d1/Button_mysignature.png&#039;; // imageFile<br /> b[2] = usersignature; // tagOpen<br /> };<br /> <br /> if ($.isEmptyObject(extend))<br /> return false;<br /> for (var i=0, l=normal.length; i&lt;l; i++) {<br /> var j = normal[i][5]; // imageId<br /> if (extend[j]) {<br /> extend[j](normal[i]);<br /> }<br /> }<br /> return true;<br /> }<br /> <br /> function extendButtons() {<br /> // Adds extended onclick-function to some buttons <br /> var extend = {};<br /> extend[BDict[&#039;V&#039;][5]] = function() {<br /> var a;<br /> if (a = window.prompt(&quot;Wohin soll der Redirect\?&quot;, &quot;&quot;)) {<br /> a = &#039;\#WEITERLEITUNG \[\[&#039; + a + &#039;\]\]&#039;;<br /> $(&quot;#wpTextbox1&quot;).val( a );<br /> $(&quot;#wpSummary&quot;).val( a ); // no more needed?<br /> $(&quot;#wpWatchthis&quot;).val( false );<br /> }<br /> };<br /> extend[BDict[&#039;E&#039;][5]] = popupTable;<br /> <br /> for (var i in extend) {<br /> t.$toolbar.children(&quot;#&quot;+i).click(extend[i]);<br /> }<br /> t.$toolbar.children( &#039;img[src=&quot;&#039; + BDict[&#039;T1&#039;][0] + &#039;&quot;]&#039; ).width( 6 ); // Spacer<br /> };<br /> <br /> <br /> mw.loader.using(&quot;mediawiki.action.edit&quot;, function() {<br /> //============================================================<br /> // Table generator <br /> //============================================================<br /> /** en: Generate an array using Mediawiki syntax<br /> * @author: originally from fr:user:dake<br /> * @version: 0.2 */<br /> mw.toolbar.generateTable = function(caption, exhead, nbCol, nbRow, exfield, align){<br /> var code = &quot;\n&quot;;<br /> code += &#039;{| class=&quot;wikitable&quot; &#039; + align + &#039;\n&#039;<br /> + caption + exhead;<br /> if (exfield) code += &#039;!\n&#039;;<br /> for (i=1;i&lt;nbCol+1;i++) code += &#039;! FELD &#039; + i + &#039;\n&#039;;<br /> var items = 0;<br /> for (var j=0;j&lt;nbRow;j++){<br /> if (exfield) { <br /> items++;<br /> code += &#039;|-\n! style=&quot;background: #FFDDDD;&quot;|ITEM &#039; + items + &#039;\n&#039;;<br /> } else code += &#039;|-\n&#039;;<br /> for (i=0;i&lt;nbCol;i++) code += &#039;| Element\n&#039;;<br /> }<br /> code += &#039;|}\n&#039;;<br /> mw.toolbar.insertTags(&#039;&#039;,&#039;&#039;, code);<br /> editform.elements[&#039;wpSummary&#039;].value+=&#039; table+&#039;;<br /> return false<br /> };<br /> });<br /> <br /> <br /> /** en: Open a popup with parameters to generate an array. <br /> * The number of rows/columns can be modified.<br /> * @author: originally fr:user:dake <br /> * @version: 0.2 */<br /> function popupTable(){<br /> var popup = window.open(&#039;about:blank&#039;,&#039;WPtable&#039;,&#039;height=400,width=400,scrollbars=yes&#039;);<br /> var javaCode = &#039;&lt;script type=&quot;text\/javascript&quot;&gt;function insertCode(){&#039;<br /> +&#039;var caption = (document.paramForm.inputCaption.checked)?&quot;\|\+ TABLE CAPTION \\n&quot;:&quot;&quot;; &#039;<br /> +&#039;var exhead = (document.paramForm.inputHead.checked)?\&#039;\|\- style=\&quot;background: #DDFFDD;\&quot;\\n\&#039;:&quot;&quot;; &#039;<br /> +&#039;var row = parseInt(document.paramForm.inputRow.value); &#039;<br /> +&#039;var col = parseInt(document.paramForm.inputCol.value); &#039;<br /> +&#039;var exfield = document.paramForm.inputItems.checked; &#039;<br /> +&#039;var align = (document.paramForm.inputAlign.checked)?\&#039;align=&quot;center&quot;\&#039;:&quot;&quot;; &#039;<br /> +&#039;window.opener.mw.toolbar.generateTable(caption,exhead,col,row,exfield,align); &#039;<br /> +&#039;window.close()}&lt;\/script&gt;&#039;;<br /> <br /> popup.document.write(&#039;&lt;html&gt;&lt;head&gt;&lt;title&gt;Make table&lt;\/title&gt;&#039;<br /> // +&#039;&lt;script type=&quot;text\/javascript&quot; src=&quot;\/skins-1.5\/common\/wikibits.js&quot;&gt;&lt;\/script&gt;&#039;<br /> //+&#039;&lt;style type=&quot;text\/css&quot; media=&quot;screen,projection&quot;&gt;/*&lt;![CDATA[*/ @import &quot;\/skins-1.5\/monobook\/main.css?5&quot;; /*]]&gt;*/&lt;\/style&gt;&#039;<br /> + javaCode +&#039;&lt;\/head&gt;&lt;body&gt;&#039;<br /> +&#039;&lt;p&gt;Enter the table parameters below: &lt;\/p&gt;&#039;<br /> +&#039;&lt;form name=&quot;paramForm&quot;&gt;&#039;<br /> +&#039;Table caption: &lt;input type=&quot;checkbox&quot; name=&quot;inputCaption&quot;&gt;&lt;p\/&gt;&#039;<br /> +&#039;Table alignment: center&lt;input type=&quot;checkbox&quot; name=&quot;inputAlign&quot;&gt;&lt;p\/&gt;&#039;<br /> +&#039;Table headline: colored&lt;input type=&quot;checkbox&quot; name=&quot;inputHead&quot;&gt;&lt;p\/&gt;&#039;<br /> +&#039;Number of rows: &lt;input type=&quot;text&quot; name=&quot;inputRow&quot; value=&quot;3&quot; size=&quot;2&quot;&gt;&lt;p\/&gt;&#039;<br /> +&#039;Number of columns: &lt;input type=&quot;text&quot; name=&quot;inputCol&quot; value=&quot;3&quot; size=&quot;2&quot;&gt;&lt;p\/&gt;&#039;<br /> //+&#039;Alternating grey lines: &lt;input type=&quot;checkbox&quot; name=&quot;inputLine&quot; checked=&quot;1&quot; &gt;&lt;p\/&gt;&#039;<br /> +&#039;Item column: &lt;input type=&quot;checkbox&quot; name=&quot;inputItems&quot; &gt;&lt;p\/&gt;&#039;<br /> +&#039;&lt;\/form&quot;&gt;&#039;<br /> +&#039;&lt;i&gt;The default table allows for fields and values only.&lt;\/i&gt;&lt;p\/&gt;&#039;<br /> +&#039;Check &quot;Item column&quot; to allow for the table to have fields, items, and values.&lt;\/i&gt;&lt;p\/&gt;&#039;<br /> +&#039;&lt;p&gt;&lt;a href=&quot;javascript:insertCode()&quot;&gt; Insert table into window&lt;\/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; |&#039;<br /> +&#039; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;javascript:self.close()&quot;&gt;Cancel&lt;\/a&gt;&lt;\/p&gt;&#039;<br /> +&#039;&lt;\/body&gt;&lt;\/html&gt;&#039;);<br /> popup.document.close();<br /> return false<br /> };<br /> <br /> })();</div> P.Copp