Template:Countdown/doc

Description
This template provides an easy way to use Countdown. Countdown is a script from Fandom Developers Wiki that allows users to place countdowns on pages.

Parameters and TemplateData
{	"params": { "class": { "label": "Classes", "description": "One or more (separated by spaces) CSS classes to add to the countdown.", "example": "my-first-class my-second-class", "type": "line" },		"style": { "label": "Styles", "description": "Inline CSS to add to the countdown.", "example": "border: 1px solid red;", "type": "line" },		"long": { "label": "Long Unit Names", "description": "Set to true (visual mode) or provide any value except \"0\" (source mode) to use full words in the output such as \"15 minutes and 27 seconds\". Otherwise, the output will use letters such as \"15m 27s\".", "type": "boolean", "default": "0", "autovalue": "0" },		"zeros": { "label": "Show Zeros", "description": "Set to \"all\" to always display all units in the output such as \"0d 15h 0m 27s\". Set to \"none\" to hide all units with a value of \"0\" such as \"15h 27s\". Otherwise, units larger than needed will be hidden such as \"15h 0m 27s\". Seconds are always displayed.", "type": "line", "autovalue": "" },		"mode": { "label": "End Behavior", "description": "This controls what the countdown does after reaching \"0s\". The default behavior is to start counting up. \"hide\" will hide the countdown. \"stop\" will halt the countdown at \"0s\". \"msg\" will display the specified custom message in place of the countdown. If the message is blank, the effect will be similar to \"hide\". \"call\" will call the specified custom JS function (requires admin rights to set-up).", "type": "line" },		"call": { "label": "End Callback", "description": "The name of the custom JS function to call when the countdown reaches \"0s\". Admin rights are required to set-up a function. See the script documentation for instructions on setting-up a function.", "example": "myFunction", "type": "line" },		"pre": { "label": "Pre-Counter Content", "description": "Content to insert in front of the countdown.", "example": "A new spawn will occur in", "type": "content" },		"date": { "label": "Date", "description": "The target date and time for the countdown.", "example": "January 1, 2022", "type": "date", "required": true },		"post": { "label": "Post-Counter Content", "description": "Content to insert after the counter.", "example": "at the castle.", "type": "content" },		"msg": { "label": "End Content", "description": "The content to show when the countdown reaches \"0s\".", "example": "The boss as spawned at the castle!", "type": "content" },		"alt": { "label": "Placeholder Content", "description": "Content to display while the script loads.", "example": "Please stand by while Countdown loads.", "type": "content" }	},	"description": "This template provides an easy way to use Countdown. Countdown is a script from Fandom Developers Wiki that allows users to place countdowns on pages." }

Credits

 * The original version of this template and its documentation was imported from Knighthood Wiki.