DateInserter
Description
Adds a button to insert a date to the current document using Visual Editor "Insert" dropdown menu
DateInserter adds a button to insert a ISO formatted date (YYYY-MM-DD) to the current document using the VisualEditor "Insert" dropdown menu. It also inserts the date when the keyboard shortcut Ctrl + ⎇ Alt + D is pressed.
Installation
Add this to MediaWiki:ImportJS :
dev:DateInserter/code.js
importArticles
:
Add this JavaScript on your wiki (or add the highlighted text to your existing import statement):
importArticles ({ type : 'script' , articles : [ 'u:dev:MediaWiki:DateInserter/code.js' , ] });
Local:
Special:MyPage/common.js
Importing multiple scripts? This quick guide shows how to combine the imports. For personal use, note that personal JS must be enabled for your account. If the script requires configuration through MediaWiki:Common.js for sitewide use, don't forget to contact Fandom Staff to get it enabled on your wiki, if it isn't already enabled.
Text above can be found
here (edit )