Jump to content

Module:Template link general: Difference between revisions

uh, string 10?
mNo edit summary
(uh, string 10?)
Line 52: Line 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 = trimTemplate(args['1'])
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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.