Module:sinhala project

Wiktionary වෙතින්

ඉංග්‍රීසි විකිපොත් අඩවියෙන් මෙහි ගෙන ආ සැකිලි සහ මොඩියුල සඳහා අවශ්‍ය පරිවර්තන සඳහා උපකාරී වීම මෙම මොඩියුලයේ අරමුණයි.

උපදෙස්[සංස්කරණය]


local p = {} -- p stands for package

function startswith(test_string, start)
	-- return mw.ustring.sub(mw.ustring.lower(test_string),1,mw.ustring.len(start))==mw.ustring.lower(start)
	-- return (test_string:sub(1, start:len()) == start)
	return false;
end

function p.inNamespace( title, inNamespace )
	name_space = ""
	if (inNamespace == "Appendix") or (inNamespace == "උපග්‍රන්ථය") then
		name_space = "උපග්‍රන්ථය"

		if startswith(title, name_space) then
			return true;
		end
	end

	return false;
end

return p
"https://si.wiktionary.org/w/index.php?title=Module:sinhala_project&oldid=28732" වෙතින් සම්ප්‍රවේශනය කෙරිණි