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 9: Line 9:
   "refreshTime": 30,
   "refreshTime": 30,
   "renderVisibleOnly": true,
   "renderVisibleOnly": true,
   "refreshVisibleOnly": true,
   "refreshVisibleOnly": false,
   "sizes": [
   "sizes": [
     [
     [
Line 31: Line 31:
});
});


<script>
window['nitroAds'].createAd('banner-top-desktop-ipad', {
window['nitroAds'].createAd('banner-top-desktop-ipad', {
   "refreshLimit": 10,
   "refreshLimit": 10,
Line 67: Line 66:
   "refreshTime": 30,
   "refreshTime": 30,
   "renderVisibleOnly": true,
   "renderVisibleOnly": true,
   "refreshVisibleOnly": true,
   "refreshVisibleOnly": false,
   "sizes": [
   "sizes": [
     [
     [
Line 145: Line 144:


/* Ads in AnchorText Script*/
/* Ads in AnchorText Script*/
window['nitroAds'].createAd('AnchorText', {
window['nitroAds'].createAd('AnchorText-mobile', {
   "refreshLimit": 10,
   "refreshLimit": 10,
   "refreshTime": 30,
   "refreshTime": 30,
Line 151: Line 150:
   "anchor": "bottom",
   "anchor": "bottom",
   "anchorPersistClose": false,
   "anchorPersistClose": false,
  "report": {
   "mediaQuery": "(min-width: 320px) and (max-width: 767px)"
    "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
/* Video Script - Desktop and Ipad Only*/
window['nitroAds'].createAd('Videoplayer', {
window['nitroAds'].createAd('Videoplayer', {
   "format": "video-nc",
   "format": "video-nc",
   "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)",
   "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)",
   "video": {
   "video": {
     "float": "always",
     "float": "always",
Line 170: Line 163:
   }
   }
});
});
*/
 


/* Ad Block*/
/* Ad Block*/

Revision as of 05:28, 22 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' );*/

/*Banner-Top*/
window['nitroAds'].createAd('banner-top-mobile', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "renderVisibleOnly": true,
  "refreshVisibleOnly": false,
  "sizes": [
    [
      "320",
      "100"
    ],
    [
      "320",
      "50"
    ],
    [
      "300",
      "250"
    ],
    [
      "336",
      "280"
    ]
  ],
  "mediaQuery": "(min-width: 320px) and (max-width: 767px)"
});

window['nitroAds'].createAd('banner-top-desktop-ipad', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "renderVisibleOnly": true,
  "refreshVisibleOnly": false,
  "sizes": [
    [
      "728",
      "90"
    ],
    [
      "970",
      "90"
    ],
    [
      "970",
      "250"
    ],
    [
      "300",
      "250"
    ],
    [
      "336",
      "280"
    ]
  ],
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});

/*Banner-Bottom*/
window['nitroAds'].createAd('banner-bottom-mobile', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "renderVisibleOnly": true,
  "refreshVisibleOnly": false,
  "sizes": [
    [
      "320",
      "100"
    ],
    [
      "320",
      "50"
    ],
    [
      "300",
      "250"
    ],
    [
      "336",
      "280"
    ]
  ],
  "mediaQuery": "(min-width: 320px) and (max-width: 767px)"
});

window['nitroAds'].createAd('banner-bottom-desktop-ipad', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "renderVisibleOnly": true,
  "refreshVisibleOnly": false,
  "sizes": [
    [
      "728",
      "90"
    ],
    [
      "970",
      "90"
    ],
    [
      "970",
      "250"
    ],
    [
      "300",
      "250"
    ],
    [
      "336",
      "280"
    ]
  ],
  "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});


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

/* 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-mobile', {
  "refreshLimit": 10,
  "refreshTime": 30,
  "format": "anchor",
  "anchor": "bottom",
  "anchorPersistClose": false,
  "mediaQuery": "(min-width: 320px) and (max-width: 767px)"
});

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


/* Ad Block*/

Advertising: