ഘടകം:Good article topics

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.

ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:Good article topics/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്

-- This module implements {{GA/Topic}}.

local p = {}

function p.main(frame)
	local topic = frame:getParent().args[1]
	if not topic then
		return ''
	end
	topic = topic:match('^%s*(.-)%s*$') -- Trim whitespace
	local ret
	if topic ~= '' then
		ret = p._main(topic)
	end
	ret = ret or ''
	return ret
end

function p._main(topic)
	topic = topic:lower()
	local data = mw.loadData('Module:Good article topics/data')
	return data[topic]
end

return p
"https://ml.wikipedia.org/w/index.php?title=ഘടകം:Good_article_topics&oldid=2563041" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്