Մոդուլ:Ստորոգութիւնը միայն յօդուածներուն մէջ

Documentation for this module may be created at Մոդուլ:Ստորոգութիւնը միայն յօդուածներուն մէջ/doc

local p = {}

function p.main( frame )
	local s = ""
	local title = mw.title.getCurrentTitle()
	local pargs = frame:getParent().args
	if title and title.namespace == 0 and not pargs["nocat"] then
		for i,v in ipairs(pargs) do
			s = s .. "[[Ստորոգութիւն:" .. v .. "]]"
		end
	end
	return s
end

return p