Benutzer:Aschroet/common.js
Zur Navigation springen
Zur Suche springen
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
var redundantTemplateParameters = []; //Entfernung von Redundanzen aus Infoboxen ausschalten
importScript('Benutzer:TMg/autoFormatter.js'); //[[Benutzer:TMg/autoFormatter.js]]
// <nowiki>
/*
{{Infobox Ortsteil einer Gemeinde in Deutschland
| Ortsteil = Altengesees
| Gemeindeart = Gemeinde
| Gemeindename = Remptendorf
| Alternativanzeige-Gemeindename = Remptendorf
| lat_deg = 50
| lat_min = 32
| lat_sec = 52.8
| lon_deg = 11
| lon_min = 32
| lon_sec = 24
| Bundesland = DE-TH
| Höhe = 580
| Höhe-bis =
| Höhe-Bezug = NN
| Fläche = 4,23 km²
| Einwohner = 198
| Einwohner-Stand-Datum = 2009-12-31
| Eingemeindungsdatum = 1999-07-01
| Eingemeindet-nach =
| Postleitzahl1 = 07368
| Postleitzahl2 =
| Vorwahl1 = 036643
| Vorwahl2 =
| Lagekarte =
| Lagekarte-Beschreibung =
}}
*/
//[[Datei:Wappen Boeseckendorf.png|140px|miniatur|rechts|Böseckendorfer Wappen]]
//'''Böseckendorf''' ist ein Ortsteil der Gemeinde [[Teistungen]] im [[Landkreis Eichsfeld]] an der Westgrenze.
var infobox = "{{Infobox Ortsteil einer Gemeinde in Deutschland\n| Ortsteil = <NAME>\n| Alternativname = \n| Gemeindeart = <GA>\n| Gemeindename = <GN>\n| Alternativanzeige-Gemeindename = <GN_ALT>\n| Ortswappen = <OW>\n| Ortswappen-Beschreibung= <OWB>\n| Breitengrad = <NS>\n| Längengrad = <EW>\n| Nebenbox = \n| Bundesland = <REGION>\n| Höhe-Präfix = <HP>\n| Höhe = <H>\n| Höhe-von = <HVN>\n| Höhe-bis = <HBS>\n| Höhe-Bezug = <HB>\n| Fläche = <F>\n| Einwohner = <EINWOHNER>\n| Einwohner-Stand-Datum = <ESD>\n| Einwohner-Quelle = <EWQ>\n| Eingemeindungsdatum = <EG>\n| Eingemeindet-nach = <EN>\n| Postleitzahl1 = <PLZ1>\n| Postleitzahl2 = <PLZ2>\n| Vorwahl1 = <VW1>\n| Vorwahl2 = <VW2>\n| Lagekarte = <LK>\n| Lagekarte-Beschreibung = <LKB>\n| Poskarte = <PK>\n| Bild = <BILD>\n| Bild-Beschreibung = <BILDB>\n}}";
var esd = "";
var ewq = "";
var ow = "";
var owb = "";
var hp = "";
var hvn = "";
var hbs = "";
var en = "";
var lk = "";
var lkb = "";
var posk = "";
var bild = "";
var bildb = "";
var ortsteilVon = "";
var ortsteilVonFull = "";
var g_art = "";
var plz1 = "";
var plz2 = "";
var vw1 = "";
var vw2 = "";
function getOrtsteil() {
var text = document.editform.wpTextbox1.value;
var sentences = text.split(". ");
if (sentences.length>1) {
//Suche im ersten Satz "Ortsteil ... [[Link]]"
str1 = sentences[0].match(/Ortsteil.*?\[\[(.*?)\]\]/);
if (!str1) {
str1 = sentences[0].match(/Stadtteil.*?\[\[(.*?)\]\]/);
}
if (!str1) {
str1 = sentences[0].match(/Weiler.*?\[\[(.*?)\]\]/);
}
if (str1) {
//Extrahiere Gemeindename und kompletten Name
var str2 = str1[1].match(/(.*)\|(.*)/);
if (str2) {
ortsteilVon = str2[2];
ortsteilVonFull = str2[1];
} else {
ortsteilVonFull = str1[1];
}
}
//is it a Stadt?
str1 = sentences[0].match(/Stadt/);
if (str1) {
g_art = "Stadt";
}
g_page = httpGet("/w/api.php?format=json&action=query&titles=" + ortsteilVonFull + "&prop=revisions&rvprop=content");
str1 = g_page.match(/PLZ.*?= ([0-9]{5})/);
if (str1) {
plz1 = str1[1];
}
str1 = g_page.match(/Vorwahl.*?= ([0-9]{3,6})/);
if (str1) {
vw1 = str1[1];
}
}
}
var einwohner = "";
function getEinwohner() {
var text = document.editform.wpTextbox1.value;
str = text.match(/([0-9]{1,4}) Einwohner/);
if (str) {
einwohner = str[1];
} else {
str = text.match(/([0-9]{1,4}) Personen/);
if (str) {
einwohner = str[1];
} else {
str = text.match(/([0-9]{1,4}) Bürger/);
if (str) {
einwohner = str[1];
}
}
}
}
var f = "";
//123 ha.
function getFlaeche() {
var text = document.editform.wpTextbox1.value;
str = text.match(/([0-9]{1,4}) ha[ \.]/);
if (str) {
f = str[1]/100.0;
}
}
//Über Kreisstraßen ist der Ortsteil hinab in das Tal des Erlbachs und über die Landesstraße 1070 mit dem Umland verbunden. Er liegt auf 123 m.
var h = "";
var hb = "";
function getHoehe() {
var text = document.editform.wpTextbox1.value;
str = text.match(/([0-9]{1,4}) m[ \.]/);
if (str) {
h = str[1];
hb = "DE-NN";
} else {
str = text.match(/([0-9]{1,4}) Meter/);
if (str) {
h = str[1];
hb = "DE-NN";
}
}
}
//{{Coordinate|NS=50.846286|EW=11.250962|type=city|region=DE-TH}}
var ns = "";
var ew = "";
var region = "";
function getCoords() {
var text = document.editform.wpTextbox1.value;
coords = text.match(/\{\{Coordinate *\|(.*?)\}\}/);
if (coords) {
str = coords[1] + " "
ns = str.match(/NS=(.*?)[\| ]/)[1];
ew = str.match(/EW=(.*?)[\| ]/)[1];
region = str.match(/region=(.*?)[\| ]/)[1];
}
}
var name = "";
function getName() {
str = f
str2 = str.match(/(.*) \(.*\)/);
if (str2) {
name = str2[1];
}
}
// 122 Personen. Ersterwähnung 1017 das erstmal.
var alter = "";
function getAlter() {
var text = document.editform.wpTextbox1.value;
var sentences = text.split(".");
for (var i=0;i<sentences.length; ++i) {
str1 = sentences[i].match(/erwähnt/);
str2 = sentences[i].match(/Erwähnung/);
str3 = sentences[i].match(/Ersterwähnung/);
str4 = sentences[i].match(/[0-9]{3,4}/);
if ( (str1 || str2 || str3) && str4) {
alter = str4;
}
}
}
//sdf s. Am 1. Juli 1950 wurde Burgwenden in die Gemeinde Großmonra eingegliedert.
var eg = "";
function getEingemeindung() {
var text = document.editform.wpTextbox1.value;
var sentences = text.split(".");
for (var i=0;i<sentences.length; ++i) {
str1 = sentences[i].match(/eingemeindet/);
str2 = sentences[i].match(/eingegliedert/);
str3 = sentences[i].match(/[0-9]{3,4}/);
if ( (str1 || str2) && str3) {
eg = str3;
}
}
}
function modifyInfobox() {
infobox = infobox.replace(/<NAME>/, name);
infobox = infobox.replace(/<GA>/, g_art);
infobox = infobox.replace(/<GN>/, ortsteilVonFull);
infobox = infobox.replace(/<GN_ALT>/, ortsteilVon);
infobox = infobox.replace(/<OW>/, ow);
infobox = infobox.replace(/<OWB>/, owb);
infobox = infobox.replace(/<NS>/, ns);
infobox = infobox.replace(/<EW>/, ew);
infobox = infobox.replace(/<REGION>/, region);
infobox = infobox.replace(/<HP>/, hp);
infobox = infobox.replace(/<H>/, h);
infobox = infobox.replace(/<HVN>/, hvn);
infobox = infobox.replace(/<HBS>/, hbs);
infobox = infobox.replace(/<HB>/, hb);
infobox = infobox.replace(/<F>/, f);
infobox = infobox.replace(/<EINWOHNER>/, einwohner);
infobox = infobox.replace(/<ESD>/, esd);
infobox = infobox.replace(/<EWQ>/, ewq);
infobox = infobox.replace(/<ALTER>/, alter);
infobox = infobox.replace(/<EG>/, eg);
infobox = infobox.replace(/<EN>/, en);
infobox = infobox.replace(/<PLZ1>/, plz1);
infobox = infobox.replace(/<PLZ2>/, plz2);
infobox = infobox.replace(/<VW1>/, vw1);
infobox = infobox.replace(/<VW2>/, vw2);
infobox = infobox.replace(/<LK>/, lk);
infobox = infobox.replace(/<LKB>/, lkb);
infobox = infobox.replace(/<PK>/, posk);
infobox = infobox.replace(/<BILD>/, bild);
infobox = infobox.replace(/<BILDB>/, bildb);
}
function httpGet(theUrl) {
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", theUrl, false);
xmlHttp.send(null);
return xmlHttp.responseText;
}
function getFromInfobox(para) {
var myrxp = new RegExp(".*" + para + " *= *(.*)");
res = myrxp.exec(document.editform.wpTextbox1.value);
if (!res) {
return "";
} else {
return res[1];
}
}
function readDataFromInfobox() {
article = document.editform.wpTextbox1.value;
getAlter();
//Ortsteil
name = getFromInfobox("Ortsteil");
if (mw.config.get('wgTitle')==name) {
name = "";
}
//Gemeindeart
g_art = getFromInfobox("Gemeindeart");
if (g_art == "Gemeinde") {
g_art = "";
}
//Gemeindename
ortsteilVonFull = getFromInfobox("Gemeindename");
//Alternativanzeige-Gemeindename
ortsteilVon = getFromInfobox("Alternativanzeige-Gemeindename");
//Ortswappen
ow = getFromInfobox("Ortswappen");
//Ortswappen
owb = getFromInfobox("Ortswappen-Beschreibung");
//Breitengrad
ns = getFromInfobox("Breitengrad");
if (!ns) {
//Breitengrad + Längengrad
var lat_deg = getFromInfobox("lat_deg");
var lat_min = getFromInfobox("lat_min");
var lat_sec = getFromInfobox("lat_sec");
ns = lat_deg + "/" + lat_min + "/" + lat_sec + "/N";
}
//Längengrad
ew = getFromInfobox("Längengrad");
if (!ew) {
var lon_deg = getFromInfobox("lon_deg");
var lon_min = getFromInfobox("lon_min");
var lon_sec = getFromInfobox("lon_sec");
ew = lon_deg + "/" + lon_min + "/" + lon_sec + "/E";
}
//Bundesland
region = getFromInfobox("Bundesland");
if (region == "Thüringen") {
region = "DE-TH";
}
//Höhe-Präfix
hp = getFromInfobox("Höhe-Präfix");
//Höhe
h = getFromInfobox("Höhe");
//Höhe-von
hvn = getFromInfobox("Höhe-von");
//Höhe-bis
hbs = getFromInfobox("Höhe-bis");
//Höhe-Bezug
hb = getFromInfobox("Höhe-Bezug");
if (hb == "NN") {
hb = "DE-NN";
}
//Fläche
f = getFromInfobox("Fläche");
f = f.replace(/,/g, ".");
//Einwohner
einwohner = getFromInfobox("Einwohner");
//Einwohner-Stand-Datum
esd = getFromInfobox("Einwohner-Stand-Datum");
//Einwohner-Quelle
ewq = getFromInfobox("Einwohner-Quelle");
//Eingemeindungsdatum
eg = getFromInfobox("Eingemeindungsdatum");
//Eingemeindet-nach
en = getFromInfobox("Eingemeindet-nach");
if ( (en==ortsteilVonFull) || (en=="[[" + ortsteilVonFull + "]]")) {
en = "";
}
//Postleitzahl1
plz1 = getFromInfobox("Postleitzahl1");
//Postleitzahl2
plz2 = getFromInfobox("Postleitzahl2");
//Vorwahl1
vw1 = getFromInfobox("Vorwahl1");
//Vorwahl2
vw2 = getFromInfobox("Vorwahl2");
//Lagekarte
lk = getFromInfobox("Lagekarte");
//Poskarte
posk = getFromInfobox("Poskarte");
//Lagekarte-Beschreibung
lkb = getFromInfobox("Lagekarte-Beschreibung");
//Bild
bild = getFromInfobox("Bild");
//Bild-Beschreibung
bildb = getFromInfobox("Bild-Beschreibung");
}
function normData() {
if (document.editform.wpTextbox1.value.match(/{{Normdaten/)) {
alert("Artikel hat schon Normdaten.");
return false;
}
//Filtert Normdaten der Form 7585610-4 oder 7585610444 aus einem String
str = prompt("Normdaten einfügen: ", "");
str = str.match(/\/([\d-X]{6,10})/);
if (str) {
nd = "{{Normdaten|TYP=<TYP>|GND=" + str[1] + "}}\n";
} else {
alert("Keine Normdaten gefunden.");
return false;
}
//str = prompt("Typ (p-erson, k-örperschaft, v-eranstaltung, w-erk, s-achbegriff, g-eografikum): ", "");
str = "g";
nd = nd.replace("<TYP>", str);
var article = document.editform.wpTextbox1.value;
var startPos = article.indexOf("[[Kategorie");
var head = article.substr(0, startPos);
var tail = article.substr(startPos);
document.editform.wpTextbox1.value = head + nd + tail;
addToSummary("Normdaten eingefügt");
document.getElementById("wpWatchthis").checked = true;
checks();
}
function leo() {
if (document.editform.wpTextbox1.value.match(/IDName *=/)) {
alert("Artikel hat schon ID.");
return false;
}
var str = prompt("ID: ", "");
var match = str.match(/\/show\/(.+)\//);
var id = '';
if (match) {
id = match[1];
} else {
alert("Keine ID gefunden.");
return false;
}
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(/(\{\{Leopoldina\|[0-9]+ *\|)/, "$1IDName=" + id + "|");
addToSummary("IDName für Vorlage Leopoldina eingefügt");
document.getElementById("wpWatchthis").checked = true;
checks();
}
function addToSummary(text) {
var oldSummary = document.getElementById("wpSummary").value;
if (oldSummary == "") {
document.getElementById("wpSummary").value = text;
} else {
document.getElementById("wpSummary").value = oldSummary + " + " + text;
}
}
function removeFromSummary(text) {
var newSummary = document.getElementById("wpSummary").value.replace(" + " + text, "");
newSummary= newSummary.replace(text, "");
document.getElementById("wpSummary").value = newSummary;
}
function textSelect(inp, s, e) {
e = e || s;
if (inp.createTextRange) {
var r = inp.createTextRange();
r.collapse(true);
r.moveEnd('character', e);
r.moveStart('character', s);
r.select();
} else if (inp.setSelectionRange) {
inp.focus();
inp.setSelectionRange(s, e);
}
}
function syntaxTextMod() {
checks();
document.cookie = "articleName=" + mw.config.get('wgTitle');
document.cookie = "articleLength=" + document.editform.wpTextbox1.value.length;
// [[Benutzer:PerfektesChaos/js/WikisyntaxTextMod]]
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&ctype=text/javascript&maxage=604800&smaxage=86400", "text/javascript");
}
/*Quelle: http://www.geodatenzentrum.de/gdzwfs/gnb_aufruf1a (Bsp. '10°36'49" 50°31'43" 356 m')
oder GoogleMaps bzw. http://www.mcaviglia.ch/gmap/get_coor_ext.asp?l=de (Bsp. '50.5294129, 10.6156647') */
function geodaten() {
geodata = prompt("Neue Geodaten einfügen: ","");
var str1 = geodata.match(/(\d{1,2})°(\d{1,2})'(\d{1,2})\D+(\d{1,2})°(\d{1,2})'(\d{1,2})\D+/);
if (str1) {
ew = str1[1] + "/" + + str1[2] + "/" + str1[3] + "/E";
ns = str1[4] + "/" + + str1[5] + "/" + str1[6] + "/N";
var str2 = geodata.match(/\D+(\d{2,3}) m/);
if (str2) {
h = str2[1] + " <!-- Quelle: Geodatenzentrum -->";
}
} else {
var str1 = geodata.match(/(\d{1,2}\.\d{1,9})\D+(\d{1,2}\.\d{1,9})/);
if (str1) {
ew = str1[2];
ns = str1[1];
} else {
alert("Keine Geodaten gefunden.");
return false;
}
}
infobox = infobox.replace(/<NS>/, ns);
infobox = infobox.replace(/<EW>/, ew);
if (h!="") { //falls Höhe vorhanden
infobox = infobox.replace(/<H>/, h);
infobox = infobox.replace(/<HB>/, "DE-NN");
}
return true;
}
//Führt einige Syntaxchecks durch
function checks() {
var str = document.editform.wpTextbox1.value.match(/>\./);
if (str) {
alert("'>.' gefunden");
}
str = document.editform.wpTextbox1.value.match(/\ <ref/);
if (str) {
alert("' <ref' gefunden");
}
str = document.editform.wpTextbox1.value.match(/== Quellen ==/);
if (str) {
alert("'== Quellen ==' gefunden");
}
str = document.editform.wpTextbox1.value.match(/erstmalig/);
if (str) {
alert("'erstmalig' gefunden");
}
str = document.editform.wpTextbox1.value.match(/<!-- ==/);
if (str) {
alert("'<!-- ==' gefunden");
}
str = document.editform.wpTextbox1.value.match(/S\.\d/);
if (str) {
alert("'S\.\\d' gefunden");
}
str = document.editform.wpTextbox1.value.match(/<br/);
if (str) {
alert("'<br' gefunden");
}
str = document.editform.wpTextbox1.value.match(/\n\n\n/);
if (str) {
alert("'\\n\\n\\n' gefunden");
}
str = document.editform.wpTextbox1.value.match(/\{\{Navigationsleiste.*\{\{Navigationsleiste/);
if (str) {
alert("2x 'Navigationsleiste' gefunden");
}
}
//verschiebt erstes Bild im Fließtext in die Infobox
function moveBild() {
var str = document.editform.wpTextbox1.value.match(/\[\[Datei:(.*?)\|.*\|(.*?)\]\]/);
readDataFromInfobox();
if ((bild!="") || (bildb!="")) {
alert("Infobox hat schon ein Bild.");
return;
}
if (confirm("Bild '" + str[1] + "' (" + str[2] + ") in Infobox einfügen?\n")) {
bild = str[1];
bildb = str[2];
modifyInfobox();
var article = document.editform.wpTextbox1.value;
var startPos = article.indexOf("{{Infobox Ortsteil einer Gemeinde in Deutschland");
var endPos = article.indexOf("}}", startPos);
var head = article.substr(0, startPos);
var tail = article.substr(endPos + 2);
tail = tail.replace(/\[\[Datei:.*?\|.*?\|.*\]\]\n/, "");
document.editform.wpTextbox1.value = head + infobox + tail;
addToSummary("Bild in Infobox verschoben");
document.getElementById("wpWatchthis").checked = true;
}
}
function nc() {
//newName = prompt("Neuer Name: ","");
article = document.editform.wpTextbox1.value;
//document.editform.wpTextbox1.value = article.replace("{{NowCommons}}", "{{NowCommons|" + newName + "}}");
article = "{{NowCommons}}\n" + article;
article = article.replace("{{Bild-PD-alt-100}}", "{{Bild-PD-alt-100|Commons=ja}}");
article = article.replace("{{Bild-PD-alt}}", "{{Bild-PD-alt-100|Commons=ja}}");
document.editform.wpTextbox1.value = article;
addToSummary("{{NowCommons}}");
document.getElementById("wpWatchthis").checked = true;
}
function cl() {
var article = document.editform.wpTextbox1.value;
article = article.replace(/(\{\{dmoz)/i, "* $1");
document.editform.wpTextbox1.value = article;
addToSummary(" * wird aus {{dmoz}} entfernt, deswegen hier ein * hinzu");
document.getElementById("wpWatchthis").checked = true;
var n = article.search(/dmoz/i);
textSelect(document.editform.wpTextbox1, n-2, n+4);
}
function cc() {
var commonslink = "== Weblinks ==\n{{Commonscat}}\n";
article = document.editform.wpTextbox1.value;
var n = article.search("{{Commons");
if (n>-1) {
//alert("Article already contains Commons link!");
n = article.search("{{Commonscat}}");
textSelect(document.editform.wpTextbox1, n, n+14);
return;
}
n = article.search(/== *Weblinks *==/);
if (n>-1) {
article = article.replace(/== *Weblinks *==\n/, commonslink);
} else {
n = article.search(/== *Einzelnachweise *==/);
if (n>-1) {
article = article.replace(/== *Einzelnachweise *==/, commonslink + "\n== Einzelnachweise ==");
} else {
var startPos = document.editform.wpTextbox1.selectionStart;
if (startPos<100) {
n = article.length;
textSelect(document.editform.wpTextbox1, n-1, n-1);
//alert("Please move the cursor to the position where you want to add the Commons link!");
return;
}
var beforeStr = article.substring(0, startPos);
var afterStr = article.substring(startPos);
article = beforeStr + "\n" + commonslink + afterStr;
}
}
document.editform.wpTextbox1.value = article;
n = article.search("{{Commonscat}}");
textSelect(document.editform.wpTextbox1, n, n+14);
addToSummary("{{Commonscat}}");
document.getElementById("wpWatchthis").checked = true;
}
function startUp() {
//check cookie, if text size changed then add WikisyntaxTextMod-text
str = document.cookie.match(/articleName=(.*?);/);
if (str) {
if (str[1]==mw.config.get('wgTitle')) {
str = document.cookie.match(/articleLength=(.*?);/);
}
}
document.cookie = "articleName=";
document.cookie = "articleLength=";
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&ctype=text/javascript&maxage=604800&smaxage=86400", "text/javascript");
if (typeof $.fn.wikiEditor != 'undefined') {
// Execute on load
$( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'pretext': {
label: 'SC',
type: 'button',
icon: 'LINK.png',
action: {
type: 'callback',
execute: function() {
//cl();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'pretext': {
label: 'ND',
type: 'button',
icon: 'LINK.png',
action: {
type: 'callback',
execute: function() {
normData();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'pretext': {
label: 'BLD',
type: 'button',
icon: 'LINK.png',
action: {
type: 'callback',
execute: function() {
moveBild();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'pretext': {
label: 'NC',
type: 'button',
icon: 'LINK.png',
action: {
type: 'callback',
execute: function() {
nc();
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'pretext': {
label: 'CC',
type: 'button',
icon: 'LINK.png',
action: {
type: 'callback',
execute: function() {
leo();
}
}
}
}
} );
} );
}
}
$( '#wpTextbox1' ).on( 'wikiEditor-toolbar-doneInitialSections', function () {
startUp();
} );
// </nowiki>