Модуль:Wikidata/category

< Модуль:Wikidata
Версия от 13:45, 8 февраля 2022; Adam (обсуждение | вклад) (Новая страница: «local p = {} function p.categorizeIfNoParams(frame) local topFrame = frame while topFrame:getParent() do topFrame = topFrame:getParent() end for _ in pairs( topFrame.args ) do return end return "Категория:Тептар:Карточки без параметров" end return p»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

local p = {}
 
function p.categorizeIfNoParams(frame)
	local topFrame = frame
	while topFrame:getParent() do topFrame = topFrame:getParent() end
	for _ in pairs( topFrame.args ) do return end
	return "[[Категория:Тептар:Карточки без параметров]]"
end

return p