Module:Template link general: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
it doesn't fully appreciate nowiki or something
(oh this is why. Why did I fakepipe this?)
(it doesn't fully appreciate nowiki or something)
Line 62:
if _ne(args.brace) then
textPart = '<nowiki>{{</nowiki>' .. textPart .. '<nowiki>}}</nowiki>'
elseif _ne(args.braceinside) then
textPart = '{' .. textPart .. '}'
Line 69:
titlePart = titlePart .. '|' .. textPart .. ']]'
if _ne(args.braceinside) then
titlePart = '<nowiki>{' .. titlePart .. '}</nowiki>'
end
return titlePart
Line 104:
-- final wrap
local ret = titlePart .. textPart
if not dontBrace then ret = '<nowiki>{{</nowiki>' .. ret .. '<nowiki>}}</nowiki>' end
if _ne(args.a) then ret = '<nowiki>*</nowiki>&nbsp;' .. ret end
if _ne(args.kbd) then ret = '<kbd>' .. ret .. '</kbd>' end
Line 114:
if _ne(args.nowrap) then ret = '<span class="nowrap">' .. ret .. '</span>' end
--[[ Wrap as html??
local span = mw.html.create('span')
span:wikitext(ret)
--]]
return ret
end
0

edits

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

Navigation menu