ഘടകം:Other uses of

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

ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:Other uses of/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്

local mOtheruses = require('Module:Other uses')
local p = {}
p.otherusesof = function (frame)
	function getArg (num)
		local x = frame:getParent().args[num]
		return x ~= '' and x or nil
	end
	local currentTitle = mw.title.getCurrentTitle().prefixedText
	local ofWhat = getArg(1) or currentTitle
	local page = getArg(2)
	local options = {
		title = ofWhat,
		otherText = string.format('uses of "%s"', ofWhat)
	}
	local oddCat = "[[Category:Hatnote templates using unusual parameters]]"
	if (mw.ustring.lower(getArg(1) or "") == mw.ustring.lower(currentTitle)) or
		((not getArg(1)) and not getArg(2)) then
			options.otherText = options.otherText .. oddCat
	end
	arg = page and {page} or {}
	return mOtheruses._otheruses(arg, options)
end
return p
"https://ml.wikipedia.org/w/index.php?title=ഘടകം:Other_uses_of&oldid=3403418" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്