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

Content deleted Content added
No edit summary
No edit summary
വരി 5:
function p.italicizeTaxonName(frame)
local name = frame.args[1] or ''
local result = ''name
if name ~= '' then
if string.find(name, "''", 1, true) or string.find(name, "<i>", 1, true) then
-- do nothing if already contains italic markers
result = name
else
local words = mw.text.split(name, " ", true)
വരി 15:
else
-- need test here for words[3] being connecting term
if word[3] == "subsp." then
result = "<i>" .. words[1] .. " " .. words[2] .. "</i> " .. words[3] .. " <i>" .. words[4] .. "</i>"
end
end
end
"https://ml.wikipedia.org/wiki/ഘടകം:TaxonItalics" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്