"ഘടകം:TaxonItalics" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Content deleted Content added
No edit summary
No edit summary
വരി 5:
function p.italicizeTaxonName(frame)
local name = frame.args[1] or ''
name = string.gsub(string.gsub(name, "<i>", "''"), "</i>", "''")
local result = name
local italbegin = "''"
local italend = "''"
if name ~= '' then
if string.sub(name, 1, 2) == "''" or string.sub(name, 1, 2) == "<i>" then
-- do nothing if already contains italic markers at the start
else
Line 15 ⟶ 16:
if #words ~= 4 then
result = italbegin .. name .. italend
elseif string.find(name, "''", 1, true) or string.find(name, "<i>", 1, true) then
result = italbegin .. name .. italend
else
"https://ml.wikipedia.org/wiki/ഘടകം:TaxonItalics" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്