User:ToxiBoi/LiveCountdown

LiveCountdown is a userscript that, upon entering a page, checks the page for all User:ToxiBoi/LiveCountdownTemplate (further referenced with LCT) transclusions and replaces them with a working countdown. The LCT is similar to the Countdown template, however, the template may switch between the two when necessary.

Right now, this userscript is in a very basic state, so don't expect much.

TemplateData
This is the documentation for the corresponding template (LCT) to be used by VisualEditor and other tools.

{	"description": "When used in conjunction with the LiveCountdown userscript, displays a live countdown that refreshes the page on completion", "params": { "tag": { "label": "Tag", "type": "line", "required": false, "suggested": false, "deprecated": false, "description": "The HTML tag to wrap the countdown around (for example, \"b\" or \"small\")", "default": "div" },		"event": { "label": "Event Name", "type": "string", "required": false, "suggested": true, "deprecated": false, "description": "The name of the event (to fill in the blank \"there are 2 seconds until _____\")", "default": "the event begins" },		"customdate": { "label": "Custom Date", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "ADVANCED: add a custom date. Adding this parameter will override the other date parameters, but may likely prevent non-users from seeing your countdown." },		"month": { "label": "Month", "type": "string", "required": false, "suggested": true, "deprecated": false, "description": "The month of when the countdown should disable. Can be a name (Dec, July) or a number (10, 2)." },		"day": { "label": "Day", "type": "string", "required": false, "suggested": true, "deprecated": false, "description": "The day of when the countdown should disable. Can be a name (Dec, July) or a number (10, 2)." },		"year": { "label": "Year", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The year of when the countdown should disable (2020, 3000)." },		"time": { "label": "Time", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The 24-hour time (12:00-24:00) when the countdown should disable. This cannot be shown to non-users." }	} }