Jump to content

User:ToxiBoi/LiveCountdown/To-Do

From Wikipedia, the free encyclopedia

To-Do List

[edit]
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
    •  Acknowledged. 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. –ToxiBoi! (contribs) 00:05, 17 April 2020 (UTC)
      •  Done 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. –ToxiBoi! (contribs) 04:13, 17 April 2020 (UTC)
  • Add error handling for unknown parameters
  • 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
    •  Done. As relevant to this page, I've added it here. –ToxiBoi! (contribs) 23:33, 16 April 2020 (UTC)
  • Allow modification of {{Countdown}} displays
    • Not done for now. 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. –ToxiBoi! (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.
      •  Confirmed at User:ToxiBoi/sandbox. This is a potential security hole, so this is high-proirity. –ToxiBoi! (contribs) 04:21, 17 April 2020 (UTC)
      •  Doing... I'll run the event through MediaWiki's API to parse, and then cut away all of the comments. –ToxiBoi! (contribs) 05:24, 17 April 2020 (UTC)
      •  Done in v1.4.3. –ToxiBoi! (contribs) 05:40, 17 April 2020 (UTC)
        • Green tickY 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! –ToxiBoi! (contribs) 10:21, 17 April 2020 (UTC)
          • (And yes, I am aware that I am likely using the wrong initialism...)