Changes
no edit summary
function outputErrorgetCatForId( message, cat id ) local str title = mw.title.getCurrentTitle() local namespace = title.namespace if namespace == 0 then return '<span class="error">[[Category:Wikipedia articles with ' .. message id .. '</span>identifiers]]' if cat elseif namespace == 2 and not title.isSubpage then str = str return '[[Category:User pages with ' .. id .. ' identifiers]]' else return '[[Category:Miscellaneous pages with ' .. cat id .. 'identifiers]]'
end
end
function viafLink( id )
if not string.match( id, '^%d+$' ) then
return outputError( 'The VIAF id ' .. id .. ' is not valid.', 'Wikipedia articles with faulty authority control identifiers (VIAF)' )false
end
return '<span class="uid">[http://viaf.org/viaf/' .. id .. ' ' .. id .. ']</span>'
end
local elements = {}
for k, params in pairs( conf ) do
end
end