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
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is a Mediawiki gadget for game wikis with a few game servers in different t
4
4
5
5
This gadget will format times and timespans as inline text with a tooltip (accessible on hover or tap) that translates the time to the user's local time. The information is kept minimal for compactness but expansion occurs as needed for precision.
* Single moment across servers (e.g. `04:00 +8`): usually server maintenance
21
21
* Inline text: user's timezone
22
22
* Tooltip: servers' timezones
23
-
* Same server time across servers (e.g. `04:00 server`): usually daily & weekly resets
23
+
* Same server time across servers (e.g. `04:00`): usually daily & weekly resets
24
24
* Inline text: the server-relative time
25
25
* Tooltip: when each server observes that time, according to the user's timezone
26
26
* Single times or timespans (can mix and match date kinds)
@@ -30,10 +30,12 @@ Example tooltip:
30
30
* Basic default text to display when Javascript is disabled
31
31
* Basic semantic HTML classes to enable custom css
32
32
* Auto-deduplicating things like the year or day when it is the same for the whole timespan in the user's timezone.
33
-
* Provides [[Category:Pages with InlineDateTime errors]]
33
+
* Dynamic content added via `mw.hook('wikipage.content')` is handled automatically
34
+
* Provides `[[Category:Pages with InlineDateTime errors]]`
34
35
35
36
**Known issues:**
36
37
* The no-JS fallback text is not styled and doesn't deduplicate as well as the JS code.
38
+
* The server agnostic description isn't moved into the tooltip when there is a raw text override.
37
39
38
40
**Not supported:**
39
41
* Languages other than English
@@ -50,6 +52,8 @@ Example tooltip:
50
52
* But: you can use a raw text override
51
53
* Disable tooltip (other than by disabling js)
52
54
* Support for showing seconds. We assume everything is minute-aligned.
55
+
* Support for entering days without hours and minutes.
56
+
* Support for compact inline text that removes the hours and minutes but leaves them in the tooltip.
53
57
* Tooling for locating date-like entries on pages that haven't been wrapped in the template.
54
58
* PHP time parsing `{{time:}}`
55
59
* This is intentional to prevent silent errors. If someone writes something like "from maintenance until Mar 29 reset" would likely be collapsed to March 29 of either the current or next year. If there's a good reason to support "second tuesday of last month + 10 seconds" then this could change.
0 commit comments