Mòdul:MLMT age 2/items
Aparença
Documentació del mòdul [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]
A continuació es mostra la documentació transclosa de la subpàgina /ús. [salta a la caixa de codi]
Used by Mòdul:MLMT age 2 and Mòdul:MLMT age 2/i18n.
See also Mòdul:MLMT age 1/items.
local p = {}
local SA = require "Module:SimpleArgs"
local MLMT = require "Module:Multilang module tools"
--tags for all items, used in main module and i18n
p.k = {
year = 'year',
birth = 'birth',
death = 'death',
other = 'other',
intro = 'intro',
---
years = 'years',
---
birth_after_today = 'birth_after_today',
death_after_birth = 'death_after_today',
}
--Special types for arguments. Otherwise, the arguments are strings
p.arg_lims = {
[p.k.year] = {
[p.k.birth] = 'i+r',
[p.k.death] = 'i+',
},
[p.k.other] = {
[p.k.intro] = 'b',
},
}
--Indexes used by the lists:
p.idxArgs = {
[SA.HasChild] = {
p.k.year,
p.k.other,
},
[p.k.year] = {
p.k.birth,
p.k.death,
},
[p.k.other] = {
p.k.intro,
},
}
p.idxLabels = {
p.k.years,
}
p.idxMsgs = {
p.k.intro,
}
p.idxErrors = {
p.k.birth_after_today,
p.k.death_after_birth,
}
return p