Module:අභිධානය

Wiktionary වෙතින්

title සමඟ ගනුදෙනු කිරීම සඳහා ලියන ලදී.

local namespace = mw.title.getCurrentTitle().nsText


local p = {} -- p stands for package

function p.getCurrentTitle()
	return ""
end

function p.getNsText()
	local fullpagename = mw.title.getCurrentTitle().fullText
	local title = mw.title.getCurrentTitle();
	local namespace = title.nsText
	local nsCheck = "උපග්‍රන්ථය:"
	local nsReturn = "උපග්‍රන්ථය"

	if (namespace == '' ) then
		if fullpagename:sub(1, 31) == nsCheck then
			return nsReturn
		else
			return namespace
		end
	else
		return namespace
	end
end

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