Module:Tlg: Difference between revisions
Content added Content deleted
Artoria2e5 (talk | contribs) mNo edit summary |
Artoria2e5 (talk | contribs) (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 = |
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 |