Modul:Person: Unterschied zwischen den Versionen

+ Attribut:GeburtsortHeuteFürth
(fix Shoah-Query)
(+ Attribut:GeburtsortHeuteFürth)
Zeile 29: Zeile 29:


-- Personen-spezifische Kategorien usw.
-- Personen-spezifische Kategorien usw.
if (fbdata.pargs["Geburtsort"] or "") == "Fürth" then
if (fbdata.pargs["Geburtsort"] or "") ~= "" then
box = box .. "[[Kategorie:Söhne und Töchter der Stadt Fürth]]"
if fbdata.pargs["Geburtsort"] == "Fürth" or mw.smw.ask("[[" .. fbdata.pargs["Geburtsort"] .. "]][[KlassenName::Stadtteil]]|format=count") == 1 then
box = box .. "[[Kategorie:Söhne und Töchter der Stadt Fürth]]{{#set:GeburtsortHeuteFürth=wahr}}"
else
box = box .. "{{#set:GeburtsortHeuteFürth=falsch}}"
end
end
end
if (fbdata.pargs["Nachname"] or "") ~= "" then
if (fbdata.pargs["Nachname"] or "") ~= "" then
Zeile 44: Zeile 48:
-- Sonstige gemeinsame Dinge anfügen (Klasse, Formular, Kategorien, Wartung, ...)
-- Sonstige gemeinsame Dinge anfügen (Klasse, Formular, Kategorien, Wartung, ...)
box = box .. fab.common(fbdata)
box = box .. fab.common(fbdata)
-- mw.log("box = " .. box)
mw.log("box = " .. box)


-- Pre-Processing und String-Länge checken
-- Pre-Processing und String-Länge checken