<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ephemeralfilm.info/a/Module:Pages_with_authority_control_identifiers/history?feed=atom</id>
	<title>Module:Pages with authority control identifiers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ephemeralfilm.info/a/Module:Pages_with_authority_control_identifiers/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="http://ephemeralfilm.info/a/Module:Pages_with_authority_control_identifiers/history"/>
	<updated>2026-05-01T08:33:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>http://ephemeralfilm.info/index.php?title=Module:Pages_with_authority_control_identifiers&amp;diff=37324&amp;oldid=prev</id>
		<title>JJR: 1 revision imported: auth control</title>
		<link rel="alternate" type="text/html" href="http://ephemeralfilm.info/index.php?title=Module:Pages_with_authority_control_identifiers&amp;diff=37324&amp;oldid=prev"/>
		<updated>2022-03-21T03:17:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: auth control&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:17, 21 March 2022&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>JJR</name></author>
	</entry>
	<entry>
		<id>http://ephemeralfilm.info/index.php?title=Module:Pages_with_authority_control_identifiers&amp;diff=37323&amp;oldid=prev</id>
		<title>w&gt;MSGJ: code for Category:Pages with XYZ no longer required</title>
		<link rel="alternate" type="text/html" href="http://ephemeralfilm.info/index.php?title=Module:Pages_with_authority_control_identifiers&amp;diff=37323&amp;oldid=prev"/>
		<updated>2022-03-18T13:05:52Z</updated>

		<summary type="html">&lt;p&gt;code for Category:Pages with XYZ no longer required&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;Module:No globals&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
