MediaWiki:Gadget-geonotice-list.js

From Porn Base Central
Revision as of 17:12, 16 August 2020 by PeaceDeadC (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
 * |_____________________________________________________________________________|
 *
 * Defines the list of notices to be shown to registered users based on their location
 *
 * Format is:
 *
 * ID: {
 *   begin: 'date',
 *   end: 'date',
 *   corners: [ [ lat, lon ], [ lat, lon ] ],
 *   text: 'message'
 * }
 *
 * There also is an option to use country instead of corners. For example:
 * ID: {
 *   begin: 'date',
 *   end: 'date',
 *   country: 'US',
 *   text: 'message'
 * }
 *
 * See http://dev.maxmind.com/geoip/legacy/codes/iso3166 for full list of country codes
 *
 * - There must be commas between the notices, but not after the last one.
 * - BE SURE TO ESCAPE YOUR APOSTROPHES (put a backslash in front of it, like this: \')! 
 * - Use [[meta:w:en:link|link]] format for internal links, so that they work properly (Note that the gadget does not support HTML URL encoding for special characters such as "%27" for an apostrophe (') )
 * on the other projects where the geonotice is displayed.
 * - Note that if a user is eligible for multiple notices on their watchlist, these will be displayed in reverse order to the listing here.
 * When selecting an ID, try to ensure that it has not been used in the previous 100 days
 */

window.GeoNotice = {};
window.GeoNotice.notices = {
	
HKWUG2017:
{  
   begin : '24 April 2017 00:00 UTC',
   end : '20 May 2017 00:00 UTC',
   country : 'HK',
   text : 'You are invited to join the [[meta:Wikimedia User Group Hong Kong|new user group for Hong Kong Wikimedians]].'
}

/*******************************************
 *             End of list.
 *           Edit only above!
 *
 *******************************************/
};