"मोड्युल:TimeAgo" का संशोधनहरू बिचको अन्तर

Content deleted Content added
सा en:Module:TimeAgo बाट २७ संशोधन(हरू)
परीक्षण
पङ्क्ति ७:
-- Table to convert entered text values to numeric values.
timeText = {
['secondsसेकेन्ड'] = 1,
['minutesमिनट'] = 60,
['hoursघण्टा'] = 3600,
['daysदिन'] = 86400,
['weeksहप्ता'] = 604800,
['monthsमहिना'] = 2678400,
['yearsवर्ष'] = 31557600
}
 
पङ्क्ति ४२:
-- Add a purge link if something (usually "yes") is entered into the purge parameter
if purge then
purge = ' <span class="plainlinks">([' .. mw.title.getCurrentTitle():fullUrl('action=purge') .. ' purgeशुद्धीकरण])</span>'
else
purge = ''
पङ्क्ति ९२:
 
local punctuation_key, suffix
if timeDiff >= 0 then -- Pastपहिले
if result_num == 1 then
punctuation_key = 1
पङ्क्ति १०१:
suffix = ''
else
suffix = ' ' .. (args.ago or 'agoपहिले')
end
else -- Future
पङ्क्ति ११२:
end
else
suffix = ' timeसमय'
if result_num == 1 then
punctuation_key = 3
पङ्क्ति १४२:
if v then
v = v:match( '^%s*(.-)%s*$' ) -- Trim whitespace.
if k == 'agoपहिले' or v ~= '' then
return v
end
"https://ne.wikipedia.org/wiki/मोड्युल:TimeAgo" बाट अनुप्रेषित