Module:Countdown-ymd/Config

--[[--------------------------< S T A T I C _ T E X T _ T >----------------------------------------------------
]]

local static_text_t = {
	eventtime = 'Time to event:',
	begins = 'Event begins in',													-- when |duration= is set
	ends = 'Event ends in',														-- when |duration= is set
	ended = 'Event has ended.',													-- when |duration= is set
	passed = 'Event time has passed.',
	invalid = '<span style="font-size:100%" class="error">Error: invalid date and/or time</span>',
	unknown = '<span style="font-size:100%" class="error">Error: unknown parameter: $1</span>',		-- $1 is the unknown parameter name
	}


--[[--------------------------< P R E S E N T A T I O N _ T >--------------------------------------------------
]]

local presentation_t = {
	digit_style = '<span style="color: $1; font-weight: bold;">%1</span>',		-- $1 is digit color
	refresh_style = ' <sup>[<span class="plainlinks">[$1 refresh]</span>]</sup>',	-- $1 is refresh url
	}

--[[--------------------------< U N I T _ P A T T E R N S _ T >------------------------------------------------

these patterns used in duration_get()

]]

local unit_patterns_t = {
	year = 'years?',
	month = 'months?',
	week = 'weeks?',
	day = 'days?',
	hour = 'hours?',
	minute = 'minutes?',
	second = 'seconds?',
	}


--[[--------------------------< K E Y W O R D S _ T >----------------------------------------------------------
]]

local keywords_t = {
	none = 'none',
	}


--[[--------------------------< L A B E L S _ T >--------------------------------------------------------------
]]

local labels_single_t = {
	year = 'year',
	month = 'month',
	week = 'week',
	day = 'day',
	hour = 'hour',
	minute = 'minute',
	second = 'second',
	}

local labels_plural_t = {
	year = 'years',
	month = 'months',
	week = 'weeks',
	day = 'days',
	hour = 'hours',
	minute = 'minutes',
	second = 'seconds',
	}


--[[--------------------------< K N O W N _ P A R A M S _ T >--------------------------------------------------

known parameters from {{countdown}} and {{countdown-ymd}} prior to merge; see TfD at
	Wikipedia:Templates_for_discussion/Log/2026_April_14#Template:Countdown-ymd

]]

local known_params_t = {
	year = true,																-- these are common to both {{countdown}} and {{countdown-ymd}}
	month = true,
	day = true,
	hour = true,
	minute = true,
	second = true,
	color = true,
	duration = true,

	['utc offset'] = true,														-- these are native to {{countdown-ymd}}
	expired = true,																-- text that replaces the countdown at expiration
	lead = true,																-- replaces default lead text ahead of countdown; |lead=none suppresses default lead text
	tail = true,																-- text to append to the tail of the countdown
	['event lead'] = true,
	['event tail'] = true,

	event = true,																-- these carried-over from {{countdown}}
	['duration unit'] = true,
	eventstart = true,															-- text that replaces countdown at expiration (event started but not yet completed); does not require duration
	eventend = true,															-- text that replaces countdown after an event has completed; requires duration
	refresh = true,																-- when |refresh=no, suppresses the refresh link
	}


--[[--------------------------< E X P O R T S >----------------------------------------------------------------
]]

return {
	static_text_t = static_text_t,
	presentation_t = presentation_t,
	unit_patterns_t = unit_patterns_t,
	keywords_t = keywords_t,
	labels_single_t = labels_single_t,
	labels_plural_t = labels_plural_t,
	known_params_t = known_params_t,
	}

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.