Modul:Template link general: Unterschied zwischen den Versionen
Modul:Template link general (Quelltext anzeigen)
Version vom 21. April 2020, 01:44 Uhr
, vor 4 Jahrenuh, string 10?
KKeine Bearbeitungszusammenfassung |
(uh, string 10?) |
||
Zeile 52: | Zeile 52: | ||
if not _ne(textPart) then | if not _ne(textPart) then | ||
if titleObj ~= nil then | if titleObj ~= nil then | ||
textPart = titleObj.ns == 10 and args['1'] or titleObj.fullText | textPart = titleObj.ns == "10" and args['1'] or titleObj.fullText | ||
else | else | ||
-- redlink | -- redlink | ||
textPart = | textPart = args['1'] | ||
end | end | ||
end | end | ||
if _ne(args.subst) then | if _ne(args.subst) then | ||
-- HACK: the ns thing above is probably broken | |||
textPart = 'subst:' .. textPart | textPart = 'subst:' .. textPart | ||
end | end |