Jump to content

Module:Finditem

Gikan sa Wikipedia, ang gawasnong ensiklopedya
Rebisyon sa 20:34, 28 Hunyo 2017 sa Mr. Ibrahem (hisgot | mga tampo) (Created page with "local p = {} local i18n = { ["noentity"] = "Kategoriya:Articles without Wikidata item", } function p.find(frame) local entity = mw.wikibase.getEntityObject() if...")
(kalainan) ← Mas daang pag-usab | Kasamtangang rebisyon (kalainan) | Mas bag-ong rebisyon → (kalainan)

Documentation for this module may be created at Module:Finditem/doc

local p = {}
local i18n = 
	{
		["noentity"] = "[[Kategoriya:Articles without Wikidata item]]",
	
	}

function p.find(frame)
	local entity = mw.wikibase.getEntityObject()
	if frame.args[1] == nil 
		then er = i18n.noentity
		else er = frame.args[1]
	end
	if entity 
	then
		return ''
	else
	-- This is the place to insert a category for articles that don't have items in Wikidata.
	-- enwiki doesn't seem to have such a category, so in this case it is empty.
	-- For other wikis, just remove the two comment dashes and insert the correct category name.
		return er
	end
end
return p