Open main menu

Changes

Module:Authority control

25 bytes added, 07:05, 6 April 2013
fix errors
end
local config conf = {
{ 'VIAF', '[[Virtual International Authority File|VIAF]]', 0, viafLink }
}
function p.authorityControl( frame )
local parentArgs = frame.:getParent().args
--Create rows
local lines elements = {} for k, params in pairs( conf in config ) do if parentArgs[confparams[01]] and parentArgs[confparams[01]] ~= '' then table.appendinsert( lineselements, confparams[12] .. ': ' .. confparams[34]( parentArgs[confparams[01]] ) )
end
end
 
local Navbox = require('Module:Navbox')
return navboxNavbox._navbox( {
name = 'Authority control',
bodyclass = 'hlist',
group1 = '[[Authority control]]',
list1 = table.concat( lineselements, '*' )
} )
end
return p
Anonymous user