CINXE.COM
User:Ohconfucius/script/MOSNUM dates - Wikipedia
<!doctype html> <html class="client-nojs skin-theme-clientpref-day mf-expand-sections-clientpref-0 mf-font-size-clientpref-small mw-mf-amc-clientpref-0" lang="en" dir="ltr"> <head> <base href="https://en.m.wikipedia.org/wiki/Wikipedia:MOSNUMscript"> <meta charset="UTF-8"> <title>User:Ohconfucius/script/MOSNUM dates - Wikipedia</title> <script>(function(){var className="client-js skin-theme-clientpref-day mf-expand-sections-clientpref-0 mf-font-size-clientpref-small mw-mf-amc-clientpref-0";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"7abaed88-e809-4564-b4b8-16ca967388c7","wgCanonicalNamespace":"User","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":2,"wgPageName":"User:Ohconfucius/script/MOSNUM_dates","wgTitle":"Ohconfucius/script/MOSNUM dates","wgCurRevisionId":1240611462, "wgRevisionId":1240611462,"wgArticleId":28829931,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"User:Ohconfucius/script/MOSNUM_dates","wgRelevantArticleId":28829931,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRelevantUserName":"Ohconfucius","wgRedirectedFrom":"Wikipedia:MOSNUMscript","wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFMode":"stable","wgMFAmc":false,"wgMFAmcOutreachActive":false,"wgMFAmcOutreachUserEligible":false,"wgMFLazyLoadImages":true,"wgMFEditNoticesFeatureConflict":false, "wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgMFIsSupportedEditRequest":true,"wgMFScriptPath":"","wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgInternalRedirectTargetUrl":"/wiki/User:Ohconfucius/script/MOSNUM_dates","wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":true,"wgEditSubmitButtonLabelPublish":true,"wgSectionTranslationTargetLanguages":["ace","ady","alt","am","ami","an","ang","ann","anp","ar","ary","arz","as","ast","av","avk","awa","ay","az","azb","ba","ban","bar","bbc","bcl","bdr","be","bew","bg","bho","bi","bjn","blk","bm","bn","bo","bpy","br","bs","btm","bug","ca","cdo","ce","ceb","ch","chr","ckb","co","cr","crh","cs","cu","cy","da","dag","de","dga","din","diq","dsb","dtp","dv","dz","ee","el","eml","eo","es","et","eu","fa","fat","ff","fi","fj","fo","fon","fr","frp","frr","fur","fy","gag","gan","gcr","gl","glk","gn","gom","gor","gpe","gu","guc","gur","guw","gv","ha","hak","haw","he","hi", "hif","hr","hsb","ht","hu","hy","hyw","ia","iba","ie","ig","igl","ilo","io","is","it","iu","ja","jam","jv","ka","kaa","kab","kbd","kbp","kcg","kg","kge","ki","kk","kl","km","kn","ko","koi","krc","ks","ku","kus","kv","kw","ky","lad","lb","lez","lg","li","lij","lld","lmo","ln","lo","lt","ltg","lv","mad","mai","map-bms","mdf","mg","mhr","mi","min","mk","ml","mn","mni","mnw","mos","mr","mrj","ms","mt","mwl","my","myv","mzn","nah","nan","nap","nb","nds","nds-nl","ne","new","nia","nl","nn","nqo","nr","nso","ny","oc","om","or","os","pa","pag","pam","pap","pcd","pcm","pdc","pl","pms","pnb","ps","pt","pwn","qu","rm","rn","ro","rsk","rue","rup","rw","sa","sah","sat","sc","scn","sco","sd","se","sg","sgs","sh","shi","shn","si","sk","skr","sl","sm","smn","sn","so","sq","sr","srn","ss","st","stq","su","sv","sw","szl","ta","tay","tcy","tdd","te","tet","tg","th","ti","tk","tl","tly","tn","to","tpi","tr","trv","ts","tt","tum","tw","ty","tyv","udm","ur","uz","ve","vec","vep","vi","vls","vo","vro","wa", "war","wo","wuu","xal","xh","xmf","yi","yo","yue","za","zgh","zh","zu"],"isLanguageSearcherCXEntrypointEnabled":false,"mintEntrypointLanguages":["ace","ast","azb","bcl","bjn","bh","crh","ff","fon","ig","is","ki","ks","lmo","min","sat","ss","tn","vec"],"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false,"wgMinervaPermissions":{"watchable":true,"watch":false},"wgMinervaFeatures":{"beta":false,"donate":true,"mobileOptionsLink":true,"categories":false,"pageIssues":true,"talkAtTop":true,"historyInPageActions":false,"overflowSubmenu":false,"tabsOnSpecials":true,"personalMenu":false,"mainMenuExpanded":false,"echo":true,"nightMode":true},"wgMinervaDownloadNamespaces":[0]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready" ,"user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","skins.minerva.styles":"ready","skins.minerva.content.styles.images":"ready","mediawiki.hlist":"ready","skins.minerva.codex.styles":"ready","skins.minerva.icons":"ready","skins.minerva.amc.styles":"ready","ext.wikimediamessages.styles":"ready","mobile.init.styles":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.pygments.view","mediawiki.page.media","site","mediawiki.page.ready","skins.minerva.scripts","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","mobile.init","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.cx.eventlogging.campaigns","ext.cx.entrypoints.languagesearcher.init","mw.externalguidance.init","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.pygments%2CwikimediaBadges%7Cext.wikimediamessages.styles%7Cmediawiki.hlist%7Cmobile.init.styles%7Cskins.minerva.amc.styles%7Cskins.minerva.codex.styles%7Cskins.minerva.content.styles.images%7Cskins.minerva.icons%2Cstyles&only=styles&skin=minerva"> <script async src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=minerva"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=minerva"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="noindex,follow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="theme-color" content="#eaecf0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0"> <meta property="og:title" content="User:Ohconfucius/script/MOSNUM dates - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="manifest" href="/w/api.php?action=webapp-manifest"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/User:Ohconfucius/script/MOSNUM_dates"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="dns-prefetch" href="//meta.wikimedia.org"> <link rel="dns-prefetch" href="//login.wikimedia.org"> <meta http-equiv="X-Translated-By" content="Google"> <meta http-equiv="X-Translated-To" content="en"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.1hbgkFx4Qn8.O/am=DgY/d=1/rs=AN8SPfqlmAPxwfG457BPbRXwNq39oSMGHg/m=corsproxy" data-sourceurl="https://en.m.wikipedia.org/wiki/Wikipedia:MOSNUMscript"></script> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.1hbgkFx4Qn8.O/am=DgY/d=1/exm=corsproxy/ed=1/rs=AN8SPfqlmAPxwfG457BPbRXwNq39oSMGHg/m=phishing_protection" data-phishing-protection-enabled="false" data-forms-warning-enabled="true" data-source-url="https://en.m.wikipedia.org/wiki/Wikipedia:MOSNUMscript"></script> <meta name="robots" content="none"> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-2 ns-subject mw-editable page-User_Ohconfucius_script_MOSNUM_dates rootpage-User_Ohconfucius stable skin-minerva action-view skin--responsive mw-mf-amc-disabled mw-mf"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.1hbgkFx4Qn8.O/am=DgY/d=1/exm=corsproxy,phishing_protection/ed=1/rs=AN8SPfqlmAPxwfG457BPbRXwNq39oSMGHg/m=navigationui" data-environment="prod" data-proxy-url="https://en-m-wikipedia-org.translate.goog" data-proxy-full-url="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-source-url="https://en.m.wikipedia.org/wiki/Wikipedia:MOSNUMscript" data-source-language="auto" data-target-language="en" data-display-language="en-GB" data-detected-source-language="en" data-is-source-untranslated="false" data-source-untranslated-url="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.m.wikipedia.org/wiki/Wikipedia:MOSNUMscript&anno=2" data-client="tr"></script> <div id="mw-mf-viewport"> <div id="mw-mf-page-center"><a class="mw-mf-page-center__mask" href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#"></a> <header class="header-container header-chrome"> <div class="minerva-header"> <nav class="navigation-drawer toggle-list view-border-box"><input type="checkbox" id="main-menu-input" class="toggle-list__checkbox" role="button" aria-haspopup="true" aria-expanded="false" aria-labelledby="mw-mf-main-menu-button"> <label role="button" for="main-menu-input" id="mw-mf-main-menu-button" aria-hidden="true" data-event-name="ui.mainmenu" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet toggle-list__toggle"> <span class="minerva-icon minerva-icon--menu"></span> <span></span> </label> <div id="mw-mf-page-left" class="menu view-border-box"> <ul id="p-navigation" class="toggle-list__list"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--home" href="https://en-m-wikipedia-org.translate.goog/wiki/Main_Page?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-mw="interface"> <span class="minerva-icon minerva-icon--home"></span> <span class="toggle-list-item__label">Home</span> </a></li> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--random" href="https://en-m-wikipedia-org.translate.goog/wiki/Special:Random?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-mw="interface"> <span class="minerva-icon minerva-icon--die"></span> <span class="toggle-list-item__label">Random</span> </a></li> <li class="toggle-list-item skin-minerva-list-item-jsonly"><a class="toggle-list-item__anchor menu__item--nearby" href="https://en-m-wikipedia-org.translate.goog/wiki/Special:Nearby?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-event-name="menu.nearby" data-mw="interface"> <span class="minerva-icon minerva-icon--mapPin"></span> <span class="toggle-list-item__label">Nearby</span> </a></li> </ul> <ul id="p-personal" class="toggle-list__list"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--login" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=Special:UserLogin&returnto=User:Ohconfucius/script/MOSNUM+dates&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-event-name="menu.login" data-mw="interface"> <span class="minerva-icon minerva-icon--logIn"></span> <span class="toggle-list-item__label">Log in</span> </a></li> </ul> <ul id="pt-preferences" class="toggle-list__list"> <li class="toggle-list-item skin-minerva-list-item-jsonly"><a class="toggle-list-item__anchor menu__item--settings" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=Special:MobileOptions&returnto=User:Ohconfucius/script/MOSNUM+dates&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-event-name="menu.settings" data-mw="interface"> <span class="minerva-icon minerva-icon--settings"></span> <span class="toggle-list-item__label">Settings</span> </a></li> </ul> <ul id="p-donation" class="toggle-list__list"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--donate" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source%3Ddonate%26utm_medium%3Dsidebar%26utm_campaign%3DC13_en.wikipedia.org%26uselang%3Den%26utm_key%3Dminerva" data-event-name="menu.donate" data-mw="interface"> <span class="minerva-icon minerva-icon--heart"></span> <span class="toggle-list-item__label">Donate</span> </a></li> </ul> <ul class="hlist"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--about" href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:About?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-mw="interface"> <span class="toggle-list-item__label">About Wikipedia</span> </a></li> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--disclaimers" href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:General_disclaimer?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-mw="interface"> <span class="toggle-list-item__label">Disclaimers</span> </a></li> </ul> </div><label class="main-menu-mask" for="main-menu-input"></label> </nav> <div class="branding-box"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Main_Page?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"> <span><img src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" alt="Wikipedia" width="120" height="18" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <form action="/w/index.php" method="get" class="minerva-search-form"> <div class="search-box"><input type="hidden" name="title" value="Special:Search"> <input class="search skin-minerva-search-trigger" id="searchInput" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f"> <span class="search-box-icon-overlay"><span class="minerva-icon minerva-icon--search"></span> </span> </div><button id="searchIcon" class="cdx-button cdx-button--size-large cdx-button--icon-only cdx-button--weight-quiet skin-minerva-search-trigger"> <span class="minerva-icon minerva-icon--search"></span> <span>Search</span> </button> </form> <nav class="minerva-user-navigation" aria-label="User navigation"> </nav> </div> </header> <main id="content" class="mw-body"> <div class="banner-container"> <div id="siteNotice"></div> </div> <div class="pre-content heading-holder"> <div class="page-heading"> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">User</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Ohconfucius/script/MOSNUM dates</span></h1> <div class="tagline"></div> </div> <ul id="p-associated-pages" class="minerva__tab-container"> <li class="minerva__tab selected"><a class="minerva__tab-text" href="https://en-m-wikipedia-org.translate.goog/wiki/User:Ohconfucius/script/MOSNUM_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" rel="" data-event-name="tabs.subject">User page</a></li> <li class="minerva__tab "><a class="minerva__tab-text" href="https://en-m-wikipedia-org.translate.goog/wiki/User_talk:Ohconfucius/script/MOSNUM_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" rel="discussion" data-event-name="tabs.talk">Talk</a></li> </ul> <nav class="page-actions-menu"> <ul id="p-views" class="page-actions-menu__list"> <li id="language-selector" class="page-actions-menu__list-item"><a role="button" href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-mw="interface" data-event-name="menu.languages" title="Language" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet language-selector disabled"> <span class="minerva-icon minerva-icon--language"></span> <span>Language</span> </a></li> <li id="page-actions-watch" class="page-actions-menu__list-item"><a role="button" id="ca-watch" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=Special:UserLogin&returnto=User:Ohconfucius/script/MOSNUM+dates&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-event-name="menu.watch" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet menu__item--page-actions-watch"> <span class="minerva-icon minerva-icon--star"></span> <span>Watch</span> </a></li> <li id="page-actions-edit" class="page-actions-menu__list-item"><a role="button" id="ca-edit" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-event-name="menu.edit" data-mw="interface" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet edit-page menu__item--page-actions-edit"> <span class="minerva-icon minerva-icon--edit"></span> <span>Edit</span> </a></li> </ul> </nav><!-- version 1.0.2 (change every time you update a partial) --> <div id="mw-content-subtitle"> <div class="subpages"> < <bdi dir="ltr"><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Ohconfucius?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Ohconfucius">User:Ohconfucius</a></bdi> | <bdi dir="ltr"><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Ohconfucius/script?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Ohconfucius/script">script</a></bdi> </div><span class="mw-redirectedfrom">(Redirected from <a href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=Wikipedia:MOSNUMscript&redirect=no&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Wikipedia:MOSNUMscript">Wikipedia:MOSNUMscript</a>)</span> </div> </div> <div id="bodyContent" class="content"> <div id="mw-content-text" class="mw-body-content"> <script>function mfTempOpenSection(id){var block=document.getElementById("mf-section-"+id);block.className+=" open-block";block.previousSibling.className+=" open-block";}</script> <div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"> <section class="mf-section-0" id="mf-section-0"> <style data-mw-deduplicate="TemplateStyles:r1238436933">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style> <table class="plainlinks ombox ombox-notice" role="presentation" style="background-color: lightblue;border: 1px solid royalblue;font-weight: bold;margin: 10px;padding: 20px;text-align: left;extra styles, like border-radius, etc..."> <tbody> <tr> <td class="mbox-empty-cell"></td> <td class="mbox-text">Please leave a <span style="color: ;"><span class="noprint plainlinks" title="Edit Wikipedia:Date formattings/script/MOSNUM dates/bugs"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:Date_formattings/script/MOSNUM_dates/bugs%26action%3Dedit%26section%3Dnew">bug report or suggestion</a></span></span>.</td> </tr> </tbody> </table> <style data-mw-deduplicate="TemplateStyles:r1252059228">.mw-parser-output .module-shortcutboxplain{float:right;margin:0 0 0 1em;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-base,#fff);padding:0.3em 0.6em 0.2em 0.6em;text-align:center;font-size:85%}.mw-parser-output .module-shortcutboxleft{float:left;margin:0 1em 0 0}.mw-parser-output .module-shortcutlist{display:inline-block;border-bottom:1px solid var(--border-color-base,#a2a9b1);margin-bottom:0.2em}.mw-parser-output .module-shortcutboxplain ul{font-weight:bold}.mw-parser-output .module-shortcutanchordiv{position:relative;top:-3em}.mw-parser-output li .module-shortcutanchordiv{float:right}.mw-parser-output .mbox-imageright .module-shortcutboxplain{padding:0.4em 1em 0.4em 1em;line-height:1.3;margin:0}</style> <div class="module-shortcutanchordiv"> <span id="WP:Mosnumscript"></span><span id="WP:MOSNUMscript"></span> </div> <div class="module-shortcutboxplain noprint" role="note"> <div class="module-shortcutlist"> <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:Shortcut?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Wikipedia:Shortcut">Shortcuts</a> </div> <style data-mw-deduplicate="TemplateStyles:r1126788409">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style> <div class="plainlist"> <ul> <li><span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:Mosnumscript%26redirect%3Dno">WP:Mosnumscript</a></span></li> <li><span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:MOSNUMscript%26redirect%3Dno">WP:MOSNUMscript</a></span></li> </ul> </div> </div> <figure typeof="mw:File/Thumb"> <a href="https://en-m-wikipedia-org.translate.goog/wiki/File:Update_screenshot_for_activating_MOSNUM_dates.png?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/en/thumb/9/98/Update_screenshot_for_activating_MOSNUM_dates.png/280px-Update_screenshot_for_activating_MOSNUM_dates.png" decoding="async" width="280" height="625" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/en/9/98/Update_screenshot_for_activating_MOSNUM_dates.png 1.5x" data-file-width="342" data-file-height="764"></a> <figcaption> Sidebar location of the script buttons after you have clicked on the 'Tools' triangle </figcaption> </figure> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"> <input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none"> <div class="toctitle" lang="en" dir="ltr"> <h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span> </div> <ul> <li class="toclevel-1 tocsection-1"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Overview"><span class="tocnumber">1</span> <span class="toctext">Overview</span></a></li> <li class="toclevel-1 tocsection-2"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#History"><span class="tocnumber">2</span> <span class="toctext">History</span></a></li> <li class="toclevel-1 tocsection-3"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Detailed_functional_overview"><span class="tocnumber">3</span> <span class="toctext">Detailed functional overview</span></a> <ul> <li class="toclevel-2 tocsection-4"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#How_it_works"><span class="tocnumber">3.1</span> <span class="toctext">How it works</span></a></li> <li class="toclevel-2 tocsection-5"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Optional_auto-formatting_citation_template_dates"><span class="tocnumber">3.2</span> <span class="toctext">Optional auto-formatting citation template dates</span></a></li> <li class="toclevel-2 tocsection-6"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Credits"><span class="tocnumber">3.3</span> <span class="toctext">Credits</span></a></li> </ul></li> <li class="toclevel-1"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Installing_the_script"><span class="tocnumber">4</span> <span class="toctext">Installing the script</span></a></li> <li class="toclevel-1 tocsection-7"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Actions_and_test"><span class="tocnumber">5</span> <span class="toctext">Actions and test</span></a> <ul> <li class="toclevel-2 tocsection-8"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Format_consistency"><span class="tocnumber">5.1</span> <span class="toctext">Format consistency</span></a></li> <li class="toclevel-2 tocsection-9"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Strong_national_ties_to_a_topic"><span class="tocnumber">5.2</span> <span class="toctext">Strong national ties to a topic</span></a></li> <li class="toclevel-2 tocsection-10"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Retaining_the_existing_format"><span class="tocnumber">5.3</span> <span class="toctext">Retaining the existing format</span></a></li> <li class="toclevel-2 tocsection-11"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Test_pages"><span class="tocnumber">5.4</span> <span class="toctext">Test pages</span></a></li> <li class="toclevel-2 tocsection-12"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Known_limitations"><span class="tocnumber">5.5</span> <span class="toctext">Known limitations</span></a></li> <li class="toclevel-2 tocsection-13"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Known_conflicts"><span class="tocnumber">5.6</span> <span class="toctext">Known conflicts</span></a> <ul> <li class="toclevel-3 tocsection-14"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Other_Wiki_scripts_or_gadgets"><span class="tocnumber">5.6.1</span> <span class="toctext">Other Wiki scripts or gadgets</span></a></li> <li class="toclevel-3 tocsection-15"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Browsers"><span class="tocnumber">5.6.2</span> <span class="toctext">Browsers</span></a></li> </ul></li> </ul></li> <li class="toclevel-1 tocsection-16"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Disclaimers"><span class="tocnumber">6</span> <span class="toctext">Disclaimers</span></a></li> <li class="toclevel-1 tocsection-17"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#See_also"><span class="tocnumber">7</span> <span class="toctext">See also</span></a></li> </ul> </div> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(1)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="Overview">Overview</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=1&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Overview" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-1 collapsible-block" id="mf-section-1"> <p>This script delinks all dates and date fragments and converts them all to the same format, either dd mmm yyyy ("14 July 1978") or mmm dd, yyyy ("July 14, 1978").</p> <p>MOSNUM allows one other format to be used in articles – but only in tables and reference sections.</p> <p><i><b>NOTE:</b> Functions converting dates within citation templates has been withdrawn now that <a href="https://en-m-wikipedia-org.translate.goog/wiki/MediaWiki?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="MediaWiki">MW</a> software engine renders date formats automatically</i> There are modes that allow the user to select whether to treat body dates only or body and reference sections:</p> <ol> <li><b>all dates to dmy</b> – dates in the body of the text as well as in the reference sections are converted to "14 July 1978" or similar.</li> <li><b>all dates to mdy</b> – as above. dates are converted to "July 14, 1978" or similar.</li> <li><b><s>Big endian ref dates</s></b> button now disabled. Users are invited to manually add <code class="tpl-para" style="word-break:break-word;">|cs1-dates=</code> parameter to <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_dmy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use dmy dates">Use dmy dates</a><span class="nowrap">}}</span> or <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_mdy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use mdy dates">Use mdy dates</a><span class="nowrap">}}</span> causing applicable dates to be rendered in <i>2024-10-26</i> YMD format</li> </ol> <p>In addition, there are the following modes to convert slash or contracted dates into the desired format:</p> <ol> <li><b>US-slash dates</b> – converts dates that use slash or decimal separators in formats commonly used in the US into <b>mdy</b> dates <i>viz</i>: <code>mm/dd/yy</code>, <code>mm/dd/yyyy</code>, <code>mm.dd.yy</code> or <code>mm.dd.yyyy</code></li> <li><b>UK-slash dates</b> – converts dates that use slash or decimal separators in formats commonly used in the UK, Europe and elsewhere into <b>dmy</b> dates <i>viz</i>: <code>dd/mm/yy</code>, <code>dd/mm/yyyy</code>, <code>dd.mm.yy</code> or <code>dd.mm.yyyy</code></li> </ol> <p><i>* <b>Note</b>: In these latter 2 cases, false positives are more likely because the protection mechanism of the script is bypassed, meaning the regex will act on dates in instances other than where the <code class="tpl-para" style="word-break:break-word;">|date=</code> parameter is used</i></p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(2)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="History">History</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=2&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: History" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-2 collapsible-block" id="mf-section-2"> <p>Lightmouse initially created a script to deal with a number of general formatting issues, and date alignment was one such function. I used it and often gave feedback and bug reports. Seeing the need to work on the diversity of date formats and date situations that are seen here on Wikipedia, I created an independent script targeted at dates with some help and advice from Lightmouse.</p> <p>Over the years, this script has been built on and refined. In April 2012, the engine underwent a major rework by <a href="https://en-m-wikipedia-org.translate.goog/wiki/User:1exec1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="User:1exec1">1exec1</a> (<a href="https://en-m-wikipedia-org.translate.goog/wiki/User_talk:1exec1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User talk:1exec1">talk</a> <b>·</b> <a href="https://en-m-wikipedia-org.translate.goog/wiki/Special:Contributions/1exec1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:Contributions/1exec1">contribs</a>), who built it and incorporated a new regex_worker function that allows more effective treatment of date fragments; there is better protection of strings that ought not to be modified by the script. In May, the new improved version of the script went 'live'.</p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(3)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="Detailed_functional_overview">Detailed functional overview</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=3&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Detailed functional overview" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-3 collapsible-block" id="mf-section-3"> <p>The dates script is at <b><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Ohconfucius/script/MOSNUM_dates.js?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Ohconfucius/script/MOSNUM dates.js">User:Ohconfucius/script/MOSNUM dates.js</a></b>.</p> <ul> <li>It is aimed to make displayed dates fully compatible with <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:Manual_of_Style_(dates_and_numbers)?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Wikipedia:Manual of Style (dates and numbers)">Wikipedia:Manual of Style (dates and numbers)</a> (WP:MOSNUM)</li> <li>It ensures uniform presentation of dates within any given article. As such, it: <ul> <li>delinks all dates and date fragments, including day-month strings, days, months, decades, centuries,</li> <li>converts all these date fragments to the same format, either dd mmm yyyy or mmm dd, yyyy, at the option of the user</li> <li>removes ordinal suffixes and constructions such as '<span style="color:orange;">the</span> 5<span style="color:orange;">th of</span> September', 'December 25<span style="color:orange;">th</span>' or 'October <span style="color:orange;">of</span> 2003'</li> <li>adds commas where necessary (e.g. February 28, 2001)</li> <li>removes redundant commas (e.g. July<span style="color:orange;">,</span> 1997; 28 February<span style="color:orange;">,</span> 2001)</li> </ul></li> <li>It removes direct links to dates and most forms of piped date links</li> <li>It removes <s>year linking templates (such as <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=Template:Scy&action=edit&redlink=1&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="new" title="Template:Scy (page does not exist)">scy</a><span class="nowrap">}}</span>, <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:By?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Template:By">by</a><span class="nowrap">}}</span>), and</s> links to 'year-in X' where piped from years (such as [[1984 in literature|1984]])</li> <li>It converts other often used (but not MOSNUM-compliant) date formats within the references section, such as dd-mm-yyyy or dd-mmm-yyyy to the chosen prevailing format used in the rest of the article.</li> <li>It makes certain fixes that may be identified as <a href="https://en-m-wikipedia-org.translate.goog/wiki/Category:CS1_errors:_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:CS1 errors: dates">CS1 dates errors</a></li> <li><s>It also allows users to choose to convert dates within only the body of the article, as is permitted for reference sections (where yyyy-mm-dd dates are common) to have different dates, or throughout the article.</s> Now disabled. CS1 now manages the date rendering by <a href="https://en-m-wikipedia-org.translate.goog/wiki/Help:Citation_Style_1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Auto-formatting_citation_template_dates" title="Help:Citation Style 1">auto-formatting citation template dates</a> using parameters within the <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_dmy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use dmy dates">use dmy dates</a><span class="nowrap">}}</span> and <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_mdy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use mdy dates">use mdy dates</a><span class="nowrap">}}</span> templates, so this can be used to fine-tune the rendering.</li> </ul> <p><br> The script adds or updates a non-displaying template <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_mdy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use mdy dates">use mdy dates</a><span class="nowrap">}}</span> or <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_dmy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use dmy dates">use dmy dates</a><span class="nowrap">}}</span> depending on the conversion used. This tagging allows for WM software engine to render date formats automatically in conformity with tagged format). It also facilitates future maintenance by bot by script <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:AWB?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Wikipedia:AWB">AWB</a>.</p> <p>The script will achieve overall consistency of the <b>format</b> of the date. The format and syntax of citations were modelled after the way reference sections are rendered when using the most common citation templates – <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Cite_news?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Cite news">cite news</a><span class="nowrap">}}</span> and <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Cite_web?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Cite web">cite web</a><span class="nowrap">}}</span>; I try to stick to syntax in {{cite web}} where 'Retrieved' is capitalised and preceded by a full-stop.</p> <p>Although the MediaWiki software interprets <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_dmy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use dmy dates">use dmy dates</a><span class="nowrap">}}</span> or <span class="nowrap">{{</span><a href="https://en-m-wikipedia-org.translate.goog/wiki/Template:Use_mdy_dates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Template:Use mdy dates">use mdy dates</a><span class="nowrap">}}</span> templates, allowing dates and access dates within citation templates to be automatically formatted, errors there and elsewhere may still require correction. The script takes care of that.</p> <div class="mw-heading mw-heading3"> <h3 id="How_it_works">How it works</h3><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=4&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: How it works" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>The script is configured so that dates are stored as an array. The given <a href="https://en-m-wikipedia-org.translate.goog/wiki/Regex?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Regex">regex</a> and substitution strings can contain <a href="https://en-m-wikipedia-org.translate.goog/wiki/Help:Magic_words?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:Magic words">magic words</a> that specify what date format the routine should accept and to what date format the routine should convert the date to.</p> <p>There is a mechanism in place to protect a wide range of strings that ought to be immutable: such as images, categories, urls; text within blockquotes and double quotes; text within certain parameters (e.g. <code>|title=</code>). Occasionally, due to the proliferation of templates across en.wp, some may be the subject of unintended changes that have not been anticipated in the script regexes.</p> <p>As also mentioned <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSNUMscript?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Known_limitations">below</a>, the actions of the protection mechanism can be revealed in the event of the script stalling, and substitution markers may appear in the edit window. When this occurs, the user should abandon the action, reopen the edit window and reperform the edit.</p> <div class="mw-heading mw-heading3"> <h3 id="Optional_auto-formatting_citation_template_dates">Optional auto-formatting citation template dates</h3><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=5&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Optional auto-formatting citation template dates" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>Script default is without parameter, in which case date is aligned to the prevailing style, dmy or mdy.</p> <p><a href="https://en-m-wikipedia-org.translate.goog/wiki/Help:Citation_Style_1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:Citation Style 1">Citation Style 1</a> and <a href="https://en-m-wikipedia-org.translate.goog/wiki/Help:Citation_Style_2?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:Citation Style 2">2</a> (collectively cs1|2) templates automatically render dates (<code class="tpl-para" style="word-break:break-word;">|date=</code>, <code class="tpl-para" style="word-break:break-word;">|access-date=</code>, <code class="tpl-para" style="word-break:break-word;">|archive-date=</code>, etc) in the style specified by this template. Because it is allowed by <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:MOSDATES?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Wikipedia:MOSDATES">WP:MOSDATES</a>, the cs1|2 templates can automatically format dates in a variety of styles. Editors may choose how cs1|2 templates render dates by the use of <code class="tpl-para" style="word-break:break-word;">|cs1-dates=<<var style="padding-right: 1px;">keyword</var>></code>.</p> <table class="wikitable"> <caption> Acceptable <code>|cs1-dates=</code> keywords </caption> <tbody> <tr> <th scope="col">Keyword</th> <th scope="col">Definition</th> </tr> <tr> <th scope="row"><code>l</code></th> <td rowspan="2">long-form publication and access- / archive-dates;<br> this is the default case when <code class="tpl-para" style="word-break:break-word;border: none; background-color: inherit; color: inherit;">|cs1-dates=</code> is omitted or empty</td> </tr> <tr> <th scope="row"><code>ll</code></th> </tr> <tr> <th scope="row"><code>ls</code></th> <td>long-form publication dates; abbreviated access- / archive-dates</td> </tr> <tr> <th scope="row"><code>ly</code></th> <td>long-form publication dates; year-initial numeric access- / archive-dates (ymd)</td> </tr> <tr> <th scope="row"><code>s</code></th> <td rowspan="2">abbreviated publication and access- / archive-dates</td> </tr> <tr> <th scope="row"><code>ss</code></th> </tr> <tr> <th scope="row"><code>sy</code></th> <td>abbreviated publication dates; year-initial numeric access- / archive-dates (ymd)</td> </tr> <tr> <th scope="row"><code>y</code></th> <td rowspan="2">year-initial numeric publication, access- and archive-dates (ymd);<br> cs1|2 cannot reformat Month YYYY, Season YYYY, date-ranges of any form, or <a href="https://en-m-wikipedia-org.translate.goog/wiki/Julian_calendar?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Julian calendar">Julian calendar</a> dates into ymd format</td> </tr> <tr> <th scope="row"><code>yy</code></th> </tr> </tbody> </table> <p>An example is given at <a href="https://en-m-wikipedia-org.translate.goog/wiki/Help:Citation_Style_1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Auto-formatting_citation_template_dates" title="Help:Citation Style 1">Help:Citation Style 1 § Auto-formatting citation template dates</a>.</p> <div class="mw-heading mw-heading3"> <h3 id="Credits">Credits</h3><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=6&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Credits" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>I am solely responsible for this tool, which has been inspired by the dates scripts written by <a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Lightmouse?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Lightmouse">User:Lightmouse</a> and <a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Plastikspork?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Plastikspork">User:Plastikspork</a>. It incorporates many additional features, such as unlinking many unusually-piped date-links, conversion of date series and ranges, and delinking months of the year. Thanks also to <a href="https://en-m-wikipedia-org.translate.goog/wiki/User:1exec1?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="User:1exec1">User:1exec1</a> for the invaluable assistance in rewriting and simplifying the workings of the script in April 2012.</p> <p>Feedback is appreciated at <a href="https://en-m-wikipedia-org.translate.goog/wiki/User_talk:Ohconfucius?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User talk:Ohconfucius">User Talk:Ohconfucius</a>. Please report any false negatives as well as false positives you may detect.</p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(4)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="Installing_the_script">Installing the script</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/install&action=edit&section=T-1&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Installing the script" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-4 collapsible-block" id="mf-section-4"> <ol> <li>Open <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DSpecial:MyPage/common.js%26action%3Dedit">your <b>common.js</b> in edit mode</a> (alternatively, go to <a href="https://en-m-wikipedia-org.translate.goog/wiki/Special:MyPage?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyPage">your user page</a> and append "/common.js" to the end of the URL and open the page in edit mode). <ul> <li><b>If you prefer to load this only on a specific skin</b>, such as <b>monobook</b>, open <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DSpecial:MyPage/monobook.js%26action%3Dedit">your <b>monobook.js</b> in edit mode</a>.</li> <li>If you make a straight copy of this script, instead of "importing" it, you may not benefit from the enhancements and bug-fixes that are made from time to time. In the latter case, you may choose to watchlist this page so you will know when to update your copy for modifications to this script.</li> </ul></li> <li>Copy the following code onto the JavaScript page you have chosen in the previous step: <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"> <pre><span></span><span class="nx">importScript</span><span class="p">(</span><span class="s1">'User:Ohconfucius/script/MOSNUM dates.js'</span><span class="p">);</span><span class="w"> </span><span class="c1">// [[User:Ohconfucius/script/MOSNUM dates.js]]</span> </pre> </div></li> <li>Save the page and (re-)load it – refresh the cache by following the instructions at the top of your JavaScript page.</li> <li>Bookmark the script page. This will be your cue to purge the cache on your browser for any updates to take effect.</li> </ol> <p><b>Disclaimer:</b> Use at your own risk and make sure you check the edit changes before you save.</p> <dl> <dd> <ul> <li>If you have <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:User_scripts?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Automatic_installation" title="Wikipedia:User scripts">automatic userscript installation</a> enabled, you can simply visit <a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Ohconfucius/script/MOSNUM_dates.js?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Ohconfucius/script/MOSNUM dates.js">User:Ohconfucius/script/MOSNUM dates.js</a> and click "Install" at the top of the page.</li> </ul> </dd> </dl> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(5)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="Actions_and_test">Actions and test</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=7&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Actions and test" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-5 collapsible-block" id="mf-section-5"> <p><b>Use of the <a href="https://en-m-wikipedia-org.translate.goog/wiki/Safari_(web_browser)?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Safari (web browser)"><i>Safari</i></a> or <i><a href="https://en-m-wikipedia-org.translate.goog/wiki/Firefox?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Firefox">Firefox</a></i> browsers is highly recommended</b>. It only functions in desktop mode.</p> <p>The script is continually being run and seems to work as intended on the latest Firefox and Chrome browsers on Mac and Windows. On Windows machines, browser-specific issues for IE, specifically <a href="https://en-m-wikipedia-org.translate.goog/wiki/Internet_Explorer_8?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Internet Explorer 8">version 8</a> <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DUser_talk:Ohconfucius%26oldid%3D518237638%23Issue_with_.22ALL_dates_to_dmy.22_">have been reported</a>. These may or may not have been resolved.</p> <p>The tool may also be used on mobile browsers. However, extensive testing has not been undertaken.</p> <p>Once you are in edit mode, there are buttons in the toolbox in the left margin:</p> <ol> <li><b>DATES to dmy</b> – converts all dates to <i>26 October 2024</i> dmy format</li> <li><b>DATES to mdy</b> – converts all dates to <i>October 26, 2024</i> mdy format</li> <li><b>US-slash dates</b> – converts all applicable dates into <i>October 26, 2024</i> mdy format</li> <li><b>UK-slash dates</b> – converts all applicable dates into <i>26 October 2024</i> dmy format</li> </ol> <dl> <dt> Notes </dt> </dl> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style> <div class="reflist reflist-lower-alpha"> </div> <p><span class="plainlinks">Users are equally reminded of the following provisions of <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:Manual_of_Style/Dates_and_numbers%26oldid%3D606447604%23Consistency">Wikipedia:Manual of Style (dates and numbers)</a></span>:</p> <blockquote> <div class="mw-heading mw-heading5"> <h5 id="Format_consistency">Format consistency</h5><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=8&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Format consistency" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <ul> <li>Dates in article body text should all use the same format: Julia ate a poisoned apple on 25 June 2005, and died on 28 June (not ... on June 28).</li> <li>Publication dates in references should all use the same format. Any format from the "Acceptable date formats" table above may be used unless the citation style being used requires a different format (however, all-numeric date formats other than yyyy-mm-dd must still be avoided).</li> <li>Access and archive dates in references should all use the same format – either the format used for publication dates or yyyy-mm-dd</li> </ul> <p>(These consistency requirements apply to dates in general prose and reference citations, but not to dates in quotations or titles)</p> <div class="mw-heading mw-heading5"> <h5 id="Strong_national_ties_to_a_topic">Strong national ties to a topic</h5><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=9&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Strong national ties to a topic" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1252059228"> <div class="module-shortcutanchordiv"> <span id="WP:STRONGNAT"></span><span id="WP:TIES"></span> </div> <div class="module-shortcutboxplain noprint" role="note"> <div class="module-shortcutlist"> <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:Shortcut?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Wikipedia:Shortcut">Shortcuts</a> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409"> <div class="plainlist"> <ul> <li><span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:STRONGNAT%26redirect%3Dno">WP:STRONGNAT</a></span></li> <li><span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:TIES%26redirect%3Dno">WP:TIES</a></span></li> </ul> </div> </div> <ul> <li>Articles on topics with strong ties to a particular English-speaking country should generally use the more common date format for that nation. For the United States, this is month before day; for most others, it is day before month. Articles related to Canada may use either format consistently.</li> <li>Sometimes the customary format differs from the usual national one: for example, articles on the modern US military use day before month, in accordance with military usage.</li> </ul> <div class="mw-heading mw-heading5"> <h5 id="Retaining_the_existing_format">Retaining the existing format</h5><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=10&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Retaining the existing format" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1252059228"> <div class="module-shortcutanchordiv"> <span id="WP:RETAIN"></span> </div> <div class="module-shortcutboxplain noprint" role="note"> <div class="module-shortcutlist"> <a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:Shortcut?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Wikipedia:Shortcut">Shortcut</a> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409"> <div class="plainlist"> <ul> <li><span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DWikipedia:RETAIN%26redirect%3Dno">WP:RETAIN</a></span></li> </ul> </div> </div> <ul> <li>If an article has evolved using predominantly one format, the whole article should conform to it, unless there are reasons for changing it based on strong national ties to the topic or consensus on article talk.</li> <li>The date format chosen by the first major contributor in the early stages of an article should continue to be used, unless there is reason to change it based on strong national ties to the topic or consensus on article talk.</li> <li>Where an article has shown no clear sign of which format is used, the first person to insert a date is equivalent to "the first major contributor".</li> </ul> </blockquote> <div class="mw-heading mw-heading4"> <h4 id="Test_pages">Test pages</h4><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=11&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Test pages" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <ul> <li><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Full-date_unlinking_bot/Test_environment?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Full-date unlinking bot/Test environment">User:Full-date unlinking bot/Test environment</a> - tests unlinking and dmy<–>mdy conversion</li> <li><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Dl2000/testtemp7?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Dl2000/testtemp7">User:Dl2000/testtemp7</a> - slash dates</li> <li><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Ohconfucius/MOSNUM_script_test?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Ohconfucius/MOSNUM script test">User:Ohconfucius/MOSNUM script test</a> – test page dealing with <a href="https://en-m-wikipedia-org.translate.goog/wiki/Help:CS1_errors?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:CS1 errors">CS1 date errors</a></li> </ul> <div class="mw-heading mw-heading3"> <h3 id="Known_limitations">Known limitations</h3><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=12&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Known limitations" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <ul> <li><b>Proper nouns with dates</b>: A number of proper nouns containing date fragments (such as '<a href="https://en-m-wikipedia-org.translate.goog/wiki/March_14_Alliance?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="March 14 Alliance">March 14 Alliance</a>', '<a href="https://en-m-wikipedia-org.translate.goog/wiki/6th_of_October_City?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="6th of October City">6th of October City</a>', '<a href="https://en-m-wikipedia-org.translate.goog/wiki/June_1,_1974?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="June 1, 1974">June 1, 1974</a>', '<a href="https://en-m-wikipedia-org.translate.goog/wiki/2000_AD?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-disambig" title="2000 AD">2000 AD</a>') have been specifically protected from conversion or delinking. Only the displayed part of piped links are acted upon, whilst the underlying pipe will not be changed. For the purposes of this script, <a href="https://en-m-wikipedia-org.translate.goog/wiki/September_11?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="September 11">September 11</a> or <a href="https://en-m-wikipedia-org.translate.goog/wiki/September_11_attacks?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="September 11 attacks">September 11 attacks</a> <i>is</i> treated: there are ample redirects in existence for any problems to be mitigated. <b>Let me know if there are other proper names which ought to be protected</b>.</li> <li><b>Dates that are used as adjectives</b>: Because the script routinely removes the leading "the" for dates, attention should be paid to where the date is used as an adjective, such as "<span style="color:orange;">the</span> 6 June beach landings". The "the" should either be reinserted, or the phrase reconfigured so that the date is no longer adjectival (e.g. "the beach landings on 6 June").</li> <li><b>Stalling</b>: If you see characters such as the following in your diffs window, don't panic:</li> </ul> <dl> <dd> <dl> <dd> <code>⍌190⍍</code> </dd> <dd> <code>⍌191⍍</code> </dd> </dl> </dd> <dd> this is simply the result of a stalling of the script, where the protected strings haven't been restored by the time you see the changes displayed on screen. It happens occasionally. In such a case, you should abandon the edit by refreshing the edit window, and then click on the script button again. </dd> </dl> <div class="mw-heading mw-heading3"> <h3 id="Known_conflicts">Known conflicts</h3><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=13&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Known conflicts" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <div class="mw-heading mw-heading4"> <h4 id="Other_Wiki_scripts_or_gadgets">Other Wiki scripts or gadgets</h4><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=14&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Other Wiki scripts or gadgets" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <ul> <li><b>wikEd</b>: The script is known to conflict with <i><a href="https://en-m-wikipedia-org.translate.goog/wiki/User:Cacycle/wikEd?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="User:Cacycle/wikEd">wikEd</a></i> that prevents the <i>MOSNUM dates</i> script from making <i>any</i> changes to articles, or simply blocking the creation of a script button. The solution is to toggle the <i>wikEd text area</i> <i><b>off</b></i> while running<i> MOSNUM dates</i>. <i>wikEd</i> has an easy toggle button for that called: <i>Use wikEd instead of classic text area</i>. Simply press the toggle button so the button pops out (off), then run <i>MOSNUM dates</i>. When you are done running <i>MOSNUM dates</i> you can press the toggle button again so the toggle button pops in (on) and the <i>wikEd text area</i> will be live again. Once you get in the habit of toggling the <i>wikEd text area</i> <i><b>on</b></i> and <i><b>off</b></i>, running <i>MOSNUM dates</i> is no longer a conflict with <i>wikEd</i>. There is no need to disable/re-enable wikEd in your common.js file.</li> </ul> <div class="mw-heading mw-heading4"> <h4 id="Browsers">Browsers</h4><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=15&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Browsers" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <ul> <li>It has <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DUser_talk:Ohconfucius%26oldid%3D776359500%23MOSNUM_script">been reported</a> that Chrome extension "<a href="https://en-m-wikipedia-org.translate.goog/wiki/Privacy_Badger?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Privacy Badger">Privacy Badger</a>" may somehow inhibit the script functioning.</li> </ul> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(6)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="Disclaimers">Disclaimers</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=16&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: Disclaimers" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-6 collapsible-block" id="mf-section-6"> <p>I use and make experimental changes to another version, and update this production version regularly to a suitably stable prior version of the test script. However, like all software, bugs are unavoidable. Use at your own risk, and make sure you <b>check the edit changes before you save</b>. The script is continually being run and seems to work as intended on the latest Firefox and Chrome browsers. However, browser-specific issues have been <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DUser_talk:Ohconfucius%26oldid%3D518237638%23Issue_with_.22ALL_dates_to_dmy.22_script">reported</a> for IE on Windows machines in the past (as at 1 January 2019, there are no recent reports of such compatibility issues).</p> <p>By consensus, this script should not be used in articles about chronological periods, such as <a href="https://en-m-wikipedia-org.translate.goog/wiki/2015?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="2015">2015</a> or <a href="https://en-m-wikipedia-org.translate.goog/wiki/January_25?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="January 25">January 25</a>, as date links here, considered desirable, would otherwise be automatically removed. Equally, I suspect that using the script on talk pages or on WP pages is likely to result in more angst than benefit to the project.</p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(7)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="See_also">See also</h2><span class="mw-editsection"> <a role="button" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=edit&section=17&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Edit section: See also" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <section class="mf-section-7 collapsible-block" id="mf-section-7"> <ul> <li><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:User_scripts?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Wikipedia:User scripts">Wikipedia:User scripts</a></li> <li><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:Date_formattings?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Wikipedia:Date formattings">Wikipedia:Date formattings</a></li> </ul><!-- NewPP limit report Parsed by mw‐web.codfw.main‐5cb77ff894‐ldp6j Cached time: 20241026203051 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.156 seconds Real time usage: 0.219 seconds Preprocessor visited node count: 1448/1000000 Post‐expand include size: 16431/2097152 bytes Template argument size: 1985/2097152 bytes Highest expansion depth: 15/100 Expensive parser function count: 6/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 6542/5000000 bytes Lua time usage: 0.058/10.000 seconds Lua memory usage: 1650399/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 175.509 1 -total 30.27% 53.118 1 Template:Message 28.92% 50.754 1 Template:Mbox 23.41% 41.093 3 Template:Shortcut 10.13% 17.784 1 Template:Notelist 9.43% 16.559 1 Template:User 8.57% 15.044 1 Template:Reflist 6.24% 10.957 10 Template:Date 3.99% 6.995 12 Template:Tl 3.24% 5.682 7 Template:Para --> <!-- Saved in parser cache with key enwiki:pcache:idhash:28829931-0!canonical and timestamp 20241026203051 and revision id 1240611462. Rendering was triggered because: page-view --> </section> </div><!-- MobileFormatter took 0.005 seconds --><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --> <noscript> <img src="https://login.m.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&mobile=1" alt="" width="1" height="1" style="border: none; position: absolute;"> </noscript> <div class="printfooter" data-nosnippet=""> Retrieved from "<a dir="ltr" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DUser:Ohconfucius/script/MOSNUM_dates%26oldid%3D1240611462">https://en.wikipedia.org/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&oldid=1240611462</a>" </div> </div> </div> <div class="post-content" id="page-secondary-actions"> </div> </main> <footer class="mw-footer minerva-footer" role="contentinfo"><a class="last-modified-bar" href="https://en-m-wikipedia-org.translate.goog/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates&action=history&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"> <div class="post-content last-modified-bar__content"><span class="minerva-icon minerva-icon-size-medium minerva-icon--modified-history"></span> <span class="last-modified-bar__text modified-enhancement" data-user-name="Michael Bednarek" data-user-gender="male" data-timestamp="1723802810"> <span>Last edited on 16 August 2024, at 10:06</span> </span> <span class="minerva-icon minerva-icon-size-small minerva-icon--expand"></span> </div></a> <div class="post-content footer-content"> <div id="p-lang"> <h4>Languages</h4> <section> <ul id="p-variants" class="minerva-languages"></ul> <ul class="minerva-languages"></ul> <p>This page is not available in other languages.</p> </section> </div> <div class="minerva-footer-logo"> <img src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" alt="Wikipedia" width="120" height="18" style="width: 7.5em; height: 1.125em;"> </div> <ul id="footer-info" class="footer-info hlist hlist-separated"> <li id="footer-info-lastmod">This page was last edited on 16 August 2024, at 10:06<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Content is available under <a class="external" rel="nofollow" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://creativecommons.org/licenses/by-sa/4.0/deed.en">CC BY-SA 4.0</a> unless otherwise noted.</li> </ul> <ul id="footer-places" class="footer-places hlist hlist-separated"> <li id="footer-places-privacy"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:About?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="https://en-m-wikipedia-org.translate.goog/wiki/Wikipedia:General_disclaimer?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">Disclaimers</a></li> <li id="footer-places-contact"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://stats.wikimedia.org/%23/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-terms-use"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.m.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a></li> <li id="footer-places-desktop-toggle"><a id="mw-mf-display-toggle" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/w/index.php?title%3DUser:Ohconfucius/script/MOSNUM_dates%26mobileaction%3Dtoggle_view_desktop" data-event-name="switch_to_desktop">Desktop</a></li> </ul> </div> </footer> </div> </div> <div class="mw-notification-area" data-mw="interface"></div><!-- v:8.3.1 --> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-6b7f745dd4-hchbj","wgBackendResponseTime":159,"wgPageParseReport":{"limitreport":{"cputime":"0.156","walltime":"0.219","ppvisitednodes":{"value":1448,"limit":1000000},"postexpandincludesize":{"value":16431,"limit":2097152},"templateargumentsize":{"value":1985,"limit":2097152},"expansiondepth":{"value":15,"limit":100},"expensivefunctioncount":{"value":6,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":6542,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 175.509 1 -total"," 30.27% 53.118 1 Template:Message"," 28.92% 50.754 1 Template:Mbox"," 23.41% 41.093 3 Template:Shortcut"," 10.13% 17.784 1 Template:Notelist"," 9.43% 16.559 1 Template:User"," 8.57% 15.044 1 Template:Reflist"," 6.24% 10.957 10 Template:Date"," 3.99% 6.995 12 Template:Tl"," 3.24% 5.682 7 Template:Para"]},"scribunto":{"limitreport-timeusage":{"value":"0.058","limit":"10.000"},"limitreport-memusage":{"value":1650399,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-5cb77ff894-ldp6j","timestamp":"20241026203051","ttl":2592000,"transientcontent":false}}});});</script> <script>(window.NORLQ=window.NORLQ||[]).push(function(){var ns,i,p,img;ns=document.getElementsByTagName('noscript');for(i=0;i<ns.length;i++){p=ns[i].nextSibling;if(p&&p.className&&p.className.indexOf('lazy-image-placeholder')>-1){img=document.createElement('img');img.setAttribute('src',p.getAttribute('data-src'));img.setAttribute('width',p.getAttribute('data-width'));img.setAttribute('height',p.getAttribute('data-height'));img.setAttribute('alt',p.getAttribute('data-alt'));p.parentNode.replaceChild(img,p);}}});</script> <script>function gtElInit() {var lib = new google.translate.TranslateService();lib.translatePage('en', 'en', function () {});}</script> <script src="https://translate.google.com/translate_a/element.js?cb=gtElInit&hl=en-GB&client=wt" type="text/javascript"></script> </body> </html>