You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Login with credentials admin / adminpassword. *The config does not expose the container to the internet and you shouldn't use these credentials if you do.*
88
94
4. Import the generated export into the running wiki using one of these methods:
89
-
* In `Special:Import`, upload the local `dist/mediawiki-export.xml` file from your machine. Use any import prefix (e.g. "imported")
95
+
* In `Special:Import`, upload the local `dist/mediawiki-export.xml` file from your machine. Use any import prefix (e.g. "imported") for the edit logs.
* Note that these will clobber any existing pages, though undo will be available in the version history.
102
+
* Note that these will clobber any existing pages, though undo will be available in the version history. The import will not work correctly until Scribunto's install maintenance has run.
97
103
98
104
5. Update `MediaWiki:Gadgets-definition` to load `MediaWiki:Gadget-inline-datetime.js` and `MediaWiki:Gadget-inline-datetime.css`.
99
105
6. Optionally add `Template:IDT` manually if you want the short alias.
@@ -104,5 +110,5 @@ Notes:
104
110
*`test/docker/LocalSettings.php` is committed as a local test-only configuration for this Docker setup. It should not be reused for production or public deployment.
105
111
* The generated `dist/` directory is mounted read-only into the MediaWiki container at `/imports`.
106
112
*`test/docker/LocalSettings.php` is mounted read-only into the MediaWiki container as `/var/www/html/LocalSettings.php`.
107
-
* The MediaWiki image includes `lua5.1` so `wfLoadExtension( 'Scribunto' )` can use the `lua-standalone` engine from the committed test config.
113
+
* The `mediawiki:1.43` image doesn't include Scribunto's bundled standalone Lua binary, so we install system lua5.1 and we have `test/docker/LocalSettings.php` explicitly point Scribunto at `/usr/bin/lua5.1`.
108
114
* Uploaded wiki files live in a named Docker volume, so restarting the stack does not wipe images.
*`ResourceLoader` — registers the gadget as a ResourceLoader module for better performance and dependency support; remove this option if your wiki does not use ResourceLoader
96
95
*`default` — enables the gadget for all users automatically; replace with `hidden` if you want it available but opt-in only
97
96
*`type=general` — runs scripts in the page scope; required for this gadget to access the page DOM
98
97
* The config file **must be listed before** the main JS file so it is executed first
Copy file name to clipboardExpand all lines: gadget/Template_InlineDateTime_doc.wikitext
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
== Usage ==
2
2
3
-
<code><nowiki>{{InlineDateTime}}</nowiki></code> (or the short alias <code><nowiki>{{IDT}}</nowiki></code>) displays an inline datetime or date range with automatic timezone conversion for the reader. Times are shown with a tooltip providing conversions to the reader's local time and/or server times.
3
+
<code><nowiki>{{InlineDateTime}}</nowiki></code> (or the short alias <code><nowiki>{{InlineDateTime}}</nowiki></code>) displays an inline datetime or date range with automatic timezone conversion for the reader. Times are shown with a tooltip providing conversions to the reader's local time and/or server times.
0 commit comments