l<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://climatewiki.earth/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAuthority_control%2Fdocumentation</id>
	<title>Module:Authority control/documentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://climatewiki.earth/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAuthority_control%2Fdocumentation"/>
	<link rel="alternate" type="text/html" href="https://climatewiki.earth/wiki/index.php?title=Module:Authority_control/documentation&amp;action=history"/>
	<updated>2026-05-05T04:50:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://climatewiki.earth/wiki/index.php?title=Module:Authority_control/documentation&amp;diff=9452&amp;oldid=prev</id>
		<title>BranchOut: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://climatewiki.earth/wiki/index.php?title=Module:Authority_control/documentation&amp;diff=9452&amp;oldid=prev"/>
		<updated>2023-12-30T03:55:52Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:55, 30 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BranchOut</name></author>
	</entry>
	<entry>
		<id>https://climatewiki.earth/wiki/index.php?title=Module:Authority_control/documentation&amp;diff=9451&amp;oldid=prev</id>
		<title>Wikipedia&gt;MSGJ: use string.format to improve clarity of messages</title>
		<link rel="alternate" type="text/html" href="https://climatewiki.earth/wiki/index.php?title=Module:Authority_control/documentation&amp;diff=9451&amp;oldid=prev"/>
		<updated>2023-07-18T09:54:01Z</updated>

		<summary type="html">&lt;p&gt;use string.format to improve clarity of messages&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require('strict')&lt;br /&gt;
local p = {}&lt;br /&gt;
local configfile = 'Module:Authority control/config' -- default configuation module&lt;br /&gt;
local arg = mw.getCurrentFrame().args.config&lt;br /&gt;
if arg and arg~='' then&lt;br /&gt;
	configfile = 'Module:Authority control/config/' .. arg&lt;br /&gt;
end&lt;br /&gt;
local config&lt;br /&gt;
if mw.title.new(configfile).exists then&lt;br /&gt;
	config = mw.loadData(configfile)&lt;br /&gt;
else&lt;br /&gt;
	return error('Invalid configuration file',0)&lt;br /&gt;
end&lt;br /&gt;
local title = mw.title.getCurrentTitle()&lt;br /&gt;
local namespace = title.namespace&lt;br /&gt;
local testcases = title.subpageText == config.i18n.testcases&lt;br /&gt;
local makelink = require(config.i18n.ACmodule).makelink&lt;br /&gt;
local lang = mw.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
local function needsAttention(sortkey)&lt;br /&gt;
	return '[[' .. config.i18n.category .. ':' .. config.i18n.attentioncat .. '|' .. sortkey .. title.text .. ']]'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function addCat(cat,sortkey)&lt;br /&gt;
	if cat and cat ~= '' and (namespace == 0 or namespace == 14 or testcases) then&lt;br /&gt;
		local redlinkcat = ''&lt;br /&gt;
		if testcases == false and mw.title.new(cat, 14).exists == false then&lt;br /&gt;
			redlinkcat = needsAttention('N')&lt;br /&gt;
		end&lt;br /&gt;
		if sortkey then&lt;br /&gt;
			cat = '[[' .. config.i18n.category .. ':'..cat..'|' .. sortkey .. title.text .. ']]'&lt;br /&gt;
		else&lt;br /&gt;
			cat = '[[' .. config.i18n.category .. ':'..cat..']]'&lt;br /&gt;
		end&lt;br /&gt;
		cat = cat .. redlinkcat&lt;br /&gt;
		return cat&lt;br /&gt;
	else&lt;br /&gt;
		return ''&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Creates a human-readable standalone wikitable version of conf, and tracking categories with page counts, for use in the documentation&lt;br /&gt;
