Module:I18n/complex date explained

--\/ | ___ __| |_ _| | ___ _|_ _/ |(_) _ __ / /__ ___ _ __ ___ _ __ | | _____ __ __| | __ _| |_ ___ | |\/| |/ _ \ / _` | | | | |/ _ (_)| || |/ _ \| '_ \ / / __/ _ \| '_ ` _ \| '_ \| |/ _ \ \/ / / _` |/ _` | __/ _ \ | | | | (_) | (_| | |_| | | __/_ | || | (_) | | | |/ / (_| (_) | | | | | | |_) | | __/> < | (_| | (_| | || __/ |_| |_|\___/ \__,_|\__,_|_|\___(_)___|_|\___/|_| |_/_/ \___\___/|_| |_| |_| .__/|_|\___/_/\_\ \__,_|\__,_|\__\___| |_| This code was copied from Commons please request changes there. Maintainers:

local function Ordinal(...) return require('Module:Ordinal-cd')._Ordinal(...)endlocal function Roman(...) return require('Module:Roman-cd')._Numeral(...)end

--

--

Local Helper functions

=--

-- form of French "of" based on "precision", which is wikibase compatible date precision format: -- 6=millennium, 7=century, 8=decade, 9=year, 10=month, 11=day-- 1 2 3 4 5 mill cent deca year month daylocal frOf =

local function decYear(state,lang,case)--Declension of word "year" in several languagesif state.precision

9 then yearCase = return yearCase[lang][case] .. ' 'else return endend

local function decCentury(lang,case)--Declension of word "century" in several languages centuryCase = return centuryCase[lang][case] or centuryCase[lang]['default']end

local function decMillennium(lang,case)--Declension of word "century" in several languages millenniumCase = return millenniumCase[lang][case] or millenniumCase[lang]['default']end

--

--

Output data structure

--

local p =

--p.Translations =

-- List of possible string inputs to "adj", "junction", "era", and "precision" fields-- Each term is matched to its synonym and the role: a - adjective, e - era-- p - precision, c - calendar and combos, r - certainty and j - conjunctionp.Synonyms =

return p