Diferencies ente revisiones de «Módulu:Countdown»

Contenido eliminado Contenido añadido
Páxina creada con «-- This module powers {{countdown}}. local p = {} -- Constants local lang = mw.language.getContentLanguage() local getArgs = require('Module:Arguments').getArgs local fu…»
 
Sin resumen de edición
Llinia 8:
 
local function formatMessage(secondsLeft, event, color, refreshLink)
local timeLeft = lang:formatDuration(secondsLeft, {'yearsaños', 'weeksselmanes', 'daysdíes', 'hourshores', 'minutesminutos', 'secondssegundos'})
-- Find whether we are plural or not.
local isOrAre
if string.match(timeLeft, '^%d+') == '1' then
isOrAre = 'isye'
else
isOrAre = 'areson'
end
-- Color and bold the numbers, because it makes them look important.