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
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
revisionCounter.checkOnlyOnHistory = false;
addOnloadHook(function()
{
if(document.getElementById('toc'))
{
var toc = document.getElementById('toc').getElementsByTagName('ul')[0];
var toggleLink = document.getElementById('togglelink');
if ($("span.showtoc").size()>0)
{
if(toc.style.display != 'block')
{
changeText(toggleLink, tocHideText);
toc.style.display = 'block';
}
}
else if ($("span.hidetoc").size()>0)
{
if(toc.style.display != 'none')
{
changeText(toggleLink, tocShowText);
toc.style.display = 'none';
}
}
}
});
function ipsig()
{
if (this.options[this.options.selectedIndex].value == '%7B%7Bsubst%3AIP-Signaturnachtrag%7C%2B%7C%7C%7D%7D%2B')
$.get('http://www.stargate-wiki.de/w/api.php?action=query&format=json&titles='+urlencode(wgPageName)+'&prop=revisions&meta=siteinfo|allmessages&ammessages=jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec',
function(data)
{
var zeit =
new Date(Date.parse(data.query.pages[wgArticleId].revisions.timestamp).getTime()+data.query.general.timeoffset*60*1000);
document.getElementById("wpTextbox1").firstChild.nodeValue =
document.getElementById("wpTextbox1").firstChild.nodeValue.replace(/\{\{subst:IP-Signaturnachtrag\|\|\|\}\}/, "--[[Spezial:Beiträge/"+data.query.pages[wgArticleId].revisions.user+"|"+data.query.pages[wgArticleId].revisions.user+"]], "+wgUser+" <small>(Signatur nachgetragen von [[Benutzer:{{{3}}}|{{{3}}}]])</small>");
}, 'json');
}
addOnloadHook(function()
{
$("select[name='Auswahl']").each(function(i)
{
this.onchange = function()
{
insertTags(unescape(this.options[this.options.selectedIndex].value).split('+')[0],unescape(this.options[this.options.selectedIndex].value).split('+')[1],unescape(this.options[this.options.selectedIndex].value).split('+')[2]);
this.options.selectedIndex=0;
ipsig();
};
});
});