<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://www.wikonsult.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AAutorit%C3%A9</id>
	<title>Module:Autorité - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikonsult.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AAutorit%C3%A9"/>
	<link rel="alternate" type="text/html" href="https://www.wikonsult.org/index.php?title=Module:Autorit%C3%A9&amp;action=history"/>
	<updated>2026-08-08T19:17:08Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://www.wikonsult.org/index.php?title=Module:Autorit%C3%A9&amp;diff=5&amp;oldid=prev</id>
		<title>Yves.bertin : 1 révision importée</title>
		<link rel="alternate" type="text/html" href="https://www.wikonsult.org/index.php?title=Module:Autorit%C3%A9&amp;diff=5&amp;oldid=prev"/>
		<updated>2019-02-24T14:16:40Z</updated>

		<summary type="html">&lt;p&gt;1 révision importée&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 24 février 2019 à 14:16&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fr&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Aucune différence)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yves.bertin</name></author>
		
	</entry>
	<entry>
		<id>https://www.wikonsult.org/index.php?title=Module:Autorit%C3%A9&amp;diff=4&amp;oldid=prev</id>
		<title>w.fr&gt;Hlm Z. : utilisation de liste-horizontale (WP:ACC)</title>
		<link rel="alternate" type="text/html" href="https://www.wikonsult.org/index.php?title=Module:Autorit%C3%A9&amp;diff=4&amp;oldid=prev"/>
		<updated>2019-01-01T16:36:52Z</updated>

		<summary type="html">&lt;p&gt;utilisation de liste-horizontale (&lt;a href=&quot;https://en.wikipedia.org/wiki/ACC&quot; class=&quot;extiw&quot; title=&quot;wp:ACC&quot;&gt;WP:ACC&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local wd = require( 'Module:Wikidata' )&lt;br /&gt;
&lt;br /&gt;
--nombre maximum de référence &amp;quot;autorité&amp;quot; qui doivent être affichée. La valeur de 12 a été acté par défaut en 2017.&lt;br /&gt;
local nbMaxReferenceParPage = 12&lt;br /&gt;
&lt;br /&gt;
local function bneUrl( id )&lt;br /&gt;
	if not id:match( '^XX%d%d%d%d%d%d?%d?$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&amp;amp;authority_id=' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function sbnUrl( id )&lt;br /&gt;
	if not id:match( '^IT\\ICCU\\%d%d%d%d%d%d%d%d%d%d$' ) and not id:match( '^IT\\ICCU\\%u%u[%d%u]%u\\%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://id.sbn.it/af/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ndlUrl( id )&lt;br /&gt;
	if not id:match( '^0?%d%d%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://id.ndl.go.jp/auth/ndlna/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ntaUrl( id )&lt;br /&gt;
	if not id:match( '^%d%d%d%d%d%d%d%d.$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://data.bibliotheken.nl/id/thes/p' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nlpUrl( id )&lt;br /&gt;
	-- exemples de codes valides : A11107844, A1157477X&lt;br /&gt;
	if not id:match( '^A?%d%d%d%d%d%d%d[%dX]$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=01&amp;amp;IM=04&amp;amp;NU=01&amp;amp;WI=' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nliUrl( id )&lt;br /&gt;
	if not id:match( '^0?%d%d%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://aleph.nli.org.il/F/?func=find-b&amp;amp;local_base=NNL10&amp;amp;find_code=SYS&amp;amp;con_lng=eng&amp;amp;request=' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nukatUrl( id )&lt;br /&gt;
	if not id:match( '^n?%d%d%d%d%d%d%d%d$' ) and not id:match( '^n?%d%d%d%d%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://viaf.org/processed/NUKAT|' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function catalUrl( id )&lt;br /&gt;
	if not id:match( '^a?%d%d%d%d%d%d%d.$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://cantic.bnc.cat/registres/CUCId/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function selibrUrl( id )&lt;br /&gt;
	if not id:match( '^[1-9]%d%d%d%d$' ) and not id:match( '^[1-9]%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://libris.kb.se/auth/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function reroUrl( id )&lt;br /&gt;
	--exemple d'un code valide est 01-R008412216, 02-A000173676&lt;br /&gt;
	if not id:match( '^0[1234]%-[AR]%d%d%d%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://data.rero.ch/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function bavUrl( id )&lt;br /&gt;
	--exemple d'un code valide est ADV10001961&lt;br /&gt;
	if not id:match( '^ADV%d%d%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://viaf.org/processed/BAV|' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function idCanadia( id )&lt;br /&gt;
	--exemple d'un code valide est 1024H9993&lt;br /&gt;
	if not id:match( '^%d%d%d%d[A-Z]%d%d%d%d[EF]?$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'https://www.collectionscanada.gc.ca/canadiana-authorities/index/view?index_name=cdnAutNbr&amp;amp;lang=fr&amp;amp;search_text=' .. id .. '&amp;amp;page=1&amp;amp;cdnAutNbr' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nlaUrl( id )&lt;br /&gt;
	--exemple d'un code valide est nm1942312&lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://nla.gov.au/anbd.aut-an' .. id  &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[=[ en attendant que la bibliothèque du Québec ait une page sur son site web pour les articles référencés par l'idBAnQ (actuellement, page du site Viaf&lt;br /&gt;
local function idBAnQa( id )&lt;br /&gt;
	exemple d'un code valide est 0001215324&lt;br /&gt;
	if not id:match( '^%d%d%d%d%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://viaf.org/processed/B2Q|' .. id&lt;br /&gt;
end&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local function bibsysUrl( id )&lt;br /&gt;
--	exemple d'un code valide est 0001215324&lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'https://authority.bibsys.no/authority/rest/authorities/html/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function n6iUrl( id )&lt;br /&gt;
--	exemple d'un code valide est vtls000033830 mais pas de format officiel précisé pour les tests dans le module&lt;br /&gt;
	if not id:match( '^vtls%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://catalogue.nli.ie/Record/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nskUrl( id )&lt;br /&gt;
--	exemple d'un code valide est 000339950 &lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://katalog.nsk.hr/F/?func=direct&amp;amp;doc_number=' .. id .. '&amp;amp;local_base=nsk10'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Bibliothèque Nationale de Russie (NLR ou RSL)&lt;br /&gt;
local function rslUrl( id )&lt;br /&gt;
--	exemple d'un code valide est 000080362 &lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://aleph.rsl.ru/F?func=find-b&amp;amp;find_code=SYS&amp;amp;adjacent=Y&amp;amp;local_base=RSL11&amp;amp;request=' .. id &lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque Nationale Tchèque (NKCL)&lt;br /&gt;
local function nkcUrl( id )&lt;br /&gt;
--	exemple d'un code valide est jcu2014834887 format [a-z]{2,4}[0-9]{2,14}&lt;br /&gt;
	if not id:match( '^%a%a+%d%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://aut.nkp.cz/' .. id &lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque Nationale du Québec pour les ouvrages&lt;br /&gt;
local function idBAnQo( id )&lt;br /&gt;
	--exemple d'un code valide est 1986863&lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://collections.banq.qc.ca/ark:/52327/|' .. id&lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque Nationale du Danemark&lt;br /&gt;
--[=[ en attendant que la bibliothèque du Québec ait une page sur son site web pour les articles référencés par l'idDBC (actuellement, page du site Viaf&lt;br /&gt;
local function idDbc( id )&lt;br /&gt;
	--exemple d'un code valide est 87097968101751&lt;br /&gt;
	if not id:match( '^87%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'https://viaf.org/processed/DBC|' .. id&lt;br /&gt;
end&lt;br /&gt;
]=]&lt;br /&gt;
--Bibliothèque Nationale du Chili&lt;br /&gt;
local function idBnchl( id )&lt;br /&gt;
	--exemple d'un code valide est 10000000000000000063660&lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://www.bncatalogo.cl/F?func=direct&amp;amp;local_base=BNC01&amp;amp;doc_number=' .. id&lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque Nationale du Portugal&lt;br /&gt;
local function idPtbnp( id )&lt;br /&gt;
	--exemple d'un code valide est 130325&lt;br /&gt;
	if not id:match( '^%d%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://urn.bn.pt/nca/unimarc-authorities/txt?id=' .. id&lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque Nationale du Lettonie&lt;br /&gt;
local function idLnb( id )&lt;br /&gt;
	--exemple d'un code valide est 000001327&lt;br /&gt;
	if not id:match( '^%d%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'https://lira.lanet.lv/F?func=direct&amp;amp;local_base=lnc10&amp;amp;doc_number=' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function idOclc( id )&lt;br /&gt;
	--exemple d'un code valide est 000001327&lt;br /&gt;
	if not id:match( '^0*[1-9]%d*$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return 'http://www.worldcat.org/oclc/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----***********************************************************************************************************************&lt;br /&gt;
-- ajouter ici les nouvelles fonctions pour références&lt;br /&gt;
----***********************************************************************************************************************&lt;br /&gt;
&lt;br /&gt;
local function leonoreUrl( id )&lt;br /&gt;
-- Identifiants allant de LH/1/1 à LH/2794/54 (légionnaires)&lt;br /&gt;
-- Identifiants allant de C/0/1 à C/0/84 (84 légionnaires célèbres)&lt;br /&gt;
-- Identifiants allant de 19800035/1/1 à 19800035/385/51670 (légionnaires décédés entre 1954 et 1977, et quelques dossiers de légionnaires décédés avant 1954)&lt;br /&gt;
	if not id:match( '^LH/%d%d?%d?%d?/%d%d?%d?$' ) and&lt;br /&gt;
	   not id:match( '^C/0/%d%d?$' ) and&lt;br /&gt;
	   not id:match( '^19800035/%d%d?%d?%d?/%d%d?%d?%d?%d?$' ) and&lt;br /&gt;
	   not id:match( '^19800035/%d%d?%d?%d?/%d%d?%d?%d?%d?Bis$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://www.culture.gouv.fr/public/mistral/leonore_fr?ACTION=CHERCHER&amp;amp;FIELD_1=COTE&amp;amp;VALUE_1=' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Returns the ISNI check digit isni must be a string where the 15 first elements are digits&lt;br /&gt;
local function getIsniCheckDigit( isni )&lt;br /&gt;
	local total = 0&lt;br /&gt;
	for i = 1, 15 do&lt;br /&gt;
		local digit = isni:byte( i ) - 48 --Get integer value&lt;br /&gt;
		total = ( total + digit ) * 2&lt;br /&gt;
	end&lt;br /&gt;
	local remainder = total % 11&lt;br /&gt;
	local result = ( 12 - remainder ) % 11&lt;br /&gt;
	if result == 10 then&lt;br /&gt;
		return &amp;quot;X&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return tostring( result )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Validate ISNI and returns it as a 16 characters string or returns false if it's invalid&lt;br /&gt;
--See http://support.orcid.org/knowledgebase/articles/116780-structure-of-the-orcid-identifier&lt;br /&gt;
local function validateIsni( id )&lt;br /&gt;
	id = id:gsub( '[ %-]', '' ):upper()&lt;br /&gt;
	if not id:match( '^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d[%dX]$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	if getIsniCheckDigit( id ) ~= string.char( id:byte( 16 ) ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isniUrl( id )&lt;br /&gt;
	id = validateIsni( id )&lt;br /&gt;
	if not id then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://isni.org/isni/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ciniiUrl( id )&lt;br /&gt;
	return 'http://ci.nii.ac.jp/author/' .. id .. '?l=en'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function sudocUrl( id )&lt;br /&gt;
	if not id:match( '^%d%d%d%d%d%d%d%d[%dxX]$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://www.idref.fr/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function archivesnationalesUrl( id )&lt;br /&gt;
	if not id:match( '^FRAN_NP_%d%d%d%d%d%d$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'https://www.siv.archives-nationales.culture.gouv.fr/siv/NP/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function bnfUrls( id )&lt;br /&gt;
	--Add cb prefix if it has been removed&lt;br /&gt;
	if not id:match( '^cb.+$' ) then&lt;br /&gt;
		id = 'cb' .. id&lt;br /&gt;
	end&lt;br /&gt;
	return {&lt;br /&gt;
		'http://catalogue.bnf.fr/ark:/12148/' .. id,&lt;br /&gt;
		'http://data.bnf.fr/ark:/12148/' .. id }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function viafUrl( id )&lt;br /&gt;
	if not id:match( '^%d+$' ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return 'http://viaf.org/viaf/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function splitLccn( id )&lt;br /&gt;
	if id:match( '^%l%l?%l?%d%d%d%d%d%d%d%d%d?%d?$' ) then&lt;br /&gt;
		id = id:gsub( '^(%l+)(%d+)(%d%d%d%d%d%d)$', '%1/%2/%3' )&lt;br /&gt;
	end&lt;br /&gt;
	if id:match( '^%l%l?%l?/%d%d%d?%d?/%d+$' ) then&lt;br /&gt;
		 return mw.text.split( id, '/' )&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function padLeft( str, c, length )&lt;br /&gt;
	return c:rep( length - #str ) .. str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function lccnUrl( id )&lt;br /&gt;
	local parts = splitLccn( id )&lt;br /&gt;
	if not parts then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	id = parts[1] .. parts[2] .. padLeft( parts[3], '0', 6 )&lt;br /&gt;
	return 'http://id.loc.gov/authorities/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function gndUrl( id )&lt;br /&gt;
	return 'http://d-nb.info/gnd/' .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeLink( url, label )&lt;br /&gt;
	return '&amp;lt;span class=&amp;quot;nowrap uid noarchive&amp;quot;&amp;gt;[' .. url .. ' ' .. label .. ']&amp;lt;/span&amp;gt;'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function createRow( id, label, rawValue, url )&lt;br /&gt;
	if type( url ) == 'table' then&lt;br /&gt;
		return makeLink( url[1], label[1] ) .. ' (' .. makeLink( url[2], label[2] ) .. ')'&lt;br /&gt;
	elseif url then&lt;br /&gt;
		return makeLink( url, label )&lt;br /&gt;
	else&lt;br /&gt;
		local cat = ''&lt;br /&gt;
		if mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
			cat = '[[Catégorie:Page utilisant le modèle Autorité avec un paramètre erroné]]\n'&lt;br /&gt;
		end&lt;br /&gt;
		return '&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;L\'identifiant ' .. id .. ' &amp;quot;' .. rawValue .. '&amp;quot; n\'est pas valide.&amp;lt;/span&amp;gt;' .. cat&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getIdsFromWikidata( item, property )&lt;br /&gt;
	local ids = {}&lt;br /&gt;
	if not item.claims[property] then&lt;br /&gt;
		return ids&lt;br /&gt;
	end&lt;br /&gt;
	for _, statement in ipairs( item.claims[property] ) do&lt;br /&gt;
		if type( statement.mainsnak.datavalue ) == 'table' then&lt;br /&gt;
			table.insert( ids, statement.mainsnak.datavalue.value )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ids&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--In this order: name of the parameter, label, propertyId in Wikidata, formatting function&lt;br /&gt;
&lt;br /&gt;
-- optionally, a named parameter &amp;quot;condition&amp;quot; that is a predicate function with the entity object as a parameter&lt;br /&gt;
-- this function specifies conditions on which the identifier url should be shown, for example only if a person is dead&lt;br /&gt;
local conf = {&lt;br /&gt;
        { 'VIAF', 'Fichier d’autorité international virtuel', 214, viafUrl },&lt;br /&gt;
        { 'ISNI', 'International Standard Name Identifier', 213, isniUrl },&lt;br /&gt;
        { 'CINII', 'CiNii', 271, ciniiUrl },&lt;br /&gt;
        { 'BNF', { 'Bibliothèque nationale de France', 'données' }, 268, bnfUrls },&lt;br /&gt;
        { 'AN', 'Archives nationales (France)', 3599, archivesnationalesUrl },        &lt;br /&gt;
        { 'SUDOC', 'Système universitaire de documentation', 269, sudocUrl },&lt;br /&gt;
        { 'LCCN', 'Bibliothèque du Congrès', 244, lccnUrl },&lt;br /&gt;
        { 'GND', 'Gemeinsame Normdatei', 227, gndUrl },&lt;br /&gt;
        { 'SBN', 'Service bibliothécaire national', 396, sbnUrl },&lt;br /&gt;
        { 'NDL', 'Bibliothèque nationale de la Diète', 349, ndlUrl },&lt;br /&gt;
        { 'BNE', 'Bibliothèque nationale d’Espagne', 950, bneUrl },&lt;br /&gt;
        { 'NTA', 'Bibliothèque royale des Pays-Bas', 1006, ntaUrl },&lt;br /&gt;
        { 'NLP', 'Bibliothèque nationale de Pologne', 1695, nlpUrl },&lt;br /&gt;
        { 'NLI', 'Bibliothèque nationale d’Israël', 949, nliUrl },&lt;br /&gt;
        { 'NUKAT', 'Bibliothèque universitaire de Pologne', 1207, nukatUrl },&lt;br /&gt;
        { 'CATAL', 'Bibliothèque nationale de Catalogne', 1273, catalUrl },&lt;br /&gt;
        { 'SELIBR', 'Bibliothèque nationale de Suède', 906, selibrUrl },&lt;br /&gt;
        { 'RERO', 'Réseau des bibliothèques de Suisse occidentale', 3065, reroUrl },&lt;br /&gt;
        { 'BAV', 'Bibliothèque apostolique vaticane', 1017, bavUrl },&lt;br /&gt;
        { 'LAC', 'Autorités Canadiana', 1670, idCanadia },&lt;br /&gt;
        { 'NLA', 'Bibliothèque nationale d’Australie', 409, nlaUrl },&lt;br /&gt;
        --{ 'BAnQa', 'Bibliothèque nationale du Québec', 3280, idBAnQa }, -- pour les auteurs -- à activer si BAnQ crée un espace dédié sur son site web.&lt;br /&gt;
        { 'BIBSYS', 'Base de bibliothèque norvégienne', 1015, bibsysUrl },&lt;br /&gt;
        { 'N6I', 'Bibliothèque nationale d’Irlande', 1946, n6iUrl },&lt;br /&gt;
        { 'NSK', 'Bibliothèque universitaire de Zagreb', 1375, nskUrl },&lt;br /&gt;
        { 'RSL', 'Bibliothèque nationale de Russie', 947, rslUrl },&lt;br /&gt;
        { 'NKC', 'Bibliothèque nationale tchèque', 691, nkcUrl },&lt;br /&gt;
        { 'BAnQo', 'Bibliothèque nationale du Québec', 1823, idBAnQo },  --pour les ouvrages&lt;br /&gt;
  --      { 'DBC', 'Bibliothèque nationale du Danemark', 3846, idDbc },  -- à activer si DBC crée un espace dédié sur son site web.&lt;br /&gt;
        { 'BNCHL', 'Bibliothèque nationale du Chili', 1966, idBnchl }, &lt;br /&gt;
        { 'PTBNP', 'Bibliothèque nationale du Portugal', 1005, idPtbnp }, &lt;br /&gt;
        { 'LNB', 'Bibliothèque nationale de Lettonie', 1368, idLnb },&lt;br /&gt;
        { 'OCLC', 'WorldCat', 243, idOclc }, &lt;br /&gt;
&lt;br /&gt;
----***********************************************************************************************************************&lt;br /&gt;
--- ajouter ici les nouvelles références (appels des fonctions construisant les URL)&lt;br /&gt;
----***********************************************************************************************************************&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.authorityControl( frame )&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
&lt;br /&gt;
	--Build a map of valid local arguments&lt;br /&gt;
	local goodArgs = {}&lt;br /&gt;
	for _, params in ipairs( conf ) do&lt;br /&gt;
		goodArgs[params[1]] = true&lt;br /&gt;
	end&lt;br /&gt;
	goodArgs.WORLDCATID = true&lt;br /&gt;
	goodArgs.entity = true&lt;br /&gt;
&lt;br /&gt;
	local hasLocalArgs = false&lt;br /&gt;
	local hasInvalidArgs = false&lt;br /&gt;
	for name, value in pairs( args ) do&lt;br /&gt;
		if name ~= 'entity' then --&amp;quot;entity&amp;quot; parameter doesn't add to category&lt;br /&gt;
			hasLocalArgs = true&lt;br /&gt;
		end&lt;br /&gt;
		if not goodArgs[name] then&lt;br /&gt;
			hasInvalidArgs = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--Get the Wikidata item&lt;br /&gt;
	local entity = nil --Current page&lt;br /&gt;
	if args.entity and args.entity ~= '' then&lt;br /&gt;
		entity = args.entity&lt;br /&gt;
	end&lt;br /&gt;
	local item = mw.wikibase.getEntity( entity )&lt;br /&gt;
&lt;br /&gt;
	--Wikidata fallback if requested&lt;br /&gt;
	if item and item.claims then&lt;br /&gt;
		for _, params in ipairs( conf ) do&lt;br /&gt;
			if params[3] ~= 0 then&lt;br /&gt;
				local val = args[params[1]]&lt;br /&gt;
				if not val or val == '' then&lt;br /&gt;
					local wikidataIds = getIdsFromWikidata( item, 'P' .. params[3] )&lt;br /&gt;
					if wikidataIds[1] then&lt;br /&gt;
						args[params[1]] = wikidataIds[1]&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--Create rows&lt;br /&gt;
	local elements = {}&lt;br /&gt;
&lt;br /&gt;
	--compteur utilisé pour les références aujouté dans le module &amp;quot;autorité&amp;quot;. Ce nombre est &amp;lt;= à nbMaxReferenceParPage&lt;br /&gt;
	local nbReferenceValide = 0&lt;br /&gt;
	--Configured rows&lt;br /&gt;
	for _, params in ipairs( conf ) do&lt;br /&gt;
		--l'id OCLC est affiché en dernier par le code spécifique WorldCat en dehors de cette boucle.&lt;br /&gt;
		if params[1] ~= 'OCLC' then&lt;br /&gt;
			local val = args[params[1]]&lt;br /&gt;
			if val and val ~= '' and nbReferenceValide &amp;lt; nbMaxReferenceParPage then&lt;br /&gt;
				local show_authority = params[&amp;quot;condition&amp;quot;] or function() return true end&lt;br /&gt;
				if show_authority(item) then&lt;br /&gt;
					elements[#elements+1] = createRow( params[1], params[2], val, params[4](val) )&lt;br /&gt;
					nbReferenceValide = nbReferenceValide+1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--Worldcat&lt;br /&gt;
	if args['WORLDCATID'] and args['WORLDCATID'] ~= '' then&lt;br /&gt;
		elements[#elements+1] = createRow( 'WORLDCATID', 'WorldCat', args['WORLDCATID'], 'http://www.worldcat.org/identities/' .. args['WORLDCATID'] ) --Validation?&lt;br /&gt;
	elseif args['LCCN'] and args['LCCN'] ~= '' then&lt;br /&gt;
		local lccnParts = splitLccn( args['LCCN'] )&lt;br /&gt;
		if lccnParts and lccnParts[1] ~= 'sh' then&lt;br /&gt;
			elements[#elements+1] = createRow( 'LCCN', 'WorldCat', args['LCCN'], 'http://www.worldcat.org/identities/lccn-' .. lccnParts[1] .. lccnParts[2] .. '-' .. lccnParts[3] )&lt;br /&gt;
		end&lt;br /&gt;
	elseif args['OCLC'] and args['OCLC'] ~= '' then&lt;br /&gt;
		elements[#elements+1] = createRow( 'OCLC', 'WorldCat', args['OCLC'], 'http://www.worldcat.org/oclc/' .. args['OCLC'] ) &lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local entityInfo = ''&lt;br /&gt;
	if entity and item then --Has &amp;quot;entity&amp;quot; parameter, Wikidata item was found&lt;br /&gt;
		local label = item:getLabel()&lt;br /&gt;
		if label then&lt;br /&gt;
			entityInfo = ' (pour [[' .. label .. ']])'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if #elements == 0 then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local cats = &amp;quot;[[Catégorie:Article de Wikipédia avec notice d'autorité]]&amp;quot;&lt;br /&gt;
	if hasLocalArgs then&lt;br /&gt;
		cats = cats .. '[[Catégorie:Page utilisant le modèle Autorité avec un paramètre local]]'&lt;br /&gt;
	end&lt;br /&gt;
	if hasInvalidArgs then&lt;br /&gt;
		cats = cats .. '[[Catégorie:Page utilisant le modèle Autorité avec un paramètre invalide]]'&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local title = wd.addLinkBack(&amp;quot;[[Autorité (sciences de l'information)|Notices d'autorité]]&amp;quot; .. entityInfo, entity, &amp;quot;identifiers&amp;quot;)&lt;br /&gt;
	local elementsHtml = mw.html.create('div')&lt;br /&gt;
		:addClass('liste-horizontale')&lt;br /&gt;
		:wikitext(title .. ' : ')&lt;br /&gt;
		:tag('ul')&lt;br /&gt;
	for _, element in pairs(elements) do&lt;br /&gt;
		elementsHtml:tag('li'):wikitext(element):done()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return tostring(elementsHtml:allDone()) .. cats&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>w.fr&gt;Hlm Z.</name></author>
		
	</entry>
</feed>