MediaWiki:Gadget-geonotice-list.js

From Wikipedia, the free encyclopedia

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button. Firefox: hold down the Shift key while clicking Reload (or press Ctrl-Shift-R). Google Chrome and Safari users can just click the Reload button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === 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 = {

UK20170903: /* last 8 chars of ID is date of last amendment in CCYYMMDD format - change this if making major amendment or adding a meetup; leave alone if minor amendment or removing a meetup */
{
  begin: '2 September 2017 17:00 UTC', /* yesterday's date - amend only if the ID was altered */
  end: '17 September 2017 17:00 UTC', /* set this to date of last meetup shown */
  country: 'GB',
  text: 'Interested in having a chat with fellow Wikipedians? There is a forthcoming meetup in: [[m:Meetup/Oxford/54|Oxford, 17 September]]!' /* try to limit this to four meetups, no more than one per town/city, and no more than four weeks in advance; shorten month names to three letters if four meetups are shown */
},

Annualnyc17:
{ begin : '11 September 2017 0:00 UTC',
  end : '28 September 2017 0:00 UTC',
  corners : [ [42,-76], [40,-72] ],
  text : "Join the [[Wikipedia:Meetup/NYC|WikiWednesday Salon / Chapter Annual Meeting NYC]] by Union Square at 7PM on Sep 14!"
}

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