Benutzer:CF/monobook.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
CF (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
CF (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 24: | Zeile 24: | ||
} | } | ||
} | } | ||
}); | |||
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 += "ipsig()"; | |||
}); | |||
}); | }); | ||
Version vom 18. Juli 2010, 02:46 Uhr
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 += "ipsig()";
});
});