<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.5/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.5/ http://www.mediawiki.org/xml/export-0.5.xsd" version="0.5" xml:lang="de">
  <siteinfo>
    <sitename>Wikibooks</sitename>
    <base>http://de.wikibooks.org/wiki/Hauptseite</base>
    <generator>MediaWiki 1.18wmf1</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">Medium</namespace>
      <namespace key="-1" case="first-letter">Spezial</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Diskussion</namespace>
      <namespace key="2" case="first-letter">Benutzer</namespace>
      <namespace key="3" case="first-letter">Benutzer Diskussion</namespace>
      <namespace key="4" case="first-letter">Wikibooks</namespace>
      <namespace key="5" case="first-letter">Wikibooks Diskussion</namespace>
      <namespace key="6" case="first-letter">Datei</namespace>
      <namespace key="7" case="first-letter">Datei Diskussion</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki Diskussion</namespace>
      <namespace key="10" case="first-letter">Vorlage</namespace>
      <namespace key="11" case="first-letter">Vorlage Diskussion</namespace>
      <namespace key="12" case="first-letter">Hilfe</namespace>
      <namespace key="13" case="first-letter">Hilfe Diskussion</namespace>
      <namespace key="14" case="first-letter">Kategorie</namespace>
      <namespace key="15" case="first-letter">Kategorie Diskussion</namespace>
      <namespace key="102" case="first-letter">Regal</namespace>
      <namespace key="103" case="first-letter">Regal Diskussion</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>MediaWiki:Gadgets-definition</title>
    <id>51088</id>
    <revision>
      <id>592791</id>
      <timestamp>2011-07-19T00:15:54Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <comment>+Zugriffsstatistiken</comment>
      <text xml:space="preserve" bytes="428">== Darstellung ==
*setupTitle|setupTitle.js
*editSectionLink|editSectionLink.js
*Pfeil-hoch|Pfeil-hoch.js
*showAnchors|showAnchors.js

== werkzeuge ==
*extra-editbuttons|extra-editbuttons.js
*wikEd|wikEd.js
*erstelleSammlung|Sammlungsparser.js
*Zugriffsstatistiken|addStatisticsLink.js

== tabs ==
*bottomtabs|bottomtabs.js
*sixtabs|sixtabs.js

&lt;!-- Für Testzwecke
== test-gadgets ==
*viewHistoryPrefix|viewHistoryPrefix.js
--&gt;</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadgets-prefstext</title>
    <id>52860</id>
    <revision>
      <id>354536</id>
      <timestamp>2008-01-30T08:36:29Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="650">Liste von speziellen Gadgets, die jeder Benutzer selbst aktivieren kann. Die Gadgets basieren zumeist auf JavaScript. Daher muss JavaScript im Browser aktiviert sein. Die Gadgets funktionieren allerdings nicht auf dieser Seite mit den persönlichen Einstellungen.

Außerdem ist zu beachten, dass diese Gadgets im Allgemeinen nicht Teil von MediaWiki sind, sondern meist von Benutzern des lokalen Wikis entwickelt und gewartet werden. [[Wikibooks:Administratoren|Administratoren]] können Gadgets einstellen, bearbeiten und löschen.

Für Hinweise, Neuvorschläge und Fehlermeldungen bitte ''[[Wikibooks:Verbesserungsvorschläge/ Gadgets]]'' nutzen.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-setupTitle</title>
    <id>54331</id>
    <revision>
      <id>365372</id>
      <timestamp>2008-03-16T16:59:40Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="130">setupTitle ordnet die Titelüberschrift neu: An Schrägstrichen wird der Titel umgebrochen und die Schrägstriche werden entfernt.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-setupTitle.js</title>
    <id>54332</id>
    <revision>
      <id>365404</id>
      <timestamp>2008-03-16T17:50:57Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <comment>doch nicht ...</comment>
      <text xml:space="preserve" bytes="2278">function getElementsByClass(cls, tag, doc) {
    allElements = doc.getElementsByTagName(tag);
    var i = 0;
    var arr = new Array();
 
    for(i = 0; i&lt;allElements.length; i++) {
    if(allElements[i].className == cls) arr.push(allElements[i]);
    }
 
    return arr;
}
 
/**
* ändert den Buchtitel: Buch/Kapitel -&gt; [[Buch]]&lt;br /&gt;Kapitel
* @source: [[:fr:MediaWiki:Common.js]]
* @author: [[:fr:Utilisateur:DavidL]], [[:fr:Utilisateur:Tavernier]] (rewrite)
*/
 
function setupTitle() {
    if (wgAction != 'view') 
        return false;
    if (wgNamespaceNumber)
        return false; //only on main space (0)
    if (document.getElementById('contentSub2'))
        return false; //while the page is deleted, avoiding to catch the &quot;N revisions deleted&quot;
 
    var title = getElementsByClass(&quot;firstHeading&quot;, '*', document)[0];
 
    var hasInnerText = (title.innerText != undefined) ? true : false; //IE hack stuff
    if (!hasInnerText) {
        var saveTitle = title.textContent;
    } else {
        var saveTitle = title.innerText; //IE
    }
 
    var subpages = getElementsByClass(&quot;subpages&quot;, '*', document);
    if (subpages == &quot;&quot;) { // return if it's not a subpage
        return false;
    }
    var links = subpages[0].getElementsByTagName(&quot;a&quot;);
 
    title.innerHTML = &quot;&quot;;
    var endTitle = &quot;&quot;;
    for (var subpage=0; subpage&lt;links.length; subpage++) {
        if (!hasInnerText) {
            var textContent = links[subpage].textContent;
        } else {
            var textContent = links[subpage].innerText; // hack...
        }
        title.innerHTML += &quot;&lt;a href=\&quot;&quot; 
                                  + links[subpage].pathname 
                                  + &quot;\&quot; title=\&quot;&quot; 
                                  + links[subpage].title 
                                  + &quot;\&quot;\&gt;&quot;
                                  + textContent
                                  + &quot;&lt;/a&gt;&quot;
                                  + &quot;\n&lt;br /&gt;&quot;
        endTitle += textContent + &quot;/&quot;;
    }
    endTitle = saveTitle.replace(endTitle, &quot;&quot;);
    title.innerHTML += endTitle; //a wgSubPageName should be more convenient...
    // subpages[0].textContent = saveTitle; // for copypaste the full title (bonus)
    // subpages[0].innerText = saveTitle; //hack
}

addOnloadHook(setupTitle);</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-editSectionLink</title>
    <id>56071</id>
    <revision>
      <id>378095</id>
      <timestamp>2008-05-17T09:31:30Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="115">Dieses Gadget stellt den &lt;code&gt;[Bearbeiten]&lt;/code&gt;-Link kleiner und in der Nähe der zugehörigen Überschrift dar.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-editSectionLink.js</title>
    <id>56070</id>
    <revision>
      <id>378094</id>
      <timestamp>2008-05-17T09:30:16Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <comment>Urheber: [[w:Benutzer:Dbenzhuser]]</comment>
      <text xml:space="preserve" bytes="1259">//================================================================================
//*** moveEditsection: Moving of the editsection links
 
/*
 * moveEditsection
 * Dieses Script verschiebt die [Bearbeiten]-Buttons vom rechten Fensterrand
 * direkt rechts neben die jeweiligen Überschriften.
 * This script moves the [edit]-buttons from the right border of the window
 * directly right next to the corresponding headings.
 *
 * Zum Abschalten die folgende Zeile (ohne führendes Sternchen) in die eigene
 * monobook.js (zu finden unter [[Special:Mypage/monobook.js|Benutzer:Name/monobook.js]]) kopieren:
 * var oldEditsectionLinks = true;
 *
 * dbenzhuser (de:Benutzer:Dbenzhuser)
 */
