Module:Authority control files

From blackwiki
Revision as of 15:45, 1 September 2019 by blackwiki>Tom.Reding (Automatically updating version of Template:Authority control files)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


About

This template is used to display wikilinks to all currently supported authority control IDs, automatically loaded from Module:Authority control's p.conf table.

Usage

{{Authority control files}}

See also




local p = {}

function p.files(frame)
	local conf = require( "Module:Authority control" ).conf
	
	local nl = '\n'
	local nav = '{{Navbox'..
				'| name      = Authority control files'..
				'| title     = [[Authority control|Authority control files]]'..
				'| listclass = hlist'..
				'| state     = '..
				'| group1    = '..
				'| list1     = '
				
	for _, c in pairs( conf ) do
		nav = nav..nl..'* '..c[2]
	end
	
	return nav..nl..'}}'
end

return p