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

Content deleted Content added
(ചെ.) en:Module:Find_sources എന്നതിൽ നിന്ന് 14 പതിപ്പുകൾ ഇറക്കുമതി ചെയ്തു
don't quote disambiguation text for default searches using the current subpage name
വരി 105:
searchTerms[i] = s
end
searchTerms[1]if =not searchTerms[1] or title.subpageTextthen
-- Use the current subpage name as the default search query. If the page
-- uses a disambiguator like "Foo (bar)", make "Foo" the first query and
-- "bar" the second.
local term, dab = title.subpageText:match('^(.*) (%b())$')
if dab then
dab = dab:sub(2, -2) -- Remove parens
end
if term and dab then
searchTerms[1] = term
searchTerms[2] = dab
else
searchTerms[1] = title.subpageText
end
end
searchTerms[1] = '"' .. searchTerms[1] .. '"'
 
"https://ml.wikipedia.org/wiki/ഘടകം:Find_sources" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്