26.907
Bearbeitungen
(mehrere Nachnamen möglich) |
(Optimierungen) |
||
| Zeile 27: | Zeile 27: | ||
t = fab.factbox_header_footer(t) | t = fab.factbox_header_footer(t) | ||
-- | -- Namen-Attribute setzen und DEFAULTSORT | ||
local vorname = com.tableConcatNil(fbdata.attr.list["Vorname"], ", ") | |||
local nachname = com.tableConcatNil(fbdata.attr.list["Nachname"], ", ") | |||
if vorname ~= nil or nachname ~= nil then | |||
local nachname_vorname = | |||
com.tableConcatNil({nachname or "", vorname}, ", ") -- ", Vorname" wenn Nachname leer | |||
smw.addAttrToList(fbdata.attr.list, "NachnameVorname", nachname_vorname) | |||
t = t .. "{{DEFAULTSORT:" .. nachname_vorname .. "}}" | |||
end | |||
-- Söhne und Töchter der Stadt Fürth | |||
if fbdata.pargs["Geburtsort"] ~= nil then | if fbdata.pargs["Geburtsort"] ~= nil then | ||
if fbdata.pargs["Geburtsort"] == "Fürth" or mw.smw.ask("[[" .. fbdata.pargs["Geburtsort"] .. "]][[KlassenName::Stadtteil]]|format=count") == 1 then | if fbdata.pargs["Geburtsort"] == "Fürth" or mw.smw.ask("[[" .. fbdata.pargs["Geburtsort"] .. "]][[KlassenName::Stadtteil]]|format=count") == 1 then | ||
| Zeile 35: | Zeile 45: | ||
smw.addAttrToList(fbdata.attr.list, "GeburtsortHeuteFürth", "falsch") | smw.addAttrToList(fbdata.attr.list, "GeburtsortHeuteFürth", "falsch") | ||
end | end | ||
end | end | ||
| Zeile 49: | Zeile 50: | ||
t = t .. fab.postprocess(fbdata) | t = t .. fab.postprocess(fbdata) | ||
-- Pre-Processing | -- Pre-Processing | ||
t = fbdata.frame:preprocess(t) | t = fbdata.frame:preprocess(t) | ||
return t | return t | ||
| Zeile 96: | Zeile 96: | ||
t = fab.table_header_footer(t) | t = fab.table_header_footer(t) | ||
t = t .. fab.zeileSemantikBrowsenAbfrage(fbdata) | t = t .. fab.zeileSemantikBrowsenAbfrage(fbdata) | ||
-- Tab draus machen | -- Tab draus machen | ||