MediaWiki:Gadget-geonotice-list.js: Difference between revisions
Jump to navigation
Jump to search
imported>PeaceDeadC m (1 revision imported) |
PeaceDeadC (talk | contribs) m (1 revision imported) |
Latest revision as of 17:12, 16 August 2020
/* _____________________________________________________________________________
* | |
* | === 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!
*
*******************************************/
};