<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.noethoumy.fr/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://wiki.noethoumy.fr/index.php?action=history&amp;feed=atom&amp;title=Module%3AAutorit%C3%A9"/>
	<link rel="alternate" type="text/html" href="https://wiki.noethoumy.fr/index.php?title=Module:Autorit%C3%A9&amp;action=history"/>
	<updated>2026-04-27T19:22:45Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.noethoumy.fr/index.php?title=Module:Autorit%C3%A9&amp;diff=323&amp;oldid=prev</id>
		<title>Jaggerwock : Page créée avec « local wd = require( &#039;Module:Wikidata&#039; ) local Outils = require( &#039;Module:Outils&#039; )  --nombre maximum de référence &quot;autorité&quot; qui doivent être affichée. La valeur de 18 a été acté par défaut en 2017. local nbMaxReferenceParPage = 18  local function blbnbUrl( id ) 	if not id:match( &#039;^%d%d%d%d%d%d%d%d%d$&#039; ) then 		return false 	end 	return &#039;http://acervo.bn.br/sophia_web/autoridade/detalhe/&#039; .. id end  local function nlgUrl( id ) 	if not id:match( &#039;^[1-9]%d*... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.noethoumy.fr/index.php?title=Module:Autorit%C3%A9&amp;diff=323&amp;oldid=prev"/>
		<updated>2024-09-20T14:12:55Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « local wd = require( &amp;#039;Module:Wikidata&amp;#039; ) local Outils = require( &amp;#039;Module:Outils&amp;#039; )  --nombre maximum de référence &amp;quot;autorité&amp;quot; qui doivent être affichée. La valeur de 18 a été acté par défaut en 2017. local nbMaxReferenceParPage = 18  local function blbnbUrl( id ) 	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d$&amp;#039; ) then 		return false 	end 	return &amp;#039;http://acervo.bn.br/sophia_web/autoridade/detalhe/&amp;#039; .. id end  local function nlgUrl( id ) 	if not id:match( &amp;#039;^[1-9]%d*... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local wd = require( &amp;#039;Module:Wikidata&amp;#039; )&lt;br /&gt;
local Outils = require( &amp;#039;Module:Outils&amp;#039; )&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 18 a été acté par défaut en 2017.&lt;br /&gt;
local nbMaxReferenceParPage = 18&lt;br /&gt;
&lt;br /&gt;
local function blbnbUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://acervo.bn.br/sophia_web/autoridade/detalhe/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nlgUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://catalogue.nlg.gr/Authority/Record?id=au.&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function bneUrl( id )&lt;br /&gt;
	if id:match( &amp;#039;^XX%d%d%d%d%d?%d?%d?$&amp;#039; ) then&lt;br /&gt;
		return &amp;#039;http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&amp;amp;authority_id=&amp;#039; .. id&lt;br /&gt;
	elseif ( id:match( &amp;#039;^[Mb]ise%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) or id:match( &amp;#039;^bivi%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) ) then&lt;br /&gt;
		return &amp;#039;https://datos.bne.es/edicion/&amp;#039; .. id&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function sbnUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%u%u[%u%d]%u%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://opac.sbn.it/nome/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ndlUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^0?%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://id.ndl.go.jp/auth/ndlna/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ntaUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d.$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://data.bibliotheken.nl/id/thes/p&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nlpUrl( id )&lt;br /&gt;
	-- nouveau format valide (P7293) - 981[0-9]{8}05606 : 981066973640560&lt;br /&gt;
	-- ou ancien format Wikidata (P1695) - A[0-9]{7}[0-9X] modifié depuis 2023 en a[0-9]{13}&lt;br /&gt;
	if id:match( &amp;#039;^981%d%d%d%d%d%d%d%d05606$&amp;#039; ) or id:match( &amp;#039;^a%d%d%d%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return &amp;#039;https://dbn.bn.org.pl/descriptor-details/&amp;#039; .. id&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nliUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^9870[01]%d%d%d%d%d%d%d%d05171$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://olduli.nli.org.il/F/?func=find-b&amp;amp;local_base=NLX10&amp;amp;find_code=UID&amp;amp;request=&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nukatUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^n%d%d%d%d%d%d%d%d$&amp;#039; ) and not id:match( &amp;#039;^n%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) and &lt;br /&gt;
	   not id:match( &amp;#039;^p %d%d%d%d%d%d%d%d$&amp;#039; ) and not id:match( &amp;#039;^p %d%d%d%d%d%d%d%d%d%d$&amp;#039; ) and &lt;br /&gt;
	   not id:match( &amp;#039;^s  %d%d%d%d%d%d%d%d$&amp;#039; ) and not id:match( &amp;#039;^s  %d%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	id = id:gsub( &amp;#039; &amp;#039;, &amp;#039;%%20&amp;#039; ) -- pour les ids commencent par s ou p&lt;br /&gt;
	if id:len() == 9 then&lt;br /&gt;
		id = id:gsub( &amp;#039;n&amp;#039;, &amp;#039;n%%20%%20&amp;#039; ) -- pour les ids commencent par n&lt;br /&gt;
	else &lt;br /&gt;
		id = id:gsub( &amp;#039;n&amp;#039;, &amp;#039;n%%20&amp;#039; ) -- pour les ids commencent par n20&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://nukat.edu.pl/aut/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function catalUrl( id)&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		if not id:match( &amp;#039;^a?%d%d%d%d%d%d%d.$&amp;#039; ) then&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;#039;https://cantic.bnc.cat/registres/CUCId/&amp;#039; .. id&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://cantic.bnc.cat/registre/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function selibrUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d%d%d%d$&amp;#039; ) and not id:match( &amp;#039;^[1-9]%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://libris.kb.se/auth/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function reroUrl( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 01-R008412216, 02-A000173676&lt;br /&gt;
	if not id:match( &amp;#039;^0[1234]%-[AR]%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://data.rero.ch/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function bavUrl( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 494/9793&lt;br /&gt;
	if not id:match( &amp;#039;^49%d/[1-9]%d*$&amp;#039; ) then -- 49\d\/[1-9]\d{0,5}&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	id = id:gsub( &amp;#039;/&amp;#039;, &amp;#039;_&amp;#039; )&lt;br /&gt;
	return &amp;#039;https://opac.vatlib.it/auth/detail/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function idCanadia( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 1024H9993&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d[A-Z]%d%d%d%d[EF]?$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://www.collectionscanada.gc.ca/canadiana-authorities/index/view?index_name=cdnAutNbr&amp;amp;lang=fr&amp;amp;search_text=&amp;#039; .. id .. &amp;#039;&amp;amp;page=1&amp;amp;cdnAutNbr&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nlaUrl( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est nm1942312&lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://nla.gov.au/anbd.aut-an&amp;#039; .. 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&amp;#039;idBAnQ (actuellement, page du site Viaf&lt;br /&gt;
local function idBAnQa( id )&lt;br /&gt;
	exemple d&amp;#039;un code valide est 0001215324&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://viaf.org/processed/B2Q|&amp;#039; .. 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&amp;#039;un code valide est 0001215324&lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;https://authority.bibsys.no/authority/rest/authorities/html/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function n6iUrl( id )&lt;br /&gt;
--	exemple d&amp;#039;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( &amp;#039;^vtls%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://catalogue.nli.ie/Record/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nskUrl( id )&lt;br /&gt;
--	exemple d&amp;#039;un code valide est 000339950 &lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://katalog.nsk.hr/F/?func=direct&amp;amp;doc_number=&amp;#039; .. id .. &amp;#039;&amp;amp;local_base=nsk10&amp;#039;&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&amp;#039;un code valide est 000080362 &lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;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=&amp;#039; .. 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&amp;#039;un code valide est jcu2014834887 format [a-z]{2,4}[0-9]{2,14}&lt;br /&gt;
	if not id:match( &amp;#039;^%a%a+%d%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://aut.nkp.cz/&amp;#039; .. 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&amp;#039;un code valide est 1986863&lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://collections.banq.qc.ca/ark:/52327/|&amp;#039; .. 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&amp;#039;idDBC (actuellement, page du site Viaf&lt;br /&gt;
local function idDbc( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 87097968101751&lt;br /&gt;
	if not id:match( &amp;#039;^87%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;https://viaf.org/processed/DBC|&amp;#039; .. 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&amp;#039;un code valide est 10000000000000000063660&lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://www.bncatalogo.cl/F?func=direct&amp;amp;local_base=BNC01&amp;amp;doc_number=&amp;#039; .. 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&amp;#039;un code valide est 130325&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://urn.bn.pt/nca/unimarc-authorities/txt?id=&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque nationale de Lettonie&lt;br /&gt;
local function idLnb( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 000001327&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;https://kopkatalogs.lv/F/?func=direct&amp;amp;local_base=lnc10&amp;amp;doc_number=&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Bibliothèque nationale du Luxembourg&lt;br /&gt;
local function idBNL( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 000035166&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://viaf.org/processed/BNL|&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function idworldcat( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est viaf-000001327&lt;br /&gt;
	if not id:match( &amp;#039;^viaf.%d+$&amp;#039; ) and not id:match( &amp;#039;^lccn.n[a-z]?[0-9\-]+$&amp;#039;) and not id:match( &amp;#039;^n[pc]..+$&amp;#039;) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://www.worldcat.org/identities/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
local function idOclc( id )&lt;br /&gt;
	--exemple d&amp;#039;un code valide est 000001327&lt;br /&gt;
	if not id:match( &amp;#039;^0*[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
    end&lt;br /&gt;
	return &amp;#039;http://www.worldcat.org/oclc/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function kbrUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://opac.kbr.be/LIBRARY/doc/AUTHORITY/&amp;#039; .. 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( &amp;#039;^LH/%d%d?%d?%d?/%d%d?%d?$&amp;#039; ) and&lt;br /&gt;
	   not id:match( &amp;#039;^C/0/%d%d?$&amp;#039; ) and&lt;br /&gt;
	   not id:match( &amp;#039;^19800035/%d%d?%d?%d?/%d%d?%d?%d?%d?$&amp;#039; ) and&lt;br /&gt;
	   not id:match( &amp;#039;^19800035/%d%d?%d?%d?/%d%d?%d?%d?%d?Bis$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://www.culture.gouv.fr/public/mistral/leonore_fr?ACTION=CHERCHER&amp;amp;FIELD_1=COTE&amp;amp;VALUE_1=&amp;#039; .. 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&amp;#039;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( &amp;#039;[ %-]&amp;#039;, &amp;#039;&amp;#039; ):upper()&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d[%dX]$&amp;#039; ) 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 &amp;#039;https://isni.org/isni/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ciniiUrl( id )&lt;br /&gt;
	return &amp;#039;http://ci.nii.ac.jp/author/&amp;#039; .. id .. &amp;#039;?l=en&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function sudocUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d[%dxX]$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://www.idref.fr/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function archivesnationalesUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^FRAN_NP_%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://www.siv.archives-nationales.culture.gouv.fr/siv/NP/&amp;#039; .. 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( &amp;#039;^cb.+$&amp;#039; ) then&lt;br /&gt;
		id = &amp;#039;cb&amp;#039; .. id&lt;br /&gt;
	end&lt;br /&gt;
	return {&lt;br /&gt;
		&amp;#039;https://catalogue.bnf.fr/ark:/12148/&amp;#039; .. id,&lt;br /&gt;
		&amp;#039;https://data.bnf.fr/ark:/12148/&amp;#039; .. id }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function viafUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d+$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://viaf.org/viaf/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function splitLccn( id )&lt;br /&gt;
	if id:match( &amp;#039;^%l%l?%l?%d%d%d%d%d%d%d%d%d?%d?$&amp;#039; ) then&lt;br /&gt;
		id = id:gsub( &amp;#039;^(%l+)(%d+)(%d%d%d%d%d%d)$&amp;#039;, &amp;#039;%1/%2/%3&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	if id:match( &amp;#039;^%l%l?%l?/%d%d%d?%d?/%d+$&amp;#039; ) then&lt;br /&gt;
		 return mw.text.split( id, &amp;#039;/&amp;#039; )&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], &amp;#039;0&amp;#039;, 6 )&lt;br /&gt;
	return &amp;#039;http://id.loc.gov/authorities/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function gndUrl( id )&lt;br /&gt;
	return &amp;#039;http://d-nb.info/gnd/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nszlUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://viaf.org/processed/NSZL|&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ltiUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://library.ltikorea.or.kr/node/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function krnlkUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^KA[BC]%d%d%d%d%a?%d%d%d%d%d?%d?$&amp;#039; ) and&lt;br /&gt;
		not id:match( &amp;#039;^KMU%d%d%d%d%a?%d%d%d%d%d?%d?$&amp;#039; ) and&lt;br /&gt;
		not id:match( &amp;#039;^KSH%d%d%d%d%a?%d%d%d%d%d?%d?$&amp;#039; ) and&lt;br /&gt;
		not id:match( &amp;#039;^CNTS%-%d%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
			return false&lt;br /&gt;
	end &lt;br /&gt;
	return &amp;#039;https://lod.nl.go.kr/resource/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function bnaUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://catalogo.bn.gov.ar/F/?func=direct&amp;amp;doc_number=&amp;#039; .. id ..&amp;#039;&amp;amp;local_base=GENER&amp;#039; &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function bnsUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://www.helveticarchives.ch/detail.aspx?ID=&amp;#039; .. id &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function arbabnUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^%d%d%d%d%d%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://catalogo.bn.gov.ar/F/?func=direct&amp;amp;local_base=BNA10&amp;amp;doc_number=&amp;#039; .. id &lt;br /&gt;
end&lt;br /&gt;
--Bibliothèque Nationale d&amp;#039;Arménie, en 3 modules distincts&lt;br /&gt;
local function nlaBookUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://haygirk.nla.am/cgi-bin/koha/opac-detail.pl?biblionumber=&amp;#039; .. id &lt;br /&gt;
end&lt;br /&gt;
local function nlaPersUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://armunicat.nla.am/cgi-bin/koha/opac-authoritiesdetail.pl?marc=1&amp;amp;authid=&amp;#039; .. id &lt;br /&gt;
end&lt;br /&gt;
local function nlaResUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[1-9]%d*$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://tert.nla.am/cgi-bin/koha/opac-detail.pl?biblionumber=&amp;#039; .. id &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function glottoUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^[a-z][a-z][a-z][a-z]%d%d%d%d$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;https://glottolog.org/resource/languoid/id/&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeLink( url, label )&lt;br /&gt;
	return &amp;#039;&amp;lt;span class=&amp;quot;nowrap uid noarchive&amp;quot;&amp;gt;[&amp;#039; .. url .. &amp;#039; &amp;#039; .. label .. &amp;#039;]&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function createRow( id, label, rawValue, url )&lt;br /&gt;
	if type( url ) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		return makeLink( url[1], label[1] ) .. &amp;#039; (&amp;#039; .. makeLink( url[2], label[2] ) .. &amp;#039;)&amp;#039;&lt;br /&gt;
	elseif url then&lt;br /&gt;
		return makeLink( url, label )&lt;br /&gt;
	else&lt;br /&gt;
		local cat = &amp;#039;&amp;#039;&lt;br /&gt;
		if mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
			cat = &amp;#039;[[Catégorie:Page utilisant le modèle Autorité avec un paramètre erroné]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;#039;&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;L\&amp;#039;identifiant &amp;#039; .. id .. &amp;#039; &amp;quot;&amp;#039; .. rawValue .. &amp;#039;&amp;quot; n\&amp;#039;est pas valide.&amp;lt;/span&amp;gt;&amp;#039; .. cat&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getIdsFromWikidata( entity, property )&lt;br /&gt;
	local ids = {}&lt;br /&gt;
	for _, statement in ipairs(mw.wikibase.getBestStatements(entity, property)) do&lt;br /&gt;
		if type( statement.mainsnak.datavalue ) == &amp;#039;table&amp;#039; 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;
local BiblioNat = &amp;quot;Bibliothèque nationale&amp;quot;&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;
		{ &amp;#039;VIAF&amp;#039;, &amp;#039;VIAF&amp;#039;, 214, viafUrl },&lt;br /&gt;
		{ &amp;#039;ISNI&amp;#039;, &amp;#039;ISNI&amp;#039;, 213, isniUrl },&lt;br /&gt;
		{ &amp;#039;BNF&amp;#039;, {&amp;#039;BnF&amp;#039;, &amp;#039;données&amp;#039; }, 268, bnfUrls },&lt;br /&gt;
		{ &amp;#039;AN&amp;#039;, &amp;#039;Archives nationales (France)&amp;#039;, 3599, archivesnationalesUrl },&lt;br /&gt;
		{ &amp;#039;SUDOC&amp;#039;, &amp;#039;IdRef&amp;#039;, 269, sudocUrl },&lt;br /&gt;
		{ &amp;#039;LCCN&amp;#039;, &amp;#039;LCCN&amp;#039;, 244, lccnUrl },&lt;br /&gt;
		{ &amp;#039;GND&amp;#039;, &amp;#039;GND&amp;#039;, 227, gndUrl },&lt;br /&gt;
		{ &amp;#039;SBN&amp;#039;, &amp;#039;Italie&amp;#039;, 396, sbnUrl },&lt;br /&gt;
		{ &amp;#039;NDL&amp;#039;, &amp;#039;Japon&amp;#039;, 349, ndlUrl },&lt;br /&gt;
		{ &amp;#039;CINII&amp;#039;, &amp;#039;CiNii&amp;#039;, 271, ciniiUrl },&lt;br /&gt;
		{ &amp;#039;BNE&amp;#039;, &amp;#039;Espagne&amp;#039;, 950, bneUrl },&lt;br /&gt;
		{ &amp;#039;KBR&amp;#039;, &amp;#039;Belgique&amp;#039;, 11249, kbrUrl },&lt;br /&gt;
		{ &amp;#039;NTA&amp;#039;, &amp;#039;Pays-Bas&amp;#039;, 1006, ntaUrl },&lt;br /&gt;
		{ &amp;#039;NLP1&amp;#039;, &amp;#039;Pologne&amp;#039;, 1695, nlpUrl, condition = function(entity)&lt;br /&gt;
			-- affichage de l’ancien identifiant uniquement si le nouvel identifiant n’est pas renseigné&lt;br /&gt;
			return wd.getClaims{entity = entity, property = &amp;#039;P7293&amp;#039;} == nil&lt;br /&gt;
		end },  --ancien identifiant&lt;br /&gt;
		{ &amp;#039;NLP&amp;#039;, &amp;#039;Pologne&amp;#039;, 7293, nlpUrl },  --nouvel identifiant&lt;br /&gt;
		{ &amp;#039;NLI&amp;#039;, &amp;#039;Israël&amp;#039;, 8189, nliUrl },&lt;br /&gt;
		{ &amp;#039;NUKAT&amp;#039;, &amp;#039;NUKAT&amp;#039;, 1207, nukatUrl },&lt;br /&gt;
		{ &amp;#039;CATAL&amp;#039;, &amp;#039;Catalogne&amp;#039;, 9984, catalUrl, 1273 },&lt;br /&gt;
		{ &amp;#039;SELIBR&amp;#039;, &amp;#039;Suède&amp;#039;, 906, selibrUrl },&lt;br /&gt;
	--	{ &amp;#039;RERO&amp;#039;, &amp;#039;Réseau des bibliothèques de Suisse occidentale&amp;#039;, 3065, reroUrl },&lt;br /&gt;
		{ &amp;#039;BAV&amp;#039;, &amp;#039;Vatican&amp;#039;, 8034, bavUrl },&lt;br /&gt;
		{ &amp;#039;LAC&amp;#039;, &amp;#039;Canada&amp;#039;, 1670, idCanadia },&lt;br /&gt;
		{ &amp;#039;NLA&amp;#039;, &amp;#039;Australie&amp;#039;, 409, nlaUrl },&lt;br /&gt;
	--{ &amp;#039;BAnQa&amp;#039;, &amp;#039;Bibliothèque nationale du Québec&amp;#039;, 3280, idBAnQa }, -- pour les auteurs -- à activer si BAnQ crée un espace dédié sur son site web.&lt;br /&gt;
		{ &amp;#039;BIBSYS&amp;#039;, &amp;#039;Norvège&amp;#039;, 1015, bibsysUrl },&lt;br /&gt;
	--{ &amp;#039;N6I&amp;#039;, &amp;#039;Bibliothèque nationale d’Irlande&amp;#039;, 1946, n6iUrl }, -- propriété supprimé de wikidata, ne concerne pas les auteurs, voir https://www.wikidata.org/wiki/Wikidata:Requests_for_deletions/Archive/2019/Properties/1#P1946_(P1946)&lt;br /&gt;
		{ &amp;#039;NSK&amp;#039;, &amp;#039;Croatie&amp;#039;, 1375, nskUrl },&lt;br /&gt;
		{ &amp;#039;RSL&amp;#039;, &amp;#039;Russie&amp;#039;, 947, rslUrl },&lt;br /&gt;
		{ &amp;#039;NKC&amp;#039;, &amp;#039;Tchéquie&amp;#039;, 691, nkcUrl },&lt;br /&gt;
		{ &amp;#039;BAnQo&amp;#039;, &amp;#039;Québec&amp;#039;, 1823, idBAnQo },  --pour les ouvrages&lt;br /&gt;
	--{ &amp;#039;DBC&amp;#039;, &amp;#039;Danemark&amp;#039;, 3846, idDbc },  -- à activer si DBC crée un espace dédié sur son site web.&lt;br /&gt;
		{ &amp;#039;BNCHL&amp;#039;, &amp;#039;Chili&amp;#039;, 1966, idBnchl }, &lt;br /&gt;
		{ &amp;#039;PTBNP&amp;#039;, &amp;#039;Portugal&amp;#039;, 1005, idPtbnp }, &lt;br /&gt;
		{ &amp;#039;LNB&amp;#039;, &amp;#039;Lettonie&amp;#039;, 1368, idLnb },&lt;br /&gt;
		{ &amp;#039;BNL&amp;#039;, &amp;#039;Luxembourg&amp;#039;, 7028, idBNL },&lt;br /&gt;
		{ &amp;#039;BLBNB&amp;#039;, &amp;#039;Brésil&amp;#039;, 4619, blbnbUrl },&lt;br /&gt;
		{ &amp;#039;NLG&amp;#039;, &amp;#039;Grèce&amp;#039;, 3348, nlgUrl },&lt;br /&gt;
	--{ &amp;#039;NSZL&amp;#039;, BiblioNat .. &amp;#039; de Hongrie&amp;#039;, 951, nszlUrl },  -- à activer si NSZL crée un espace dédié sur son site web.&lt;br /&gt;
		{ &amp;#039;LTI&amp;#039;, &amp;#039;LTI&amp;#039;, 4760, ltiUrl },&lt;br /&gt;
		{ &amp;#039;KRNLK&amp;#039;, &amp;#039;Corée du Sud&amp;#039;, 5034, krnlkUrl },&lt;br /&gt;
		{ &amp;#039;BN&amp;#039;, &amp;#039;Argentine&amp;#039;, 1143, bnaUrl },&lt;br /&gt;
		{ &amp;#039;BNS&amp;#039;, &amp;#039;Suisse&amp;#039;, 1255, bnsUrl },&lt;br /&gt;
		{ &amp;#039;ARBABN&amp;#039;, &amp;#039;Argentine&amp;#039;, 3788, arbabnUrl },&lt;br /&gt;
	-- La bibliothèque d&amp;#039;Arménie fournit 3 sites web différents pour 3 types de documents différents Livre, Personne et ouvrage)&lt;br /&gt;
		{ &amp;#039;NLABOOK&amp;#039;, &amp;#039;Arménie&amp;#039;, 9398, nlaBookUrl },&lt;br /&gt;
		{ &amp;#039;NLAPERS&amp;#039;, &amp;#039;Arménie&amp;#039;, 8833, nlaPersUrl },&lt;br /&gt;
		{ &amp;#039;NLARES&amp;#039;, &amp;#039;Arménie&amp;#039;, 9147, nlaResUrl },&lt;br /&gt;
		{ &amp;#039;WORLDCATID&amp;#039;, &amp;#039;WorldCat Id&amp;#039;, 7859 , idworldcat },&lt;br /&gt;
		{ &amp;#039;OCLC&amp;#039;, &amp;#039;WorldCat&amp;#039;, 243, idOclc }, &lt;br /&gt;
		{ &amp;#039;GLOTTOLANG&amp;#039;, &amp;#039;Glottocode&amp;#039;, 1394 , glottoUrl },&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 = Outils.extractArgs(frame)&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.entity = true&lt;br /&gt;
	goodArgs.id = true&lt;br /&gt;
	goodArgs.wikidata = 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 ~= &amp;#039;id&amp;#039; and name ~= &amp;#039;wikidata&amp;#039; and name ~= &amp;#039;entity&amp;#039; then --&amp;quot;entity&amp;quot; parameter doesn&amp;#039;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;
	local entityArg = Outils.validTextArg(args , &amp;#039;id&amp;#039;, &amp;#039;wikidata&amp;#039;, &amp;#039;entity&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local entity -- The entity id string variable&lt;br /&gt;
	if entityArg then&lt;br /&gt;
		if entityArg ~= &amp;#039;-&amp;#039; then&lt;br /&gt;
			entity = entityArg:upper()&lt;br /&gt;
		else&lt;br /&gt;
			entity = nil&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		entity = mw.wikibase.getEntityIdForCurrentPage() -- (if nil, no entity for current page )&lt;br /&gt;
	end&lt;br /&gt;
    &lt;br /&gt;
	if entity 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 == &amp;#039;&amp;#039; then&lt;br /&gt;
					local wikidataIds = getIdsFromWikidata( entity, &amp;#039;P&amp;#039; .. params[3] )&lt;br /&gt;
					if wikidataIds[1] then&lt;br /&gt;
						args[params[1]] = wikidataIds[1]&lt;br /&gt;
					elseif params[5] ~= nil and params[5] ~= 0 then&lt;br /&gt;
						wikidataIds = getIdsFromWikidata( entity, &amp;#039;P&amp;#039; .. params[5] )&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;
	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&amp;#039;id OCLC (ou WORLDCATID) est affiché en dernier par le code spécifique WorldCat en dehors de cette boucle.&lt;br /&gt;
		if params[1] ~= &amp;#039;OCLC&amp;#039; and params[1] ~= &amp;#039;WORLDCATID&amp;#039; then &lt;br /&gt;
			local val = args[params[1]]&lt;br /&gt;
			if val and val ~= &amp;#039;&amp;#039; 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(entity) 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[&amp;#039;WORLDCATID&amp;#039;] and args[&amp;#039;WORLDCATID&amp;#039;] ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		if args[&amp;#039;WORLDCATID&amp;#039;] ~= &amp;#039;-&amp;#039; then&lt;br /&gt;
			elements[#elements+1] = createRow( &amp;#039;WORLDCATID&amp;#039;, &amp;#039;WorldCat&amp;#039;, args[&amp;#039;WORLDCATID&amp;#039;], idworldcat(args[&amp;#039;WORLDCATID&amp;#039;]) ) -- avec vérification de la validité du paramètre.&lt;br /&gt;
		end&lt;br /&gt;
	elseif args[&amp;#039;LCCN&amp;#039;] and args[&amp;#039;LCCN&amp;#039;] ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		local lccnParts = splitLccn( args[&amp;#039;LCCN&amp;#039;] )&lt;br /&gt;
		if lccnParts and lccnParts[1] ~= &amp;#039;sh&amp;#039; then&lt;br /&gt;
			elements[#elements+1] = createRow( &amp;#039;LCCN&amp;#039;, &amp;#039;WorldCat&amp;#039;, args[&amp;#039;LCCN&amp;#039;], &amp;#039;http://www.worldcat.org/identities/lccn-&amp;#039; .. lccnParts[1] .. lccnParts[2] .. &amp;#039;-&amp;#039; .. lccnParts[3] ) -- L&amp;#039;éventuelle invalidité de la valeur du paramètre aurait déjà déclenché un message d&amp;#039;erreur plus haut lors de l&amp;#039;affichage du lien « Bibliothèque du Congrès ».&lt;br /&gt;
		end&lt;br /&gt;
	elseif args[&amp;#039;OCLC&amp;#039;] and args[&amp;#039;OCLC&amp;#039;] ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		elements[#elements+1] = createRow( &amp;#039;OCLC&amp;#039;, &amp;#039;WorldCat&amp;#039;, args[&amp;#039;OCLC&amp;#039;], idOclc(args[&amp;#039;OCLC&amp;#039;]) ) &lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local entityInfo = &amp;#039;&amp;#039;&lt;br /&gt;
	if entityArg and entityArg ~= &amp;#039;-&amp;#039; and entity ~= mw.wikibase.getEntityIdForCurrentPage() then --Has &amp;quot;entity&amp;quot; parameter&lt;br /&gt;
		local label = mw.wikibase.getLabel(entity)&lt;br /&gt;
		local link = wd.siteLink(entity)&lt;br /&gt;
		if label then&lt;br /&gt;
			if link then&lt;br /&gt;
				entityInfo = &amp;#039; (pour [[&amp;#039; .. link .. &amp;#039;|&amp;#039; .. label  .. &amp;#039;]])&amp;#039;&lt;br /&gt;
			else&lt;br /&gt;
				entityInfo = &amp;#039; (pour &amp;#039; .. label  .. &amp;#039;)&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		elseif link then&lt;br /&gt;
			entityInfo = &amp;#039; (pour [[&amp;#039; .. link .. &amp;#039;]])&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if #elements == 0 then&lt;br /&gt;
		return &amp;#039;[[Catégorie:Page utilisant le modèle Autorité inactif]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local cats = &amp;quot;[[Catégorie:Article de Wikipédia avec notice d&amp;#039;autorité]]&amp;quot;&lt;br /&gt;
	if hasLocalArgs then&lt;br /&gt;
		cats = cats .. &amp;#039;[[Catégorie:Page utilisant le modèle Autorité avec un paramètre local]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if hasInvalidArgs then&lt;br /&gt;
		cats = cats .. &amp;#039;[[Catégorie:Page utilisant le modèle Autorité avec un paramètre invalide]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local title = wd.addLinkBack(&amp;quot;[[Autorité (sciences de l&amp;#039;information)|Notices d&amp;#039;autorité]]&amp;quot; .. entityInfo, entity, &amp;quot;identifiers&amp;quot;)&lt;br /&gt;
	local elementsHtml = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;liste-horizontale&amp;#039;)&lt;br /&gt;
		:wikitext(title .. &amp;#039; : &amp;#039;)&lt;br /&gt;
		:tag(&amp;#039;ul&amp;#039;)&lt;br /&gt;
	for _, element in pairs(elements) do&lt;br /&gt;
		elementsHtml:tag(&amp;#039;li&amp;#039;):wikitext(element):done():wikitext(&amp;#039; &amp;#039;)&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>Jaggerwock</name></author>
	</entry>
</feed>