Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
The main server is currently down. We are running on a backup server, so editing and search functionality are temporarily disabled. Please check back in a few hours.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 10: Line 10:
   "renderVisibleOnly": true,
   "renderVisibleOnly": true,
   "refreshVisibleOnly": true,
   "refreshVisibleOnly": true,
  "delayLoading": true,
   "sizes": [
   "sizes": [
     [
     [
Line 41: Line 40:
     ]
     ]
   ]
   ]
  },
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});
});


Line 51: Line 48:
   "renderVisibleOnly": true,
   "renderVisibleOnly": true,
   "refreshVisibleOnly": true,
   "refreshVisibleOnly": true,
  "delayLoading": true,
   "sizes": [
   "sizes": [
     [
     [
Line 82: Line 78:
     ]
     ]
   ]
   ]
  },
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});
});


/* Ads in Content Script*/
/* Ads in Content Script*/

Revision as of 05:05, 21 November 2022

/* Any JavaScript here will be loaded for all users on every page load. importScript('User:Rillke/bigChunkedUpload.js');*/

/* Check For Ad Block
mw.loader.load( '/index.php?title=MediaWiki:Blockadblock.js&action==raw&ctype=text/javascript' );*/

/* Top Banner Script*/
window['nitroAds'].createAd('banner-top', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "renderVisibleOnly": true,
  "refreshVisibleOnly": true,
  "sizes": [
    [
      "728",
      "90"
    ],
    [
      "970",
      "90"
    ],
    [
      "970",
      "250"
    ],
    [
      "300",
      "250"
    ],
    [
      "336",
      "280"
    ],
    [
      "320",
      "50"
    ],
    [
      "320",
      "100"
    ]
  ]
});

/* Bottom Banner Script*/
window['nitroAds'].createAd('banner-bottom', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "renderVisibleOnly": true,
  "refreshVisibleOnly": true,
  "sizes": [
    [
      "728",
      "90"
    ],
    [
      "970",
      "90"
    ],
    [
      "970",
      "250"
    ],
    [
      "300",
      "250"
    ],
    [
      "336",
      "280"
    ],
    [
      "320",
      "50"
    ],
    [
      "320",
      "100"
    ]
  ]
});


/* Ads in Content Script*/
window['nitroAds'].createAd('mw-content-text', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "format": "article",
  "pageInterval": 2
});

/* Ads in interstitial Script*/
window['nitroAds'].createAd('interstitial', {
  "format": "interstitial",
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});

/* Ads in AnchorText Script*/
window['nitroAds'].createAd('AnchorText', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "format": "anchor",
  "anchor": "bottom",
  "anchorPersistClose": false,
  "report": {
    "enabled": true,
    "icon": false,
    "wording": "Report Ad",
    "position": "bottom-right-side"
  },
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});

/* Video Script
window['nitroAds'].createAd('Videoplayer', {
  "format": "video-nc",
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)",
  "video": {
    "float": "always",
    "mobile": "compact",
    "initialDelay": 1
  }
});
*/

Advertising: