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, limit = 1, property = 'P373' }
if params[1] and params[1] ~= '' then
link = 'Category:' .. params[1]
if (
(namespace == 0 or namespace == 14) and
(not params['lokální'] or params['lokální'] ~= 'ano')
) then
if not property then