Module:sinhala project
- පහත දැක්වෙන උපදෙස්, Module:sinhala project/documentation හි පිහිටා ඇත. [සංස්කරණය] Categories were auto-generated by Module:documentation. [edit]
- ප්රයෝජනවත් සබැඳි: උප පිටු ලැයිස්තුව • සබැඳි • transclusions • testcases • sandbox
ඉංග්රීසි විකිපොත් අඩවියෙන් මෙහි ගෙන ආ සැකිලි සහ මොඩියුල සඳහා අවශ්ය පරිවර්තන සඳහා උපකාරී වීම මෙම මොඩියුලයේ අරමුණයි.
උපදෙස්[සංස්කරණය]
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