addOnloadHook(function() {
    if (typeof oldEditsectionLinks != 'undefined' &amp;&amp; oldEditsectionLinks)   return;
    var spans = document.getElementsByTagName(&quot;span&quot;);
    for (var i=0; i&lt;spans.length; i++) {
        var span = spans[i];
        if (span.className != &quot;editsection&quot;)    continue;
        span.style.fontSize = &quot;x-small&quot;;
        span.style.fontWeight = &quot;normal&quot;;
        span.style.cssFloat = &quot;none&quot;;
        span.style.marginLeft = &quot;0px&quot;;
        span.parentNode.appendChild(document.createTextNode(&quot; &quot;));
        span.parentNode.appendChild(span);
    }
});</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-Pfeil-hoch</title>
    <id>67133</id>
    <revision>
      <id>471510</id>
      <timestamp>2009-07-21T17:28:10Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <comment>Beschreibung des Gatgets</comment>
      <text xml:space="preserve" bytes="87">Pfeil-hoch fügt neben jeder Überschrift einen ↑ ein, der zum Seitenanfang verlinkt.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-Pfeil-hoch.js</title>
    <id>67132</id>
    <revision>
      <id>471507</id>
      <timestamp>2009-07-21T17:21:46Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <minor/>
      <comment>1 Version von [[:w:MediaWiki:Gadget-Pfeil-hoch.js]]: Aktivieren des Gatgets in Wikibooks</comment>
      <text xml:space="preserve" bytes="656">/* von: http://fr.wikipedia.org/wiki/MediaWiki:Gadget-FlecheHaut.js */

function PageHomeArrows()
{
        for (var level = 2; level &lt;= 6; ++level) {
                var h = document.getElementsByTagName(&quot;h&quot; + level);
                for (var i = 0; i &lt; h.length; ++i) {
                        var arrow = document.createElement(&quot;a&quot;);
                        arrow.className = &quot;noprint&quot;;
                        arrow.appendChild(document.createTextNode(&quot; ↑&quot;));
                        arrow.href = &quot;javascript:window.scrollTo(0,0); void 0;&quot;;
                        h[i].appendChild(arrow);
                }
        }
}
addOnloadHook(PageHomeArrows);</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-showAnchors</title>
    <id>78737</id>
    <revision>
      <id>571957</id>
      <timestamp>2011-03-07T01:26:10Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="82">showAnchors macht Sprungmarken die mit [[Vorlage:Anker]] erstellt wurden sichtbar.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-showAnchors.js</title>
    <id>78738</id>
    <revision>
      <id>572400</id>
      <timestamp>2011-03-10T15:12:07Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <comment>Geeigneter umgang mit Leerzeichen</comment>
      <text xml:space="preserve" bytes="973">// Von Benutzer:Chuck
function showAnchors() {
	var spans = document.getElementsByTagName('span');
	var span;
	var anchorName;

	for(var i = 0; i &lt; spans.length; ++i){
		span = spans[i];
		if(span.hasAttribute('id') &amp;&amp; span.getAttribute('id').match('^Anker:.*')) {
			anchorName = span.getAttribute('id');
			anchorName = anchorName.substring('Anker:'.length, anchorName.length);

			anchorName = anchorName.replace(/[.]([0-9A-Fa-f]{2})/g, &quot;%$1&quot;);
			var begin = anchorName.match(/^_*/);
			var end = anchorName.match(/_*$/);
			anchorName = anchorName.substring(begin[0].length, anchorName.length-end[0].length);
			anchorName = anchorName.replace(/([^_])_([^_])/g, &quot;$1 $2&quot;);
			anchorName = decodeURIComponent(anchorName);

			span.appendChild(document.createTextNode('⚓ ' + begin + anchorName + end));
			span.setAttribute('class', 'noprint JSshowAnchors');
			span.setAttribute('style', 'color:gray; font-size:small; vertical-align:super;');
		}
	}
}

$(showAnchors);</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-extra-editbuttons</title>
    <id>52484</id>
    <revision>
      <id>351956</id>
      <timestamp>2008-01-22T12:35:08Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="225">Das Extra-Editbuttons-Helferlein fügt einige Extra-Editbuttons zur oberen Bearbeitungswerkzeugleiste (über dem Bearbeitungsfenster) hinzu, um einen einfachen Zugriff auf weitere Formatierungsoptionen der Wikipedia zu haben.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-extra-editbuttons.js</title>
    <id>52485</id>
    <revision>
      <id>621672</id>
      <timestamp>2012-01-20T23:09:13Z</timestamp>
      <contributor>
        <username>Hoo man</username>
        <id>26819</id>
      </contributor>
      <minor/>
      <comment>Bot: Security fix: [[WMFblog:2011/10/03/native-https-support-enabled-for-all-wikimedia-foundation-wikis/|protocol-relative URLs]] per https://meta.wikimedia.org/?oldid=3197161 ([[m:Stewards' noticeboard|questions?]]).</comment>
      <text xml:space="preserve" bytes="13359">// &lt;source lang=&quot;javascript&quot;&gt;
//============================================================
// en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL [[:en:User:MarkS/Extra edit buttons]]
// de: FÜGE NEUE BUTTON IN DIE WERKZEUGLEISTE [[:de:Benutzer:Olliminatore/Extra-Editbuttons]]
//   Converted by [[User:Olliminatore]] 25.09.2006 
//============================================================
// de: Die Reihenfolge und Anzahl der Buttons ist über die (alphabetische) Variable customEditButtons wählbar.
//

var customEditButtons='all';
var XEBOrder=[];
var attributes = [&quot;imageFile&quot;,&quot;speedTip&quot;,&quot;tagOpen&quot;,&quot;tagClose&quot;,&quot;sampleText&quot;];
// isMSIE55

//fills the variable mwCustomEditButtons (s. function in /wikibits.js), with buttons for the toolbar  
function addCustomButton(){
var a = {};
for (d in attributes) a[attributes[d]] = arguments[d];
mwCustomEditButtons.push(a);
};

if (typeof usersignature == 'undefined') var usersignature = '-- \~\~\~\~';

