19.638
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 56: | Zeile 56: | ||
function p.setWoerterbuchAttr(fbdata) | function p.setWoerterbuchAttr(fbdata) | ||
for _, a in ipairs{ | for _, a in ipairs{ | ||
"Einzahl weiblich", | {"Einzahl", "weiblich"}, | ||
"Mehrzahl weiblich", "Mehrzahl | {"Einzahl", "männlich"}, | ||
"Mehrzahl | {"Einzahl", "divers"}, | ||
local v = fbdata.pargs[ | {"Mehrzahl", "weiblich"}, | ||
if | {"Mehrzahl", "männlich"}, | ||
smw.addAttrToList(fbdata.attr.list, "Wörterbuch", | {"Mehrzahl", "divers"}} do | ||
local a12 = a[1] .. " " .. a[2] | |||
local v = fbdata.pargs[a12] or "" | |||
if v ~= "" then | |||
smw.addAttrToList(fbdata.attr.list, "Wörterbuch", a12 .. "=" .. v) | |||
if not fbdata.attr.noattr then | if not fbdata.attr.noattr then | ||
mw.smw.subobject{ | mw.smw.subobject{ | ||
"Wörterbuch " .. | "Wörterbuch " .. a12, | ||
["SubObjektTyp"] = "Wörterbuch Beruf", | ["SubObjektTyp"] = "Wörterbuch Beruf", | ||
[" | ["Bemerkung"] = a1, | ||
[" | ["Geschlecht"] = a2, | ||
[" | ["BerufTemp"] = v} | ||
end | end | ||
end | end | ||