Module:Tlg: Difference between revisions
Content added Content deleted
Artoria2e5 (talk | contribs) (poking with the mw.html....) |
Artoria2e5 (talk | contribs) m ((confused look)) |
||
Line 50: | Line 50: | ||
if not _ne(textPart) then |
if not _ne(textPart) then |
||
if titleObj ~= nil then |
if titleObj ~= nil then |
||
textPart = titleObj.ns == 10 and |
textPart = titleObj.ns == 10 and args['1'] or titleObj.fullText |
||
else |
else |
||
-- redlink |
-- redlink |
||
Line 114: | Line 114: | ||
if _ne(args.nowrap) then ret = '<span class="nowrap">' .. ret .. '</span>' end |
if _ne(args.nowrap) then ret = '<span class="nowrap">' .. ret .. '</span>' end |
||
-- Wrap as html |
-- Wrap as html?? |
||
local span = mw.html.create('span') |
local span = mw.html.create('span') |
||
span:wikitext(ret) |
span:wikitext(ret) |
||
return |
return ret |
||
end |
end |
||