var Isrc='//upload.wikimedia.org/wikipedia/commons/';
var BDict={
'A':['e/e9/Button_headline2.png','Sekundäre Überschrift','\n=== ',' ===','Sekundäre Überschrift'],
'A3':['/3/3a/Button_headline3.png','Untergeordnete Überschrift','\n==== ',' ====','Untergeordnete Überschrift'],
'B':['1/13/Button_enter.png','Zeilenumbruch','&lt;br /&gt;','',''],
'C':['5/5f/Button_center.png','Zentriert','&lt;div style=&quot;text-align: center;&quot;&gt;\n','\n&lt;\/div&gt;','Zentriert'],
'CF':['3/37/Btn_toolbar_commentaire.png','Chemische Formel',':&lt;math&gt;\u005Cmathrm{','}&lt;/math&gt;',''],
'CO':['6/6c/Button_commons.png','Commons','{{Commons|Category:','}}','Seitenname\[|Beschreibung\]'],
'D':['e/ea/Button_align_left.png','Left-Align','&lt;div style=&quot;text-align: left; direction: ltr; margin-left: 1em;&quot;&gt;\n','\n&lt;\/div&gt;','Left-aligned Text'],
 'DO':['e/e9/Button_done.png','Ja','{{Ja}}','',''],
'NO':['a/a5/Button_not_done.png','Nein','{{Nein}}','',''],
'E':['0/04/Button_array.png','Tabelle','\n{| class=&quot;prettytable&quot; \n|- \n| 1 || 2\n|- \n| 3 || 4','\n|}\n',''],
'F':['8/8f/Button_poeme.png','Farbiger Text','&lt;span style=&quot;color: color&quot;&gt;','&lt;\/span&gt;','Farbig'],
'G':['9/9e/Btn_toolbar_gallery.png','Bildergalerie',&quot;\n&lt;gallery&gt;\nBild:M63.jpg|[[M63]]\nBild:Mona Lisa.jpg|[[Mona Lisa]]\nBild:Truite arc-en-ciel.jpg|Eine [[Forelle ]]\n&lt;\/gallery&gt;&quot;,&quot;&quot;,''],
'H':['7/74/Button_comment.png','Versteckter Kommentar',&quot;&lt;!--&quot;,&quot;--&gt;&quot;,'Versteckt'],
'I':['4/41/Button_hr_halfwidth.png','Gedankenstrich','–','',''],
'I1':['6/6a/Button_sup_letter.png','Hochgestellter Text (superscript)','&lt;sup&gt;','&lt;\/sup&gt;','Hochgestellt'],
'I2':['a/aa/Button_sub_letter.png','Tiefgestellter Text (subscript)','&lt;sub&gt;','&lt;\/sub&gt;','Tiefgestellt'],
'J1':['5/58/Button_small.png','Kleingeschriebener Text (small)','&lt;small&gt;','&lt;\/small&gt;','Klein'],
'J2':['5/56/Button_big.png','Größerer Text (big)','&lt;big&gt;','&lt;\/big&gt;','Groß'],
'K':['b/b4/Button_category03.png','Kategorie',&quot;[[Kategorie:&quot;,&quot;]]&quot;,'Name der Kategorie'],
'L':['8/8e/Button_shifting.png','Setze Tab(s)',':','',':'],
'M':['f/fd/Button_blockquote.png','Markiert ein Zitat mit Absatz','&lt;blockquote style=&quot;border: 1px solid blue; padding: 2em;&quot;&gt;\n','\n&lt;\/blockquote&gt;','Text'],
'N':['4/4b/Button_nbsp.png','Geschütztes Leerzeichen (nonbreaking space)','&amp;nbsp;','',''],
'NT':['b/bf/Button_thinsp.png','Schmales geschütztes Leerzeichen','&amp;thinsp;','',''],
'O':['2/23/Button_code.png','Code einfügen','&lt;code&gt;','&lt;\/code&gt;','Code'],
'P':['3/3c/Button_pre.png','Vorformatierter Text','&lt;pre&gt;','&lt;\/pre&gt;','Präformatierter Text'],
'P1':['9/93/Button_sub_link.png','Link zu einem Seiten-Abschnitt','[[Seite#',']]','Abschnitt'],
'PF':['f/ff/Button_arrow_right.png','Pfeil nach rechts','\u2192','',''],
'PO':['c/c7/Button_polytonique.png','Unicode-Sonderzeichen der altgriechischen Schrift','{{Polytonisch|','}}','Text'],
'Q':['d/d3/Button_definition_list.png','Definitionsliste','\n; ',' : ','Text'],
'Q1':['0/05/Button_Anf%C3%BChrung.png','Anführungszeichen',&quot;„&quot;,&quot;“&quot;,'Text'],
'Q2':['2/26/Button_latinas.png','Latinas',&quot;«&quot;,&quot;»&quot;,'Text'],
'Q3':['b/bc/Button_guillemet.png','Guillemets',&quot;»&quot;,&quot;«&quot;,'Text'],
'R':['7/79/Button_reflink.png','Markiere eine Referenz','&lt;ref&gt;','&lt;\/ref&gt;','Bezugsangabe'],
'R1':['c/c4/Button_ref.png','Referenz mit Name','&lt;ref name=&quot;&quot;&gt;','&lt;\/ref&gt;','Bezugsangabe'],
'R2':['f/fe/Button_refs.png','Wiederholungs-Referenz','&lt;ref name=&quot;','&quot;/&gt;','Referenzname'],
'R3':['9/9a/Button_references.png','Referenz-Footer','\n== Einzelnachweise ==\n&lt;references/&gt;\n','',''],
'RD':['7/70/Button_fusion.png','Doppeleintrag','{{Doppeleintrag|',usersignature + '}}','Artikel|'], 
'S':['c/c9/Button_strike.png','Durchgestrichener Text',&quot;&lt;s&gt;&quot;,&quot;&lt;\/s&gt;&quot;,'Durchgestrichen'],
'SA':['b/bb/Seealso.png','Siehe auch','\n== Siehe auch ==\n','',''],
'SC':['0/02/Button_S_yellow.png','SourceCode hervorheben','&lt;source lang=&quot;javascript&quot;&gt;',&quot;&lt;\/source&gt;&quot;,'Quelltext'], 
'SM':['7/74/Button_oeil.png','Smiley','&lt;tt style=&quot;background:#FE3&quot;&gt;','&lt;/tt&gt;',':D'],
'ST':['7/72/Button_span_2.png','span-tag mit CSS-Angabe','&lt;span style=&quot;&quot;&gt;','&lt;\/span&gt;','Markierter Inhalt'],
'T':['e/eb/Button_plantilla.png','Vorlage','{{','}}','Vorlagenname'],
'TL':['e/eb/Button_templatelink.png','Vorlagenlink','{{[[Vorlage:','|]]}}','Vorlagenname'],
'TT':['3/30/Tt_icon.png','Schreibmaschinenstil','&lt;tt&gt;','&lt;\/tt&gt;','Teletyper Text'],
'U':['f/fd/Button_underline.png','Unterstreichen',&quot;&lt;u&gt;&quot;,&quot;&lt;\/u&gt;&quot;,'Unterstrichener Text'],
'URV':['9/9d/Button_halt.png','Urheberrechtsverletzung',&quot;{{URV}} [&quot;,&quot;] &quot; + usersignature,'Url'],
'V':['c/c8/Button_redirect.png','Weiterleitung (Redirect)',&quot;#WEITERLEITUNG [[&quot;,&quot;]]&quot;,'Ziel einfügen'],
'VP':['b/ba/Button_conserver.png','Vote *pro*',&quot;# {{pro}} &quot; + usersignature,&quot;&quot;,''],
'VC':['f/fc/Button_supp.png','Vote *contra*',&quot;# {{contra}} &quot; + usersignature,&quot;&quot;,''],
'VN':['4/4e/Button_neutre.png','Vote *neutral*',&quot;# {{neutral}} &quot; + usersignature,&quot;&quot;,''],
'WP':['c/cb/Button_wikipedia.png','Wikipedia',&quot;{{Wikipedia&quot;,&quot;}}&quot;,'|Seitenname'],
'WQ':['c/c1/Button_wikiquote.png','Wikiquote',&quot;{{Wikiquote&quot;,&quot;}}&quot;,'|Seitenname'],
'WS':['e/eb/Button_wikisource.png','Wikisource',&quot;{{Wikisource&quot;,&quot;}}&quot;,'|Seitenname'],
'WT':['9/9a/Button_wiktionary.png','Wiktionary',&quot;{{Wiktionary&quot;,&quot;}}&quot;,'|Seitenname'],
'WV':['b/b5/Button_wikiversity.png','Wikiversity',&quot;{{Wikiversity&quot;,&quot;}}&quot;,'|Seitenname'],
'W':['8/88/Btn_toolbar_enum.png','Nummerierung',&quot;\n# Element 1\n# Element 2\n# Element 3&quot;,&quot;&quot;,''],
'X':['1/11/Btn_toolbar_liste.png','Liste',&quot;\n* Element A\n* Element B\n* Element C&quot;,&quot;&quot;,''],
'Y1':['c/ce/Button_no_include.png','No Include',&quot;&lt;noinclude&gt;&quot;,&quot;&lt;\/noinclude&gt;&quot;,'Text'],
'Y2':['7/79/Button_include.png','Include only',&quot;&lt;includeonly&gt;&quot;,&quot;&lt;\/includeonly&gt;&quot;,'Text'],
'Z':['3/35/Button_substitute.png','Substitute',&quot;{{subst:&quot;,&quot;}}&quot;,'Vorlage'],
'ZI':['8/83/Button_biocitas.png','Zitat',&quot;{{Zitat|&quot;,&quot;}}&quot;,'Zitat=|Autor=|Quelle='],
'T1':['c/c6/Blending_blue_button_background.png','Spacer (no function)','','','']
};

if (typeof customEditButtons!='string') // can be modified
	XEBOrder=&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;);
else if (customEditButtons.toLowerCase()=='all') 
	for (b in BDict) XEBOrder.push(b);
else XEBOrder=customEditButtons.split(&quot;,&quot;);


function initButtons(){
  var bc,d;
	for (b in BDict) BDict[b][0] = Isrc+BDict[b][0]; // // Add the start of the URL (Isrc) to the XEB buttons
	// If the user has defined any buttons then add them into the available button lists 
	if (typeof myButtons=='object')
	  for (b in myButtons) BDict[b] = myButtons[b];	// custom user buttons
  // Add the media wiki standard buttons into the available buttons 
	for (b in mwEditButtons) { // add standard buttons for full XEB order changing
		BDict[b]=[];
	//	for (d in mwEditButtons[b]) 
		for (d in attributes) BDict[b].push(mwEditButtons[b][attributes[d]]);
	}
	
	// Build the new buttons 
	for (i=0;i&lt;XEBOrder.length;i++) {
		bc = BDict[XEBOrder[i]];
		//try { // catch not existing button names
		addCustomButton(bc[0],bc[1],bc[2],bc[3],bc[4]);
		//}
		// catch(e) {continue}
	}
	// Remove the default buttons (if requested by the user)
	eraseButtons();
};

//============================================================
// Table generator 
//============================================================
/** en: Generate an array using Mediawiki syntax
* @author: originally from fr:user:dake
* @version: 0.2 */
function generateTable(caption, exhead, nbCol, nbRow, exfield, align){
	var code = &quot;\n&quot;;
	code += '{| class=&quot;wikitable&quot; ' + align + '\n'
		+ caption + exhead;
	if (exfield) code += '!\n';
	for (i=1;i&lt;nbCol+1;i++) code += '! FELD ' + i + '\n';
	var items = 0;
	for (var j=0;j&lt;nbRow;j++){
		if (exfield) { 
			items++;
			code += '|-\n! style=&quot;background: #FFDDDD;&quot;|ITEM ' + items + '\n';
		}	else code += '|-\n';
		for (i=0;i&lt;nbCol;i++) code += '| Element\n';
	}
	code += '|}\n';
	insertTags('','', code);
	editform.elements['wpSummary'].value+=' table+';
	return false
};


/** en: Open a popup with parameters to generate an array. 
* The number of rows/columns can be modified.
* @author: originally fr:user:dake 
* @version: 0.2 */
function popupTable(){
  var popup = window.open('about:blank','WPtable','height=400,width=400,scrollbars=yes');
  var javaCode = '&lt;script type=&quot;text\/javascript&quot;&gt;function insertCode(){'
  +'var caption = (document.paramForm.inputCaption.checked)?&quot;\|\+ TABLE CAPTION \\n&quot;:&quot;&quot;; '
	+'var exhead = (document.paramForm.inputHead.checked)?\'\|\- style=\&quot;background: #DDFFDD;\&quot;\\n\':&quot;&quot;; '
  +'var row = parseInt(document.paramForm.inputRow.value); '
  +'var col = parseInt(document.paramForm.inputCol.value); '
  +'var exfield = document.paramForm.inputItems.checked; '
  +'var align = (document.paramForm.inputAlign.checked)?\'align=&quot;center&quot;\':&quot;&quot;; '
  +'window.opener.generateTable(caption,exhead,col,row,exfield,align); '
  +'window.close()}&lt;\/script&gt;';
  
  popup.document.write('&lt;html&gt;&lt;head&gt;&lt;title&gt;Make table&lt;\/title&gt;'
// +'&lt;script type=&quot;text\/javascript&quot; src=&quot;\/skins-1.5\/common\/wikibits.js&quot;&gt;&lt;\/script&gt;'
//+'&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;'
  + javaCode +'&lt;\/head&gt;&lt;body&gt;'
  +'&lt;p&gt;Gib unten die Tabellenparameter ein: &lt;\/p&gt;'
  +'&lt;form name=&quot;paramForm&quot;&gt;'
	+'Tabellenüberschrift: &lt;input type=&quot;checkbox&quot; name=&quot;inputCaption&quot;&gt;&lt;p\/&gt;'
  +'Tabellenausrichtung: zentriert&lt;input type=&quot;checkbox&quot; name=&quot;inputAlign&quot;&gt;&lt;p\/&gt;'
	+'Tabellenkopf: farbig&lt;input type=&quot;checkbox&quot; name=&quot;inputHead&quot;&gt;&lt;p\/&gt;'
  +'Anzahl Zeilen: &lt;input type=&quot;text&quot; name=&quot;inputRow&quot; value=&quot;3&quot; size=&quot;2&quot;&gt;&lt;p\/&gt;'
  +'Anzahl Spalten: &lt;input type=&quot;text&quot; name=&quot;inputCol&quot; value=&quot;3&quot; size=&quot;2&quot;&gt;&lt;p\/&gt;'
  //+'Alternating grey lines: &lt;input type=&quot;checkbox&quot; name=&quot;inputLine&quot; checked=&quot;1&quot; &gt;&lt;p\/&gt;'
  +'Item column: &lt;input type=&quot;checkbox&quot; name=&quot;inputItems&quot; &gt;&lt;p\/&gt;'
  +'&lt;\/form&quot;&gt;'
  +'&lt;i&gt;The default table allows for fields and values only.&lt;\/i&gt;&lt;p\/&gt;'
  +'Check &quot;Item column&quot; to allow for the table to have fields, items, and values.&lt;\/i&gt;&lt;p\/&gt;'
  +'&lt;p&gt;&lt;a href=&quot;javascript:insertCode()&quot;&gt; Insert table into window&lt;\/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; |'
  +' &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;javascript:self.close()&quot;&gt;Cancel&lt;\/a&gt;&lt;\/p&gt;'
  +'&lt;\/body&gt;&lt;\/html&gt;');
  popup.document.close();
  return false
};


/** en: Removes arbitrary standard buttons from the toolbar
* @author: [[:de:User:Olliminatore]]
* @version: 0.2 (01.10.2006) **/
function eraseButtons(){
	if(typeof rmEditButtons!='object') return;
	if (typeof rmEditButtons[0] == 'string' &amp;&amp; rmEditButtons[0].toLowerCase() == 'all') 
		return mwEditButtons=[];
	//Remove the buttons the user doesn't want 
	for(i=0;i&lt;rmEditButtons.length;i++){
		var n=rmEditButtons[i]-i;
		if(n&gt;=0 &amp;&amp; n&lt;mwEditButtons.length){
			if(n&lt;mwEditButtons.length){
				var x = -1;
				while((++x)&lt;mwEditButtons.length)
					if(x&gt;=n)
						mwEditButtons[x] = mwEditButtons[x+1];
			}
		mwEditButtons.pop();
		}
	}
};

addOnloadHook(initButtons);

// Adds extended onclick-function to some buttons 
function extendButtons(){
	if(!(allEditButtons = document.getElementById('toolbar'))) return false;
	if(typeof editform == 'undefined')
		if(!(window.editform = document.editform)) return false;

	XEBOrder.getIndex = function (item){
	 if(is_gecko) return this.indexOf(item);
	 else //is IE (Opera &lt; 9)
		 for (var i=0;i &lt; this.length;i++) if (this[i]==item) return Number(i);
   	return -1
	}
	var searchbox = allEditButtons.getElementsByTagName('span')[0];
	if (searchbox) allEditButtons.appendChild(searchbox) // pay Zocky/Search Box
	
	allEditButtons = allEditButtons.getElementsByTagName('img');

	var bu_len = mwEditButtons.length;
	var c=0;

	if(!allEditButtons.length) return false;

	// own signature
	if (bu_len&gt;0){
		if(typeof rmEditButtons=='object' &amp;&amp; rmEditButtons.pop()==10) c=1;
			mwEditButtons[bu_len-2+c].tagOpen=usersignature;
		if(usersignature != '-- \~\~\~\~')
			allEditButtons[bu_len-2+c].src=Isrc+'d/d1/Button_mysignature.png';
	}

	//  table
	if((c=XEBOrder.getIndex('E')) != -1) allEditButtons[bu_len+c].onclick=popupTable;

	// redirect
	c=XEBOrder.getIndex('V');
	if(c != -1)
		allEditButtons[bu_len+c].onclick=function(){
		 if (a = window.prompt(&quot;Wohin soll die Weiterleitung\?&quot;, &quot;&quot;)) {
		 a = '\#WEITERLEITUNG \[\[' + a + '\]\]';
		 editform.wpTextbox1.value=a;
		 editform.wpSummary.value=a; // not more needed?
		 editform.wpWatchthis.checked=false
		 }
  		};
	
	// spacer width
	if((c = XEBOrder.getIndex('T1')) != -1) allEditButtons[bu_len+c].width = 6;
};

if(!wgIsArticle) // only if edit
	hookEvent(&quot;load&quot;, extendButtons);

// &lt;/source&gt;</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-wikEd</title>
    <id>52857</id>
    <revision>
      <id>354532</id>
      <timestamp>2008-01-30T08:28:06Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="350">[[w:Wikipedia:Texteditor#wikEd|wikEd]] ist ein vollwertiger Wikipedia-integrierter Texteditor mit Syntaxhervorhebung, Suchen und Ersetzen, Vollbildmodus und vielem mehr, welcher das normale [[Hilfe:Seiten bearbeiten|Bearbeitungsfeld]] ersetzt. Er funktioniert derzeit nur mit [[w:Mozilla|mozillabasierten]] Browsern wie [[w:Mozilla Firefox|Firefox]].</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-wikEd.js</title>
    <id>52858</id>
    <revision>
      <id>621674</id>
      <timestamp>2012-01-20T23:10:16Z</timestamp>
      <contributor>
        <username>Hoo man</username>
        <id>26819</id>
      </contributor>
      <minor/>
      <comment>Bot: Security fix: [[WMFblog:2011/10/03/native-https-support-enabled-for-all-wikimedia-foundation-wikis/|protocol-relative URLs]] per https://meta.wikimedia.org/?oldid=3197161 ([[m:Stewards' noticeboard|questions?]]).</comment>
      <text xml:space="preserve" bytes="261">// Gadget: Editor wikEd ([[w:en:User:Cacycle/wikEd]])

// Code direkt aus der englischsprachigen Wikipedia laden, um veraltete Versionen zu vermeiden.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&amp;action=raw&amp;ctype=text/javascript');</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-wikEd.js/de</title>
    <id>52859</id>
    <revision>
      <id>621675</id>
      <timestamp>2012-01-20T23:11:03Z</timestamp>
      <contributor>
        <username>Hoo man</username>
        <id>26819</id>
      </contributor>
      <minor/>
      <comment>Bot: Security fix: [[WMFblog:2011/10/03/native-https-support-enabled-for-all-wikimedia-foundation-wikis/|protocol-relative URLs]] per https://meta.wikimedia.org/?oldid=3197161 ([[m:Stewards' noticeboard|questions?]]).</comment>
      <text xml:space="preserve" bytes="252"> // Original: //en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js
 // Code direkt laden, um veraltete Versionen zu vermeiden.
 mw.loader.load('//en.wikipedia.org/wiki/User:Matthias_M./wikEd_international_de.js&amp;action=raw&amp;ctype=text/javascript');</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-erstelleSammlung</title>
    <id>61671</id>
    <revision>
      <id>425227</id>
      <timestamp>2009-01-15T12:37:26Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <comment>hat „[[MediaWiki:Gadget-holeSammlung]]“ nach „[[MediaWiki:Gadget-erstelleSammlung]]“ verschoben</comment>
      <text xml:space="preserve" bytes="210">Dieses Werkzeug von ''PediaPress'' hilft dabei, '''Sammlungen zu erstellen''', indem es in die obere rechte Ecke einen Link hinzufügt, um auf Grundlage der aktuell geöffneten Seite eine Sammlung zu erstellen.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-Sammlungsparser.js</title>
    <id>61672</id>
    <revision>
      <id>425237</id>
      <timestamp>2009-01-15T13:17:14Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <comment>vergessene Übersetzungen</comment>
      <text xml:space="preserve" bytes="3895">// Adapted from User:Pediapress/collection-parser.js

function putOutList(list) {
  var articleName, bookName = list[0];
  var out = '== ' + bookName.replace(/_/g, &quot; &quot;) +' ==\n';
  out += ':[[' + bookName.replace(/_/g, &quot; &quot;) + ']]\n';
  for (var i = 1; i &lt; list.length; i++) {
    if (list[i] != null &amp;&amp; list[i].match(/^http:/)) {
      articleName = getArticleId(list[i], bookName);
      out += &quot;:[[&quot; + bookName + &quot;/&quot; + articleName + &quot;|&quot; + articleName.replace(/_/g, &quot; &quot;) + &quot;]]\n&quot;;
    } else { //kick out empty headlines and those without links
      if ((i &lt; list.length-1 &amp;&amp; list[i+1].match(/^http:/)) &amp;&amp; list[i] != &quot; &quot;) {
          out += &quot;;&quot; + list[i] + &quot;\n&quot;;
      }
    }
  }
  out += &quot;\n[[Kategorie:Sammlungen]]&quot;;
 
  //print the collectionmarkup into a textarea
  var collectionName = prompt(&quot;Benenne deine Sammlung:&quot;, &quot;&quot;);
  if (collectionName) {
    var w = window.open(wgServer + &quot;/w/index.php?title=User:&quot; + wgUserName + &quot;/_Sammlungen/&quot; + collectionName + &quot;&amp;action=edit&quot;);
    if (w.attachEvent) {
      w.attachEvent(&quot;onload&quot;, function() {refreshTextArea(w, out)});
    } else if (window.addEventListener) {
      w.addEventListener(&quot;lade&quot;, function() {refreshTextArea(w, out)}, false);
    } else {
      w.document.addEventListener(&quot;lade&quot;, function() {refreshTextArea(w, out)}, false);
    }
  }
}
 
function refreshTextArea(w, out) {
  var txt = w.document.getElementById('wpTextbox1');
  txt.value = out;
} 
 
function getArticleId(link, bookName) {
  var linkList = link.split(&quot;/&quot;);
  var isId = 0;
  var output = &quot;&quot;;
  for (var i = 0; i &lt; linkList.length; i++) {
    if (isId == 0 &amp;&amp; linkList[i] == bookName) {
      isId++;
    } else {
      if (isId == 1) {
        output += linkList[i];
        isId++;
      } else {
        if (isId &gt; 1) {
          output += &quot;/&quot; + linkList[i];
        }
      }
    }
  }
  return output;
}
 
//look for headlines and links
function parseContent () {
  var bookLinks = initBooklinks();  
  var contDiv = document.getElementById('bodyContent');
  var bodyElements = contDiv.getElementsByTagName(&quot;*&quot;);
  var element;
 
  for (var i = 0; i &lt; bodyElements.length; i++) {
    element = bodyElements[i];
    if (element.nodeName.match(/^H\d/)) {
      bookLinks[bookLinks.length] = getHeadingText(element);
    } else {
      if (element.nodeName == &quot;A&quot;) {
        if (isBookInternalLink(element)) {
          bookLinks[bookLinks.length] = element.href;
        }
      }
    }
  }
  return bookLinks;
}
 
//extracts the text from a headline
function getHeadingText(heading) {
  if (heading.id == &quot;siteSub&quot;) {
    return &quot; &quot;;
  } else {
    var elements = heading.childNodes;
    for (var i = 0; i &lt; elements.length; i++) {
      if (elements[i].nodeName == &quot;SPAN&quot; &amp;&amp; elements[i].getAttribute(&quot;class&quot;) == &quot;mw-headline&quot;) {
        return elements[i].innerHTML;
      }
    }
  }
  return &quot;chapter&quot;;
}
 
function initBooklinks() {
  var bookName = wgPageName.split(&quot;/&quot;);
  if (bookName.length &gt; 1) {
    return [bookName[0], &quot;http://&quot; + wgPageName];
  } else {
    return [wgPageName];
  }
}
 
//checks links for targets inside the wikibook
function isBookInternalLink(link) {
  var articleBaseURL = wgServer + wgArticlePath;
  var bookName = wgPageName;
  var articleURL = articleBaseURL.substring(0, articleBaseURL.length-2) + bookName.split(&quot;/&quot;)[0];
  if (link.href.substring(0,articleURL.length) != articleURL || link.href.match(/#/) || link.href.match(/Print_version/i)) {
    return false;
  } else {
    return true;
  }
}
 
//added link has been clicked
function getCollection() {
  var bookLinks = parseContent(); 
  putOutList(bookLinks);
}
 
//add an link at thr right upper corner
function addPediapressLinks() {
  if (wgNamespaceNumber == 0 || wgNamespaceNumber == 102 || wgNamespaceNumber == 110) {
    addPortletLink ('p-personal', 'javascript:getCollection()', 'Erstelle Sammlung');
  }
}
 
addOnloadHook(addPediapressLinks);</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-Zugriffsstatistiken</title>
    <id>81032</id>
    <revision>
      <id>592794</id>
      <timestamp>2011-07-19T00:18:28Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="105">Erzeugt in der Werkzeugliste einen zusätzlichen Link auf das Zugriffsstatistik-Tool http://stats.grok.se</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-addStatisticsLink.js</title>
    <id>81031</id>
    <revision>
      <id>592793</id>
      <timestamp>2011-07-19T00:16:39Z</timestamp>
      <contributor>
        <username>Prog</username>
        <id>3579</id>
      </contributor>
      <comment>Achtung: Könnte noch Fehler haben</comment>
      <text xml:space="preserve" bytes="437">// &lt;/nowiki&gt;

function addStatisticsLink(){
	if(wgAction != 'view' &amp;&amp; wgAction != 'purge') return;
	var source = $('#t-whatlinkshere');
	if(!source.length) return;
	var target = source.clone();
	var date = new Date;
	target.html('&lt;a href=&quot;http://stats.grok.se/de.b/'+date.getFullYear()+(date.getMonth()&lt;9?'0':'')+(date.getMonth()+1)+'/'+wgPageName+'&quot;&gt;Zugriffsstatistik&lt;/a&gt;');
	source.after(target);
}

$(addStatisticsLink);

// &lt;/nowiki&gt;</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-bottomtabs</title>
    <id>51087</id>
    <revision>
      <id>342672</id>
      <timestamp>2007-12-19T18:41:56Z</timestamp>
      <contributor>
        <username>MichaelFrey</username>
        <id>3194</id>
      </contributor>
      <minor/>
      <text xml:space="preserve" bytes="51">Zeigt die Reiter auch am unteren Ende der Seite an.</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-bottomtabs.js</title>
    <id>51086</id>
    <revision>
      <id>342653</id>
      <timestamp>2007-12-19T18:21:04Z</timestamp>
      <contributor>
        <username>MichaelFrey</username>
        <id>3194</id>
      </contributor>
      <text xml:space="preserve" bytes="804">//kopiert von http://en.wikibooks.org/wiki/MediaWiki:Gadget-bottomtabs.js

function morelinks() {
  var tabs = document.getElementById('p-cactions').cloneNode(true);
  // don't use the same ids twice- replace the p-cactions id and prepend 'mytabs-' to the li's
  tabs.id = 'mytabs';
  // needs this to be set from js, it ignores the css width for some reason
  tabs.style.width = '100%';
  var listitems = tabs.getElementsByTagName('LI');
  for (i=0;i&lt;listitems.length;i++) {
    if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;
  }
  // drop them at the bottom of the content area
  document.getElementById('content').appendChild(tabs);
}
if (window.addEventListener) window.addEventListener(&quot;load&quot;,morelinks,false);
else if (window.attachEvent) window.attachEvent(&quot;onload&quot;,morelinks);</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-sixtabs</title>
    <id>51085</id>
    <revision>
      <id>360574</id>
      <timestamp>2008-02-25T15:37:08Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <text xml:space="preserve" bytes="682">Fügt „Bearbeiten“- und „Versionen/Autoren“-Reiter für Diskussions- oder Kapitelseite hinzu, je nachdem welche gerade geöffnet ist.&lt;br /&gt;&lt;span style=&quot;border:1px solid gray; border-bottom:none; padding:2px&quot;&gt;'''Kapitel'''&lt;/span&gt;
&lt;span style=&quot;border:1px solid gray; border-bottom:none; padding:2px&quot;&gt;'''Bearbeiten'''&lt;/span&gt;
&lt;span style=&quot;border:1px solid gray; border-bottom:none; padding:2px&quot;&gt;Versionen&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;border:1px solid gray; border-bottom:none; padding:2px&quot;&gt;Diskussion&lt;/span&gt;
&lt;span style=&quot;border:1px solid gray; border-bottom:none; padding:2px&quot;&gt;Bearbeiten&lt;/span&gt;
&lt;span style=&quot;border:1px solid gray; border-bottom:none; padding:2px&quot;&gt;Versionen&lt;/span&gt;</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-sixtabs.js</title>
    <id>51084</id>
    <revision>
      <id>342678</id>
      <timestamp>2007-12-19T18:50:13Z</timestamp>
      <contributor>
        <username>MichaelFrey</username>
        <id>3194</id>
      </contributor>
      <minor/>
      <text xml:space="preserve" bytes="1585">//kopiert von http://en.wikibooks.org/wiki/MediaWiki:Gadget-sixtabs.js
//Die Sprache ist hart einprogrammiert, bitte bei einem Update bedenken

if (wgNamespaceNumber &gt;= 0)
addOnloadHook(function(){
 var pCactions = document.getElementById('p-cactions');
 if (!pCactions) return;
 var caMain = pCactions.getElementsByTagName('li')[0];
 var caTalk = document.getElementById('ca-talk');
 var caEdit = document.getElementById('ca-edit');
 if (!caEdit) caEdit = document.getElementById('ca-viewsource');
 var caHistory = document.getElementById('ca-history');
 if (!caMain || !caTalk || !caEdit || !caHistory) return;
 var el_move, el_create, id2;
 if (wgNamespaceNumber % 2) { //talk space
   el_move = caTalk; el_create = caMain; id2 = '';
 } else {
   el_move = caMain; el_create = caTalk; id2 = 'Diskussion';
 }
 caTalk.firstChild.innerHTML = 'Diskussion';
 caEdit.firstChild.innerHTML = 'Bearbeiten';
 caHistory.firstChild.innerHTML = 'Versionen';
 el_move.parentNode.insertBefore(caHistory, el_move.nextSibling);
 el_move.parentNode.insertBefore(caEdit, el_move.nextSibling);
 var href = el_create.firstChild.getAttribute('href', 2);
 if (el_create.className.indexOf('new') &lt; 0){
   addPortletLink('p-cactions', href + '?action=history', 'Versionen',
     'ca-history-'+id2, id2+' Versionen', '', el_create.nextSibling);
   addPortletLink('p-cactions', href + '?action=edit', 'Bearbeiten',
     'ca-edit-'+id2, 'Bearbeiten '+id2, '', el_create.nextSibling);
 } 
  caMain.style.marginRight = '0.3em'; 
  caTalk.style.marginRight = '0.3em'; 
  caTalk.style.marginLeft  = '1.6em'; 
})
//</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-viewHistoryPrefix</title>
    <id>54695</id>
    <revision>
      <id>368655</id>
      <timestamp>2008-03-28T15:47:35Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="164">Dieses Gadget zeigt die letzten fünf Änderungen aus der Versionsgeschichte von Seiten an, die mit dem angegebenen Präfix beginnen. ('''nur Firefox-kompatibel''')</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-viewHistoryPrefix.js</title>
    <id>54696</id>
    <revision>
      <id>621673</id>
      <timestamp>2012-01-20T23:10:15Z</timestamp>
      <contributor>
        <username>Hoo man</username>
        <id>26819</id>
      </contributor>
      <minor/>
      <comment>Bot: Security fix: [[WMFblog:2011/10/03/native-https-support-enabled-for-all-wikimedia-foundation-wikis/|protocol-relative URLs]] per https://meta.wikimedia.org/?oldid=3197161 ([[m:Stewards' noticeboard|questions?]]).</comment>
      <text xml:space="preserve" bytes="8407"> // &lt;nowiki&gt;
 
 /*
 
 Mit diesem Skript kann man sich die letzten fünf Einträge der
 Versionsgeschichte von Seiten mit einem bestimmten Präfix
 anzeigen lassen. Dies gilt natürlich nur, wenn auch
 mindestens fünf Änderungen vorliegen. ;-)
 Sonst wird alles angezeigt, was da ist.
 
 Übernommen werden kann das Skript folgendermaßen:
 1. Alles in die eigene &quot;monobook.js&quot; kopieren. ([[Special:Mypage/monobook.js]])
 
 2. Folgende Zeile in die eigene &quot;monobook.js&quot; einfügen:
 mw.loader.load('//de.wikibooks.org/w/index.php?title=Benutzer:Heuler06/viewHistoryPrefix.js&amp;action=raw&amp;ctype=text/javascript');
 
 ! Hinweis: Ist in der &quot;monobook.js&quot; schon etwas vorhanden,
            kann es sein, dass das Skript nicht funktioniert -
            sowohl das hineinkopierte als auch das eingebundene.
 
 Getestet wurde es auf IE7, Opera 9.21 und FF.
 Im IE und Opera lief es nur in &quot;Reinform&quot;, also ohne anderes Monobook-Krams.
 
 Weitere Anregungen und Kritik sind gerne gesehen.
 Wer Ideen hat, wie der Code effizienter wird: immer her damit.
 
 Viel Spaß :)
 -- [[Benutzer:Heuler06|heuler06]]
 
 */
 
 var req=false;
 var seiten=new Array();
 var nrOfPages=0;
 var goAhead=true;
 
 function counter()
 {
  if (nrOfPages==seiten.length)
  {
   document.getElementById(&quot;pic-load&quot;).style.display=&quot;none&quot;;
   document.getElementById(&quot;c-link&quot;).style.display=&quot;inline&quot;;
   nrOfPages=0;
   goAhead=true;
   seiten=new Array();
  };
  
  while (nrOfPages&lt;seiten.length &amp;&amp; goAhead)
  {
   search_pages(seiten[nrOfPages], '', 'history');
   goAhead=false;
   nrOfPages++;
  };
 }
 
 function history(page)
 {
  var n=page.indexOf('&lt;ul id=&quot;pagehistory&quot;&gt;');
  var n1=page.indexOf('&lt;/ul&gt;', n);
  var txt='';
  var string=page.substring(n, n1+5);

  var edit=new Array();
  var k=string.indexOf('&lt;li&gt;'), k1=string.indexOf('Vorherige&lt;/a&gt;)', k);

  var i=0;
    
  if (k1&lt;0)
  {
   edit[i]=new Array(2);
   k1=string.indexOf('l) (Vorherige)', k);
   n=string.indexOf('&lt;a href=&quot;', k1); n1=string.indexOf('&lt;/span&gt;&lt;/li&gt;', n);
   edit[i][0]='&lt;li&gt; &lt;big&gt;&amp;rarr;&lt;/big&gt; &lt;span style=&quot;color: red; font-weight:bold;&quot;&gt;N&lt;/span&gt;';
   edit[i][1]=string.substring(n, n1+12)+'&lt;/li&gt;';
  }
  else
  {
   n=string.indexOf('name=&quot;diff&quot; /&gt; &lt;a href=&quot;', k1); n1=string.indexOf('&lt;/span&gt;)&lt;/li&gt;', n);
   while (k&gt;-1 &amp;&amp; i&lt;5)
   {
    edit[i]=new Array(2);
    edit[i][0]=string.substring(k, k1+14);
    if (n1&lt;0)
    {
     n1=string.indexOf('&lt;/span&gt;&lt;/li&gt;', n);
     edit[i][1]=string.substring(n+15, n1+12);
    }
    else
    {
     edit[i][1]=string.substring(n+15, n1+13);
    };
    k=string.indexOf('&lt;li&gt;', k1);
    k1=string.indexOf('Vorherige&lt;/a&gt;)', k);
    if (k1&lt;0)
    {
     k1=string.indexOf('&gt;) (Vorherige)', k);
    };
    n=string.indexOf('name=&quot;diff&quot; /&gt; &lt;a href=&quot;', k1);
    n1=string.indexOf('&lt;/span&gt;)&lt;/li&gt;', n);
  
    i++;
   };
  };
  
  txt+=&quot;\n&lt;h4&gt;&lt;a href=\&quot;/wiki/&quot;+seiten[nrOfPages-1]+&quot;\&quot;&gt;&quot;;
  txt+=decodeURIComponent(seiten[nrOfPages-1]).replace(/_/g, ' ');
  txt+=&quot;&lt;/a&gt;&lt;/h4&gt;\n&lt;ul&gt;&quot;;
    
  for (i=0; i&lt;edit.length; i++)
  {
   txt+=(edit[i][0]+&quot; ... &quot;+edit[i][1]);
  };
  
  txt+=&quot;&lt;/ul&gt;\n&lt;br&gt;&quot;; 
  document.getElementById(&quot;results&quot;).innerHTML+=txt;
  goAhead=true;
  counter();
 }
 
 function prefix_pages(page)
 {
  var n=page.indexOf('&lt;table style=&quot;background: inherit;&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;');
  var n1=page.indexOf('&lt;/table&gt;', n);
  
  var string=page.substring(n, n1+8);
 
  var k=string.indexOf('&lt;a href=&quot;/wiki/'), k1=string.indexOf('&quot;', k+15);
  var i=0;
 
  while (k&gt;-1)
  {
   seiten[i]=string.substring(k+15, k1);
   k=string.indexOf('&lt;a href=&quot;/wiki/', k1);
   k1=string.indexOf('&quot;', k+15);
 
   i++;
  };
  nrOfPages=0;
  counter();
 }
 
 function pages()
 {
  if (req.readyState==4)
  {
   if (req.status==200)
   {
    var page=req.responseText;
    req=false;
    var regex=/&lt;title&gt;Versionsgeschichte von .* Wikibooks&lt;\/title&gt;/;
 
    if (regex.test(page))
    {
     history(page);
    }
    else
    {
     document.getElementById(&quot;results&quot;).innerHTML='';
     prefix_pages(page);
    };
   }
   else
   {
    document.getElementById(&quot;pic-load&quot;).style.display=&quot;none&quot;;
    alert(&quot;Fehler aufgetreten! (Request nicht richtig empfangen)&quot;);
   };
  };
 }
 
 function token()
 {
  var cookies=document.cookie.split(&quot; &quot;);
  var nr='';
 
  for (i=0; i&lt;cookies.length; i++)
  {
   cookies[i]=cookies[i].split(&quot;=&quot;);  
   if (cookies[i][0].search(/Token/)&gt;0) nr=cookies[i][1].replace(/;/, '');
  };
 
  return nr;
 }
 
 function search_pages(from, namespace, action)
 {
  req=false;
 
  if (window.XMLHttpRequest)
  {
   req=new XMLHttpRequest();
   if (req.overrideMimeType)
   {
    req.overrideMimeType('text/xml');
   };
  }
  else
  {
   if (window.ActiveXObject)
   {
    try
    {req=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);}
    catch (e)
    {
     try
     {req=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);}
     catch (e) {};
    };
   };
  };
  
  if (!req)
  {
   alert('Kann keine XMLHTTP-Instanz erzeugen.');
   return false;
  }; 

  var str='//de.wikibooks.org/w/index.php';
  if (from!='' &amp;&amp; action=='')
  {
   str+=('?title=Spezial%3APr%C3%A4fixindex&amp;from='+from+'&amp;namespace='+namespace);
  }
  else
  {
   str+=('?title='+from+'&amp;action='+action);
  };
 
  str+=('&amp;token='+token());
  document.getElementById(&quot;pic-load&quot;).style.display=&quot;inline&quot;;
  document.getElementById(&quot;c-link&quot;).style.display=&quot;none&quot;;
 
  req.onreadystatechange=pages;
  req.open('GET', str, true);
  req.send(null);
 }


 function getSpecialPages()
 {
  if (wgCanonicalSpecialPageName==&quot;Specialpages&quot;)
  {
   var list=document.getElementsByTagName(&quot;li&quot;)[0].parentNode;
 
   list.innerHTML+='&lt;li&gt;&lt;a href=&quot;javascript:changePage()&quot; title=&quot;letzte fünf Änderungen vonSeiten mit Präfix&quot;&gt;letzte fünf Änderungen bei allen Seiten (Präfix)&lt;/a&gt;&lt;/li&gt;'
  };
 }
 
 function changePage()
 {
  var string='&lt;p&gt;Mit diesem JavaScript ist es möglich, die letzten fünf Änderungen von Seiten anzeigen zu lassen, die mit dem eingegebenen Präfix beginnen. Die Abfrage mit dem Präfix funktioniert wie &lt;a href=&quot;/wiki/Spezial:Pr%C3%A4fixindex&quot;&gt;Alle Seiten (Präfix)&lt;/a&gt;. Abfragen, die dort nicht funktionieren, funktionieren auch hier nicht.\n&lt;br&gt;&lt;br&gt;\n&lt;b&gt;Hinweis:&lt;/b&gt; Es kann eine Weile dauern, bis alle Seiten abgefragt wurden.&lt;/p&gt;';
  string+='&lt;div class=&quot;namespaceoptions&quot;&gt;\n&lt;form name=&quot;h-prefix&quot;&gt;\n';
  string+='&lt;table&gt;\n&lt;tr&gt;\n&lt;td align=&quot;right&quot;&gt;Präfix&lt;/td&gt;\n&lt;td align=&quot;left&quot;&gt;\n';
  string+='&lt;input type=\'text\' size=\'20\' name=\'from\' id=\'nsfrom\' value=&quot;&quot;&gt;&lt;br&gt;\n';
  string+='&lt;/td&gt;\n&lt;td rowspan=&quot;2&quot;&gt;\n&lt;div style=&quot;display:none;&quot; id=&quot;pic-load&quot;&gt;\n&lt;table border=&quot;0&quot;&gt;&lt;tr&gt;\n&lt;td&gt;';
  string+='&lt;img src=&quot;//upload.wikimedia.org/wikipedia/commons/4/42/Loading.gif&quot;&gt;&lt;/td&gt;&lt;td&gt;Lade...&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&lt;/div&gt;\n';
  string+='&lt;td rowspan=&quot;2&quot;&gt;\n&lt;div style=&quot;display:none;&quot; id=&quot;c-link&quot;&gt;\n';
  string+='&lt;a href=&quot;javascript:changePage()&quot;&gt;Seite leeren&lt;/a&gt;\n&lt;/div&gt;\n&lt;/td&gt;\n';
  string+='&lt;/tr&gt;\n&lt;tr&gt;\n&lt;td align=&quot;right&quot;&gt;Namensraum&lt;/td&gt;\n&lt;td align=&quot;left&quot;&gt;\n';
  string+='&lt;select id=\'namespace\' name=\'namespace\' class=\'namespaceselector\'&gt;\n';
  string+='&lt;option value=&quot;0&quot; selected=&quot;selected&quot;&gt;(Seiten)&lt;/option&gt;\n';
  string+='&lt;option value=&quot;1&quot;&gt;Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;2&quot;&gt;Benutzer&lt;/option&gt;\n';
  string+='&lt;option value=&quot;3&quot;&gt;Benutzer Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;4&quot;&gt;Wikibooks&lt;/option&gt;\n';
  string+='&lt;option value=&quot;5&quot;&gt;Wikibooks Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;6&quot;&gt;Bild&lt;/option&gt;\n';
  string+='&lt;option value=&quot;7&quot;&gt;Bild Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;8&quot;&gt;MediaWiki&lt;/option&gt;\n';
  string+='&lt;option value=&quot;9&quot;&gt;MediaWiki Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;10&quot;&gt;Vorlage&lt;/option&gt;\n';
  string+='&lt;option value=&quot;11&quot;&gt;Vorlage Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;12&quot;&gt;Hilfe&lt;/option&gt;\n';
  string+='&lt;option value=&quot;13&quot;&gt;Hilfe Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;14&quot;&gt;Kategorie&lt;/option&gt;\n';
  string+='&lt;option value=&quot;15&quot;&gt;Kategorie Diskussion&lt;/option&gt;\n';
  string+='&lt;option value=&quot;102&quot;&gt;Regal&lt;/option&gt;\n';
  string+='&lt;option value=&quot;103&quot;&gt;Regal Diskussion&lt;/option&gt;\n';
  string+='&lt;/select&gt;\n';
  string+='&lt;input type=&quot;button&quot; value=&quot;Abfragen&quot; onclick=&quot;search_pages(this.form.from.value, this.form.namespace.value, \'\')&quot;&gt;\n';
  string+='&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/table&gt;\n&lt;/form&gt;\n&lt;/div&gt;\n&lt;hr /&gt;\n';
  string+='&lt;div id=&quot;results&quot;&gt;\n';
  string+='&lt;/div&gt;\n';
 
 
  document.getElementById(&quot;bodyContent&quot;).innerHTML=string;
 }
 
 addOnloadHook(getSpecialPages);
 
 // &lt;/nowiki&gt;</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-section-tabs</title>
    <id>52139</id>
    <revision>
      <id>349047</id>
      <timestamp>2008-01-13T18:20:46Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="11">Reiter/Tabs</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-section-werkzeuge</title>
    <id>52483</id>
    <revision>
      <id>351955</id>
      <timestamp>2008-01-22T12:34:36Z</timestamp>
      <contributor>
        <username>Heuler06</username>
        <id>5672</id>
      </contributor>
      <minor/>
      <comment>Neue Seite (vgl. [[WB:AZ]])</comment>
      <text xml:space="preserve" bytes="9">Werkzeuge</text>
    </revision>
  </page>
  <page>
    <title>MediaWiki:Gadget-section-Darstellung</title>
    <id>54337</id>
    <revision>
      <id>365411</id>
      <timestamp>2008-03-16T18:20:40Z</timestamp>
      <contributor>
        <username>MichaelFrey</username>
        <id>3194</id>
      </contributor>
      <comment>Darstellung</comment>
      <text xml:space="preserve" bytes="11">Darstellung</text>
    </revision>
  </page>
</mediawiki>

