Content deleted Content added
Tobias1984 (talk | contribs) add local "wiki" |
m Cleanup/Typo fixing, typo(s) fixed: millenium → millennium (4), .. mw → .. mW (2) using AWB |
||
Line 30:
[4] = "$100.000 Jahren", -- precision: hundred thousand years
[5] = "$10.000 Jahren", -- precision: ten thousand years
[6] = "$1. Jahrtausend", -- precision:
[7] = "$1. Jahrhundert", -- precision: century
[8] = "$1er", -- precision: decade
Line 110:
out[#out + 1] = "[[" .. mw.wikibase.sitelink("Q" .. v2.datavalue.value["numeric-id"]) .. "]]"
else
out[#out + 1] = "[[:d:Q" .. v2.datavalue.value["numeric-id"] .. "|" ..
end
end
Line 310:
end
-- precision: 0 - billion years, 1 - hundred million years, ..., 6 -
local function normalizeDate(date)
date = mw.text.trim(date, "+")
Line 317:
local year = tonumber(yearstr)
-- remove leading zeros of year
return year ..
end
Line 338:
end
-- precision is decades, centuries and
local era
if precision == 6 then era = mw.ustring.gsub(i18n.datetime[6], "$1", tostring(math.floor((math.abs(year) - 1) / 1000) + 1)) end
Line 390:
local function printDatavalueTime(data, parameter)
-- data fields: time [ISO 8601 time], timezone [int in minutes], before [int], after [int], precision [int], calendarmodel [wikidata URI]
-- precision: 0 - billion years, 1 - hundred million years, ..., 6 -
-- calendarmodel: e.g. http://www.wikidata.org/entity/Q1985727 for the proleptic Gregorian calendar or http://www.wikidata.org/wiki/Q11184 for the Julian calendar]
if parameter then
|