MediaWiki:Common.js: Ózgerisler arasındaǵı ayırmashılıq
Content deleted Content added
Өңдеу түйіні жоқ |
update |
||
Qatar No 1:
/*
== Global configuration ==
Line 20 ⟶ 19:
*/
var isMSIE = ((navigator.appName == 'Microsoft Internet Explorer' ) > 0);
var isNoSpecial = (mw.config.get('wgCanonicalNamespace') != "Special");
var isUpload = ((mw.config.get('wgCanonicalNamespace') == "Special") && (mw.config.get('wgCanonicalSpecialPageName') == "Upload"));
var isEdit = ((document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) && !document.getElementById('ca-viewsource') > 0);
Line 28 ⟶ 27:
// Add Main page layout fix
if mw.config.get('wgTitle') == 'Bas bet') { importScript( "MediaWiki:Mainpage.js" ); }
// Add editing stuff (toolbar buttons, template pull-down menu etc) for registered users
Line 48 ⟶ 47:
// uploadwizard_newusers Switches in a message for non-autoconfirmed users at [[Wikipedia:Aploud qılıw]]
function uploadwizard_newusers() {
if (mw.config.get('wgNamespaceNumber') == 4 && mw.config.get('wgTitle') == "Aploud qılıw" && mw.config.get('wgAction') == "view") {
var oldDiv = document.getElementById("autoconfirmedusers"),
newDiv = document.getElementById("newusers");
if (oldDiv && newDiv) {
for (i = 0; i < mw.config.get('wgUserGroups').length; i++) {
if (mw.config.get('wgUserGroups')[i] == "autoconfirmed") {
oldDiv.style.display = "block";
newDiv.style.display = "none";
Line 65 ⟶ 64:
}
}
// WikiMiniAtlas
importScriptURI(metaBase+"/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400")▼
/*
▲importScriptURI(
*/
/*
Line 131 ⟶ 110:
for ( var i = 0; i < Tables.length; i++ ) {
if (
/* only add button and increment count if there is a header row to work with */
Line 167 ⟶ 146:
for ( var i = 0; i < tableIndex; i++ ) {
if (
collapseTable( i );
}
Line 173 ⟶ 152:
}
/*
Line 200 ⟶ 179:
NavChild = NavChild.nextSibling
) {
if (
NavChild.style.display = 'none';
}
if (
NavChild.style.display = 'none';
}
Line 216 ⟶ 195:
NavChild = NavChild.nextSibling
) {
if (
NavChild.style.display = 'block';
}
if (
NavChild.style.display = 'block';
}
Line 238 ⟶ 217:
) {
// if found a navigation bar
if (
indexNavigationBar++;
Line 252 ⟶ 231:
NavChild = NavChild.nextSibling
) {
if ( $(NavChild).hasClass(
if (NavChild.style.display == 'none') {
NavToggleText = document.createTextNode(NavigationBarShow);
Line 267 ⟶ 246:
j++
) {
if
NavFrame.childNodes[j].appendChild(NavToggle);
}
Line 276 ⟶ 255:
}
/*
Line 287 ⟶ 266:
}
/*
Line 310 ⟶ 289:
}
// Configuration for "star" logo at the top of Featured Articles
Line 324 ⟶ 303:
}
|