Module:Wikidata: Difference between revisions

Content deleted Content added
update getDateValue to deal with dates BC ++ suppress leading zeros in year format ++ fourth parameter to replace "BC"
Let's not be printing a space when it's not needed
Line 193:
if string.sub(timestamp, 1, 1) == '-' then
timestamp = '+' .. string.sub(timestamp, 2)
suffix = " " .. date_suffix
end
local function d(f)
return mw.language.new(wiki.langcode):formatDate(f, timestamp) .. " " .. suffix
end
if date_format == "mdy" then