27.025
Bearbeitungen
(+ HatArtikel) |
(SubobjektHatArtikel) |
||
| Zeile 39: | Zeile 39: | ||
local nachname = attr["Nachname"] | local nachname = attr["Nachname"] | ||
local name = com.tableConcatNil({vorname, nachname}) | local name = com.tableConcatNil({vorname, nachname}) | ||
local page_exists = wik.pageExists(name) | |||
if page_exists then | |||
attr["SubobjektHatArtikel"] = "wahr" | |||
else | |||
attr["SubobjektHatArtikel"] = "falsch" | |||
end | |||
if vorname ~= nil then | if vorname ~= nil then | ||
if | if page_exists then | ||
attr["VornameLink"] = "[[" .. name .. "|" .. vorname .. "]]" | attr["VornameLink"] = "[[" .. name .. "|" .. vorname .. "]]" | ||
else | else | ||
| Zeile 48: | Zeile 53: | ||
end | end | ||
if nachname ~= nil then | if nachname ~= nil then | ||
if | if page_exists then | ||
attr["NachnameLink"] = "[[" .. name .. "|" .. nachname .. "]]" | attr["NachnameLink"] = "[[" .. name .. "|" .. nachname .. "]]" | ||
else | else | ||