local ac_conf = require(&amp;#039;Module:Authority control&amp;#039;).conf&lt;br /&gt;
local rmCats = require(&amp;#039;Module:Suppress categories&amp;#039;).main&lt;br /&gt;
local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
local title = currentTitle.text&lt;br /&gt;
&lt;br /&gt;
-- Local Utility Functions&lt;br /&gt;
local function whichTOC( frame )&lt;br /&gt;
	-- standardize TOC behavior via {{CatAutoTOC}}&lt;br /&gt;
	return frame:expandTemplate{ title = &amp;#039;CatAutoTOC&amp;#039;, args = { align = &amp;#039;center&amp;#039; } }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function redCatCheck( cat ) --cat == &amp;#039;Blah&amp;#039; (not &amp;#039;Category:Blah&amp;#039;, &amp;#039;[[Category:Blah]]&amp;#039;, etc.)&lt;br /&gt;
	if cat and cat ~= &amp;#039;&amp;#039; and mw.title.new(cat, 14).exists == false then&lt;br /&gt;
		return &amp;#039;[[Category:Pages with red-linked authority control categories]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function addCat( cat, id )&lt;br /&gt;
	if id and id ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;[[Category:&amp;#039;..cat..&amp;#039;|&amp;#039;..id..&amp;#039;]]&amp;#039;..redCatCheck(cat)&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;#039;[[Category:&amp;#039;..cat..&amp;#039;]]&amp;#039;..redCatCheck(cat)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--For use in [[Category:Articles with authority control information]], i.e. on [[Category:Articles with VIAF identifiers]]&lt;br /&gt;
local function wp( frame, id )&lt;br /&gt;
	for _, conf in pairs( ac_conf ) do&lt;br /&gt;
		if conf.category == id or conf[1] == id then&lt;br /&gt;
			local linktarget = conf.link or conf[1]..&amp;#039; (identifier)&amp;#039;&lt;br /&gt;
			local link    = &amp;#039;[[&amp;#039;..linktarget..&amp;#039;|&amp;#039;..conf[1]..&amp;#039;]]&amp;#039;&lt;br /&gt;
			local wdpl    = &amp;#039;:d:Property:P&amp;#039;..conf[2]&lt;br /&gt;
			local example = &amp;#039;The &amp;#039;..conf[1]..&amp;#039; identifier appears as &amp;#039;.. rmCats(conf[3](conf[5]))..&amp;#039; in the &amp;#039;..conf[4]..&amp;#039; section.&amp;#039;&lt;br /&gt;
			local txCatExplain = frame:expandTemplate{ title = &amp;#039;Category explanation&amp;#039;, args = {&amp;#039;articles with &amp;#039;..link..&amp;#039; identifiers.&amp;#039;..example..&amp;#039; Please do not add [[Wikipedia:Categorization#Subcategorization|subcategories]].&amp;#039;} }&lt;br /&gt;
			local txCatMore    = frame:expandTemplate{ title = &amp;#039;Cat more&amp;#039;, args = {&amp;#039;Wikipedia:Authority control&amp;#039;, wdpl} }&lt;br /&gt;
			local txEmptyCat   = frame:expandTemplate{ title = &amp;#039;Possibly empty category&amp;#039; }&lt;br /&gt;
			local txWPCat      = frame:expandTemplate{ title = &amp;#039;Wikipedia category&amp;#039;, args = { hidden = &amp;#039;yes&amp;#039;, tracking = &amp;#039;yes&amp;#039; } }&lt;br /&gt;
			local txTOC = whichTOC( frame )&lt;br /&gt;
			local wpCat = &amp;#039;Articles with authority control information&amp;#039;&lt;br /&gt;
			local outString = txCatExplain..txCatMore..txEmptyCat..txWPCat..txTOC..&amp;#039;\n&amp;#039;..&amp;#039;Pages in this category should only be added by [[Module:Authority control]].&amp;#039;..addCat(wpCat, id)&lt;br /&gt;
			return outString&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--For use in [[Category:Articles with faulty authority control information]], i.e. on [[Category:Articles with faulty VIAF identifiers]]&lt;br /&gt;
local function wpfaulty( frame, id )&lt;br /&gt;
	for _, conf in pairs( ac_conf ) do&lt;br /&gt;
		if conf.category == id or conf[1] == id then&lt;br /&gt;
			local linktarget = conf.link or conf[1]..&amp;#039; (identifier)&amp;#039;&lt;br /&gt;
			local wdpl       = &amp;#039;:d:Property:P&amp;#039;..conf[2]&lt;br /&gt;
			local txCatMore  = frame:expandTemplate{ title = &amp;#039;Cat more&amp;#039;, args = {&amp;#039;Wikipedia:Authority control&amp;#039;, linktarget, wdpl} }&lt;br /&gt;
			local txEmptyCat = frame:expandTemplate{ title = &amp;#039;Possibly empty category&amp;#039; }&lt;br /&gt;
			local txWPCat    = frame:expandTemplate{ title = &amp;#039;Wikipedia category&amp;#039;, args = { hidden = &amp;#039;yes&amp;#039;, tracking = &amp;#039;yes&amp;#039; } }&lt;br /&gt;
			local txDirtyCat = frame:expandTemplate{ title = &amp;#039;Polluted category&amp;#039; }&lt;br /&gt;
			local txTOC = whichTOC( frame )&lt;br /&gt;
			local idCat = &amp;#039;Articles with &amp;#039;..id..&amp;#039; identifiers&amp;#039;&lt;br /&gt;
			local wpfCat = &amp;#039;Articles with faulty authority control information&amp;#039;&lt;br /&gt;
			local outString = txCatMore..txEmptyCat..txWPCat..txDirtyCat..txTOC..&amp;#039;\n&amp;#039;..&lt;br /&gt;
							&amp;#039;Pages in this category should only be added by [[Module:Authority control]].&amp;#039;..&lt;br /&gt;
							addCat(idCat)..addCat(wpfCat, id)&lt;br /&gt;
			return outString&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Main/External Call&lt;br /&gt;
function p.autoDetect( frame )&lt;br /&gt;
	if currentTitle.namespace == 14 then --cat space&lt;br /&gt;
		local wpfaultyID = mw.ustring.match(title, &amp;#039;Articles with faulty ([%w%.%- ]+) identifiers&amp;#039;)&lt;br /&gt;
		local wpID       = mw.ustring.match(title, &amp;#039;Articles with ([%w%.%- ]+) identifiers&amp;#039;)&lt;br /&gt;
		if wpfaultyID then return wpfaulty( frame, wpfaultyID )     --must be before wpID check, in case they both match&lt;br /&gt;
		elseif wpID       then return wp( frame, wpID )             --to keep the regex simple&lt;br /&gt;
		else   return &amp;#039;[[Category:Pages with authority control identifiers unknown category]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>w&gt;MSGJ</name></author>
	</entry>
</feed>