Module:Authority control files
Revision as of 15:59, 17 September 2019 by blackwiki>Tom.Reding (--exclude ce)
| This module depends on the following other modules: |
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
See also
local p = {}
function p.files(frame)
local nav = require( 'Module:Navbox' )
local conf = require( 'Module:Authority control' ).conf
local exclude = {
['MBAREA'] = 'MBAREA', --redundant [[MusicBrainz]] link
['MBI'] = 'MBI', --redundant [[MusicBrainz]] link
['MBL'] = 'MBL', --redundant [[MusicBrainz]] link
['MBP'] = 'MBP', --redundant [[MusicBrainz]] link
['MBRG'] = 'MBRG', --redundant [[MusicBrainz]] link
['MBS'] = 'MBS', --redundant [[MusicBrainz]] link
['MBW'] = 'MBW', --redundant [[MusicBrainz]] link
}
local elements = {}
for _, c in pairs( conf ) do
if exclude[c[1]] == nil then
table.insert( elements, c[2] )
end
end
return nav._navbox( {
name = 'Authority control files',
navboxclass = 'authority-control-files',
title = '[[Authority control|Authority control files]]',
bodyclass = 'hlist',
list1 = table.concat( elements, ' • ' )
} )
end
return p