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

Content deleted Content added
No edit summary
No edit summary
വരി 7:
local result = name
if name ~= '' then
if string.findsub(name, "''", 1, true2) == "''" or string.findsub(name, 1, 2) == "<i>", 1, true) then
-- do nothing if already contains italic markers at the start
else
local words = mw.text.split(name, " ", true)
if #words ~= 4 then
result = "<i>" .. name .. "</i>"
elseif string.find(name, "''", 1, true) or string.find(name, "<i>", 1, true) then
result = "<i>" .. name .. "</i>"
else
-- need test here for words[3] being connecting term
if words[3] == "subsp." or words[3] == "var." or words[3] == "subvar." or words[3] == "f." or words[3] == "subf." then
result = "<i>" .. words[1] .. " " .. words[2] .. "</i> " .. words[3] .. " <i>" .. words[4] .. "</i>"
"https://ml.wikipedia.org/wiki/ഘടകം:TaxonItalics" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്