User:ToxiBoi/LiveCountdown/To-Do

To-Do List

 * Feel free to be bold and add anything to this section.
 * Signing here is encouraged for discussions of items, but items themselves shouldn't be signed.
 * Items that are struck have been implemented in the latest version of the script.


 * Allow more than one countdowns to be supported
 * . Right as I find out how, I'll be implementing this as soon as possible. A culprit may be the function inside of the scan loop, so this might work if the two are separated. – Toxi  Boi!  (contribs) 00:05, 17 April 2020 (UTC)
 * ✅ in version v1.2. The function inside of the loop was part of the issue, making the script single-threaded. Moving the loop outside of the function prevents the loop from focusing on just one countdown. – Toxi  Boi!  (contribs) 04:13, 17 April 2020 (UTC)
 * Add error handling for unknown parameters
 * Right now, it only says NaN and the countdown freezes.
 * at User:ToxiBoi/LiveCountdownTemplate. – Toxi  Boi!  (contribs) 00:05, 17 April 2020 (UTC)
 * ✅ in v1.3. A big error will pop up if there is difficulty parsing the end date. For example, see the LCT page. – Toxi  Boi!  (contribs) 04:37, 17 April 2020 (UTC)
 * Add a check to see if the countdown works, without invoking the script directly
 * Maybe in a form of special page that the script will change?
 * Write TemplateData
 * ✅. As relevant to this page, I've added it here. – Toxi  Boi!  (contribs) 23:33, 16 April 2020 (UTC)
 * Allow modification of Countdown displays
 * . This may not be possible, as the countdown isn't wrapped in any div or span nor even a class. It's added as a regular paragraph; therefore, a script cannot detect it via regular methods. If it DOES become wrappable in a tag other than "p", then it may even be hard to grab the end date from the display anyway. It's only stored in the module, and the module is pretty much done before the script kicks in. I may consider a non-Lua-based template; however, LCT is the best compatible version of this. – Toxi  Boi!  (contribs) 23:33, 16 April 2020 (UTC)
 * Allow wikitext/links to be entered in the "event" parameter
 * Right now, wikitext is unparsed, forcing you to add HTML to the page.
 * at User:ToxiBoi/sandbox. This is a potential security hole, so this is high-proirity. – Toxi  Boi!  (contribs) 04:21, 17 April 2020 (UTC)
 * I'll run the event through MediaWiki's API to parse, and then cut away all of the comments. – Toxi  Boi!  (contribs) 05:24, 17 April 2020 (UTC)
 * ✅ in v1.4.3. – Toxi  Boi!  (contribs) 05:40, 17 April 2020 (UTC)
 * ✅ Extra: The v1.4.4 script does some basic XSS detection before the script attempts to start a countdown. Normally, MediaWiki would catch all of the XSS (I couldn't even add it in my sandbox properly ), but a bit of wool on top of obsidian never hurt in a game of BedWars! – Toxi  Boi!  (contribs) 10:21, 17 April 2020 (UTC)
 * (And yes, I am aware that I am likely using the wrong initialism...)