local p = {}
function p.print(frame)
local parent = frame:getParent()
local params = parent and parent.args or {}
local title = mw.title.getCurrentTitle()
local pagename = title.text
local namespace = title.namespace
local link, show, cats = '', '', ''
local Wikidata = require 'Modul:Wikidata'
local entity = mw.wikibase.getEntity()
local sitelink = Wikidata.getSitelinkFromLua{ entity = entity, site = 'commonswiki' }
local property = Wikidata.formatStatementsFromLua{ entity = entity, property = 'P935', limit = 1 }
if params[1] and params[1] ~= '' then
link = params[1]
if (namespace == 0 or namespace == 14) and not property then
cats = cats .. '[[Kategorie:Údržba:Commons není na Wikidatech|' .. pagename .. ']]'
end