Module:Template link general: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
looks like nowiki logic got inverted
mNo edit summary
(looks like nowiki logic got inverted)
Line 102:
local val = args[ii]
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end
if not _ne(args.nowiki) then val = nw(val) end
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
textPart = textPart .. '&#124;' .. val
Line 111:
local ret = titlePart .. textPart
if not dontBrace then ret = nw('{{') .. ret .. nw('}}') end
if _ne(args.a) then ret = mwnw('*') .. '&nbsp;' .. ret end
if _ne(args.kbd) then ret = '<kbd>' .. ret .. '</kbd>' end
if code then
Line 124:
span:wikitext(ret)
--]]
if _ne(args.debug) then ret = ret .. '\n<pre>' .. mw.text.encode(mw.dumpObject(args)) .. '</pre>' end
return ret
end
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu