Widget:CountdownTimer: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) mNo edit summary |
RiceEmpress (talk | contribs) mNo edit summary |
||
| Line 400: | Line 400: | ||
diff = Math.floor(diff / 30,5); | diff = Math.floor(diff / 30,5); | ||
delta = diff % 12; | delta = diff % 12; | ||
result = ' ' + i18n[diff === 1 ? ' | result = ' ' + i18n[diff === 1 ? 'Month' : 'Months' ]; | ||
if (countdowns[i].opts & SHORT_FORMAT) result = result.charAt(1); | if (countdowns[i].opts & SHORT_FORMAT) result = result.charAt(1); | ||
parts.unshift(delta + result); | parts.unshift(delta + result); | ||
Revision as of 16:30, 3 February 2026
To be used with Template:EventCountdown and Template:EventTimeLeft.