function p.docConfTable(frame)&lt;br /&gt;
	local function checkcat(category,label)&lt;br /&gt;
		local ret='[[:Category:'..category..'|'..label..']]'&lt;br /&gt;
		--if mw.title.new(category,14).exists == false then&lt;br /&gt;
			--ret = ret..' &amp;lt;span class=&amp;quot;plainlinks&amp;quot; style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;&amp;amp;#91;['..tostring(mw.uri.fullUrl('Category:'..category,'action=edit&amp;amp;preload=Template:Authority_control/preload'))..' create]&amp;amp;#93;&amp;lt;/span&amp;gt;'&lt;br /&gt;
		--end&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
	local doc = ''&lt;br /&gt;
	local a, P, f = 0, 0, 0 --cumulative sums&lt;br /&gt;
	local count = frame.args.count or false&lt;br /&gt;
	local columns = 3 + (count and 1 or 0)&lt;br /&gt;
	local row = function(conf)&lt;br /&gt;
		local category = conf.category or conf[1]&lt;br /&gt;
		local articleCat = string.format(config.i18n.cat,category)&lt;br /&gt;
		local articleCount = mw.site.stats.pagesInCategory(articleCat,config.i18n.pages)&lt;br /&gt;
		local errorCat = conf.errorcat or string.format(&lt;br /&gt;
			config.i18n.cat,&lt;br /&gt;
			config.i18n.faulty .. ' ' .. category&lt;br /&gt;
		)&lt;br /&gt;
		local errorCount =  mw.site.stats.pagesInCategory(errorCat,config.i18n.pages)&lt;br /&gt;
		P = P + 1 --property count&lt;br /&gt;
		a = a + articleCount&lt;br /&gt;
		f = f + errorCount&lt;br /&gt;
		local getstatement = function(id,propid,qualid)&lt;br /&gt;
			local statement = mw.wikibase.getBestStatements('P' .. id, 'P' .. propid)&lt;br /&gt;
			local value&lt;br /&gt;
			if statement and statement[1] and statement[1].mainsnak.datavalue.value.id then&lt;br /&gt;
				value = statement[1].mainsnak.datavalue.value.id&lt;br /&gt;
				local qual&lt;br /&gt;
				if qualid and statement[1].qualifiers['P' .. qualid][1].datavalue.value then&lt;br /&gt;
					qual = statement[1].qualifiers['P' .. qualid][1].datavalue.value&lt;br /&gt;
				end&lt;br /&gt;
				return value, qual&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		local _, example = getstatement(conf.property, 1855, conf.property)&lt;br /&gt;
		if not example then example = '' end&lt;br /&gt;
		example = frame:expandTemplate{title = &amp;quot;Hlist&amp;quot;, args = {'\n' .. makelink(conf,{id=example},1)}} .. '\n'&lt;br /&gt;
		local getname = function(nameprop)&lt;br /&gt;
			local name = getstatement(conf.property,nameprop)&lt;br /&gt;
			if name then&lt;br /&gt;
				return frame:expandTemplate{title='Wikidata fallback link',args={name}}&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		local name = getname(1629) or getname(10726) or ''&lt;br /&gt;
		local out = ''&lt;br /&gt;
		if conf.remark then&lt;br /&gt;
			out = out .. '&amp;lt;tr&amp;gt;&amp;lt;td rowspan=2&amp;gt;'&lt;br /&gt;
		else&lt;br /&gt;
			out = out .. '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
		out = out .. name .. '&amp;lt;/td&amp;gt;' ..&lt;br /&gt;
			'&amp;lt;td style=&amp;quot;text-align: center&amp;quot;&amp;gt;' .. config.sections[conf.section].name .. '&amp;lt;/td&amp;gt;' ..&lt;br /&gt;
			'&amp;lt;td data-sort-value=' .. conf.property .. '&amp;gt;' .. frame:expandTemplate{title='Wikidata property link',args={id='f',conf.property}} .. '&amp;lt;/td&amp;gt;' ..&lt;br /&gt;
			'&amp;lt;td&amp;gt;' .. example .. '&amp;lt;/td&amp;gt;'&lt;br /&gt;
		if count then&lt;br /&gt;
			out = out .. '&amp;lt;td style=&amp;quot;text-align: right;&amp;quot;&amp;gt;'..checkcat(articleCat,lang:formatNum(articleCount))..' ('..checkcat(errorCat,errorCount)..')&amp;lt;/td&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
		out = out .. '&amp;lt;/tr&amp;gt;'&lt;br /&gt;
		if conf.remark then&lt;br /&gt;
			out = out .. &amp;quot;&amp;lt;tr class='expand-child'&amp;gt;&amp;lt;td colspan=&amp;quot; .. columns .. &amp;quot;&amp;gt;'''Remarks:''' &amp;quot; .. frame:preprocess{text = conf.remark} .. &amp;quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
	local doc = '&amp;lt;table class=&amp;quot;wikitable sortable&amp;quot;&amp;gt;' ..&lt;br /&gt;
	  '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. lang:ucfirst(config.i18n.identifier) .. '&amp;lt;/th&amp;gt;' ..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. config.i18n.Section .. '&amp;lt;/th&amp;gt;' ..&lt;br /&gt;
	  '&amp;lt;th data-sort-type=number&amp;gt;' .. config.i18n.WDproperty .. '&amp;lt;/th&amp;gt;' ..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. config.i18n.Appears_as .. '&amp;lt;/th&amp;gt;'&lt;br /&gt;
	if count then&lt;br /&gt;
	 	doc = doc .. '&amp;lt;th&amp;gt;[[:' .. config.i18n.category .. ':' .. config.i18n.maincat .. '|' .. config.i18n.Articles .. ']] '&lt;br /&gt;
	 		.. '([[:' .. config.i18n.category .. ':' .. config.i18n.faultcat .. '|' .. config.i18n.Faults .. ']])&amp;lt;/th&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	doc = doc .. '&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	for _, conf in pairs(config.config) do&lt;br /&gt;
		doc = doc .. row(conf)&lt;br /&gt;
	end&lt;br /&gt;
	if count then&lt;br /&gt;
		doc = doc .. '&amp;lt;tr&amp;gt;&amp;lt;th style=&amp;quot;text-align: right;&amp;quot; colspan=' .. columns-1 .. '&amp;gt;' .. config.i18n.Totals .. '&amp;lt;/th&amp;gt;' ..&lt;br /&gt;
			'&amp;lt;th style=&amp;quot;text-align: right;&amp;quot;&amp;gt;' .. P .. '&amp;lt;/th&amp;gt;' ..&lt;br /&gt;
			'&amp;lt;th style=&amp;quot;text-align: right;&amp;quot;&amp;gt;' .. lang:formatNum(a) .. ' ([[:' .. config.i18n.category .. ':' .. config.i18n.allfaultycat .. '|' .. f .. ']])&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	doc = doc .. '&amp;lt;/table&amp;gt;'&lt;br /&gt;
	return doc&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.errorTable(frame)&lt;br /&gt;
	local Table = '&amp;lt;table class=&amp;quot;wikitable sortable&amp;quot;&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. config.i18n.WDproperty .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. lang:ucfirst(config.i18n.faulty) .. ' ' .. config.i18n.identifiers .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;[[:' .. config.i18n.category .. ':' .. config.i18n.faultcat .. '|' .. config.i18n.Tracking_category .. ']]&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	local f, P = 0, 0, 0 --cumulative sums&lt;br /&gt;
	for _, conf in pairs(config.config) do&lt;br /&gt;
		local category = conf.errorcat or string.format(&lt;br /&gt;
			config.i18n.cat,&lt;br /&gt;
			config.i18n.faulty .. ' '  .. (conf.category or conf[1])&lt;br /&gt;
		)&lt;br /&gt;
		local count =  mw.site.stats.pagesInCategory(category,'pages')&lt;br /&gt;
		if count &amp;gt; 0 then&lt;br /&gt;
			P = P + 1&lt;br /&gt;
			f = f + count&lt;br /&gt;
			Table = Table..'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'..frame:expandTemplate{ title = config.i18n.linktemplate, args = { id = 'f', conf.property } } .. '&amp;lt;/td&amp;gt;'..&lt;br /&gt;
				'&amp;lt;td style=&amp;quot;text-align:center;&amp;quot;&amp;gt;'..tostring(count)..'&amp;lt;/td&amp;gt;'..&lt;br /&gt;
				'&amp;lt;td&amp;gt;[[:' .. config.i18n.category .. ':'..category..']]&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	Table = Table..'&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. config.i18n.Totals .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
		'&amp;lt;th style=&amp;quot;text-align:center;&amp;quot;&amp;gt;' .. '[[:' .. config.i18n.category .. ':' .. config.i18n.allfaultycat .. '|' .. tostring(f) .. ']]&amp;lt;/th&amp;gt;'..&lt;br /&gt;
		'&amp;lt;th style=&amp;quot;text-align:center;&amp;quot;&amp;gt;'..tostring(P)..'&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;'&lt;br /&gt;
	return Table&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.whitelisttable(frame)&lt;br /&gt;
	local Table = '&amp;lt;table class=&amp;quot;wikitable sortable&amp;quot;&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. config.i18n.Code .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. config.i18n.Topic .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. lang:ucfirst(config.i18n.identifiers) .. '&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	for code, wlist in pairs(config.whitelists) do&lt;br /&gt;
		Table = Table .. '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. code .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
			'&amp;lt;td&amp;gt;[[' .. mw.wikibase.getSitelink('Q' .. wlist.topic) .. ']]&amp;lt;/td&amp;gt;'&lt;br /&gt;
		local plist = {}&lt;br /&gt;
		for _, property in pairs(wlist.properties) do&lt;br /&gt;
			table.insert(plist,frame:expandTemplate{title='Wikidata property link', args={'P' .. property}})&lt;br /&gt;
		end&lt;br /&gt;
		Table = Table .. '&amp;lt;td&amp;gt;' .. table.concat(plist,', ') .. '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	Table = Table .. '&amp;lt;/table&amp;gt;'&lt;br /&gt;
	return Table&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.sectiontable(frame)&lt;br /&gt;
	local Table = '&amp;lt;table class=&amp;quot;wikitable sortable&amp;quot;&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. config.i18n.Section .. '&amp;lt;/th&amp;gt;' ..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. config.i18n.Description .. '&amp;lt;/th&amp;gt;'..&lt;br /&gt;
	  '&amp;lt;th&amp;gt;' .. lang:ucfirst(config.i18n.identifiers) .. '&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	for number,section in ipairs(config.sections) do&lt;br /&gt;
		Table = Table .. '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;' .. number .. '&amp;lt;/th&amp;gt;' ..	'&amp;lt;td&amp;gt;' .. section.name .. '&amp;lt;/td&amp;gt;'&lt;br /&gt;
		local plist = {}&lt;br /&gt;
		for _,id in pairs(config.config) do&lt;br /&gt;
			if id.section == number then&lt;br /&gt;
				table.insert(plist,frame:expandTemplate{title=config.i18n.linktemplate, args={'P' .. id.property}})&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		Table = Table .. '&amp;lt;td&amp;gt;' .. table.concat(plist,', ') .. '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	Table = Table .. '&amp;lt;/table&amp;gt;'&lt;br /&gt;
	return Table&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Main/External Call for Pages with authority control identifiers&lt;br /&gt;
function p.autoDetect(frame)&lt;br /&gt;
	local function whichTOC(frame) -- standardize TOC behavior via {{CatAutoTOC}}&lt;br /&gt;
		return frame:expandTemplate{ title = 'CatAutoTOC', args = { align = 'center' } }&lt;br /&gt;
	end&lt;br /&gt;
	local function wpa(frame,id,faulty)&lt;br /&gt;
		for _,conf in pairs(config.config) do&lt;br /&gt;
			if conf.category == id or conf[1] == id then&lt;br /&gt;
				local getname = function(nameprop)&lt;br /&gt;
					local name = mw.wikibase.getBestStatements('P'..conf.property,nameprop)&lt;br /&gt;
					if name and name[1] and name[1].mainsnak.datavalue.value.id then&lt;br /&gt;
						return frame:expandTemplate{title='Wikidata fallback link',args={name[1].mainsnak.datavalue.value.id}}&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				local name = getname('P1629') or getname('P10726') or ''&lt;br /&gt;
				local outString = frame:expandTemplate{ title = 'Category explanation', args = {'articles with '..name..' identifiers.'..' Please do not add [[Wikipedia:Categorization#Subcategorization|subcategories]].\nPages in this category should only be added by [[Module:Authority control]].'}}&lt;br /&gt;
					.. frame:expandTemplate{ title = 'Cat more', args = {'Wikipedia:Authority control', ':d:Property:P'..conf.property} }&lt;br /&gt;
					.. frame:expandTemplate{ title = 'Possibly empty category' }&lt;br /&gt;
					.. frame:expandTemplate{ title = 'Wikipedia category', args = { hidden = 'yes', tracking = 'yes' } }&lt;br /&gt;
					.. frame:expandTemplate{ title = 'Polluted category' }&lt;br /&gt;
					.. whichTOC( frame )&lt;br /&gt;
				if faulty then&lt;br /&gt;
					outString = outString .. addCat(config.i18n.faultcat,id) .. addCat(string.format(config.i18n.cat, id))&lt;br /&gt;
				else&lt;br /&gt;
					outString = outString .. addCat(config.i18n.maincat,id)&lt;br /&gt;
				end&lt;br /&gt;
				return outString&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if namespace == 14 then --cat space&lt;br /&gt;
		local wpfaultyID = mw.ustring.match(title.text, 'Articles with faulty (.+) identifiers')&lt;br /&gt;
		local wpID = mw.ustring.match(title.text, 'Articles with (.+) identifiers')&lt;br /&gt;
		if wpfaultyID then&lt;br /&gt;
			return wpa(frame,wpfaultyID,true)-- must be before wpID check, in case they both match&lt;br /&gt;
		elseif wpID then&lt;br /&gt;
			return wpa(frame,wpID,false)&lt;br /&gt;
		else&lt;br /&gt;
			return needsAttention('U')&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.idproposal(frame)&lt;br /&gt;
	local property = frame.args.property or ''&lt;br /&gt;
	local out = '&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;Wikidata property: ' .. frame:expandTemplate{title='Wikidata property link', args={'P' .. property}} .. '&amp;lt;/li&amp;gt;'&lt;br /&gt;
	out = out .. '&amp;lt;li&amp;gt;Section: '&lt;br /&gt;
	local section = frame.args.section or ''&lt;br /&gt;
	if section~='' then&lt;br /&gt;
		out = out .. config.sections[section].name .. ' (' .. section .. ')'&lt;br /&gt;
	else&lt;br /&gt;
		out = out .. 'Not specified'&lt;br /&gt;
	end&lt;br /&gt;
	out = out .. '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Link: '&lt;br /&gt;
	local link = frame.args.link or ''&lt;br /&gt;
	if link=='' then&lt;br /&gt;
		link = mw.wikibase.getBestStatements('P'..property,'P1630') or ''&lt;br /&gt;
		link = link[1].mainsnak.datavalue.value&lt;br /&gt;
	end	&lt;br /&gt;
	if link~='' then&lt;br /&gt;
		out = out .. '&amp;lt;code&amp;gt;' .. link .. '&amp;lt;/code&amp;gt;'&lt;br /&gt;
	else&lt;br /&gt;
		out = out .. 'Not specified'&lt;br /&gt;
	end&lt;br /&gt;
	out = out .. '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Label: '&lt;br /&gt;
	local label = frame.args.label or ''&lt;br /&gt;
	if label~='' then&lt;br /&gt;
		out = out .. label&lt;br /&gt;
	else&lt;br /&gt;
		out = out .. 'Not specified'&lt;br /&gt;
	end&lt;br /&gt;
	out = out .. '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Example: '&lt;br /&gt;
	local example = mw.wikibase.getBestStatements('P'..property,'P1855') or ''&lt;br /&gt;
	if example then&lt;br /&gt;
		example = example[1].qualifiers['P'..property][1].datavalue.value&lt;br /&gt;
		example = frame:expandTemplate{title = &amp;quot;Hlist&amp;quot;, args = {'\n' .. makelink({[1]='',link=link,label=label},{id=example},1)}} .. '\n'&lt;br /&gt;
		out = out .. example&lt;br /&gt;
	else&lt;br /&gt;
		out = out .. 'Not available'&lt;br /&gt;
	end&lt;br /&gt;
	out = out .. '&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;'&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;MSGJ</name></author>
	</entry>
</feed>