Module:Template link general: Difference between revisions
m
1 revision imported
en>Primefac (update from sandbox - fixes to _show_result and adding _expand) |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by the same user not shown) | |||
Line 90:
local dontBrace = _ne(args.brace) or _ne(args.braceinside)
local code = _ne(args.code) or _ne(args.tt)
-- Build the link part
Line 100 ⟶ 98:
-- Build the arguments
local textPart = ""
local textPartBuffer = "
local i = 2
while args[i] do
local val = args[i]
textPartBuffer = textPartBuffer .. '|'
if val ~= "" then
if _ne(args.nowiki) then
Line 113 ⟶ 109:
val = nw(mw.text.unstripNoWiki(val))
end
▲ val = '<span style="font-style:italic;">' .. val .. '</span>'
textPart = textPart .. textPartBuffer .. val
textPartBuffer = ""
end
i = i
end
Line 146 ⟶ 133:
--]]
if _ne(args.debug) then ret = ret .. '\n<pre>' .. mw.text.encode(mw.dumpObject(args)) .. '</pre>' end
return ret
end
|