Modül:Wikidata/date
--settings
local nowLabel = 'günümüz'
local abbrbc = 'MÖ'
local moduleDates = require( "Module:Dates" )
local moduleWikidata = require( "Module:Wikidata2" )
local Decade = require( "Module:Decade" )
local dateCat = require("Module:Dates/dateCat")
local function deepcopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_key, orig_value in next, orig, nil do copy[deepcopy(orig_key)] = deepcopy(orig_value) end setmetatable(copy, deepcopy(getmetatable(orig))) else -- number, string, boolean, etc copy = orig end return copy
end
local function ageImpl ( bStructure, bPrecision, dStructure, dPrecision ) if ( not bStructure or not dStructure or bPrecision < 10 or dPrecision < 10 ) then return nil end local shift = 0 if ( bStructure. year 0 ) then shift = -1 end if ( bPrecision 10 ) then if ( bStructure. month < dStructure.