23.881
Bearbeitungen
(+ Verstorben) |
(TabelleAeltesteOhneTodesdatum() + Verstorben) |
||
| Zeile 190: | Zeile 190: | ||
t = "" | t = "" | ||
local query = {"[[KlassenName::Person]]", | local query = {"[[KlassenName::Person]]", | ||
"?#-", "?Geburtsdatum#ISO", "?Todesdatum#ISO", | "?#-", "?Geburtsdatum#ISO", "?Todesdatum#ISO", "?Verstorben", | ||
sort = "Geburtsdatum", order = "asc", | sort = "Geburtsdatum", order = "asc", | ||
mainlabel = "-", limit = 10000 } | mainlabel = "-", limit = 10000 } | ||
| Zeile 199: | Zeile 199: | ||
if p["Geburtsdatum"] ~= nil and p["Todesdatum"] == nil then | if p["Geburtsdatum"] ~= nil and p["Todesdatum"] == nil then | ||
table.insert(personen, | table.insert(personen, | ||
{["Person"] = p[1], ["Geburtsdatum"] = p["Geburtsdatum"]}) | {["Person"] = p[1], | ||
["Geburtsdatum"] = p["Geburtsdatum"], | |||
["Verstorben"] = p["Verstorben"]}) | |||
end | end | ||
end | end | ||
-- Tabelle aufbauen | -- Tabelle aufbauen | ||
t = t .. htm.tableHeader{"Person", "Geburtsdatum"} | t = t .. htm.tableHeader{"Person", "Geburtsdatum", "Verstorben"} | ||
for _, p in ipairs(personen) do | for _, p in ipairs(personen) do | ||
t = t .. htm.tableLine{"[[" .. p["Person"] .. "]]", p["Geburtsdatum"]} | t = t .. htm.tableLine{ | ||
"[[" .. p["Person"] .. "]]", p["Geburtsdatum"], p["Verstorben"]} | |||
end | end | ||
t = t .. htm.tableFooter() | t = t .. htm.tableFooter() | ||