15.101
Bearbeitungen
(Änderung 756155 von HeikoBot (Diskussion) rückgängig gemacht.) Markierungen: Rückgängigmachung Zurückgesetzt |
(fix) Markierungen: Manuelle Zurücksetzung Zurückgesetzt |
||
| Zeile 398: | Zeile 398: | ||
end | end | ||
end | end | ||
t = t .. "[[" .. attr_name .. "::" .. val .. "]]" .. val_bracket | if mw.smw.getPropertyType(attr_name) == "_wpg" and not wik.pageexists(val) then -- Wenn Attribut-Typ = Seite, aber Seite nicht existiert | ||
t = t .. val .. "{{#set:" .. attr_name .. "=" .. val .. "}}" -- dann kein Link, sondern nur Attribut versteckt setzen | |||
else | |||
t = t .. "[[" .. attr_name .. "::" .. val .. "]]" | |||
end | |||
t = t .. val_bracket | |||
end | end | ||
if args.val_postfix ~= nil then | if args.val_postfix ~= nil then | ||