<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.nations.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.nations.fr/index.php?action=history&amp;feed=atom&amp;title=Module%3AAutorit%C3%A9"/>
	<link rel="alternate" type="text/html" href="https://wiki.nations.fr/index.php?title=Module:Autorit%C3%A9&amp;action=history"/>
	<updated>2026-05-15T16:48:09Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.nations.fr/index.php?title=Module:Autorit%C3%A9&amp;diff=256&amp;oldid=prev</id>
		<title>Administrateur : 1 révision importée</title>
		<link rel="alternate" type="text/html" href="https://wiki.nations.fr/index.php?title=Module:Autorit%C3%A9&amp;diff=256&amp;oldid=prev"/>
		<updated>2019-06-26T22:30:46Z</updated>

		<summary type="html">&lt;p&gt;1 révision importée&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 27 juin 2019 à 00:30&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>Administrateur</name></author>
	</entry>
	<entry>
		<id>https://wiki.nations.fr/index.php?title=Module:Autorit%C3%A9&amp;diff=255&amp;oldid=prev</id>
		<title>fr&gt;Hlm Z. : utilisation de liste-horizontale (WP:ACC)</title>
		<link rel="alternate" type="text/html" href="https://wiki.nations.fr/index.php?title=Module:Autorit%C3%A9&amp;diff=255&amp;oldid=prev"/>
		<updated>2019-01-01T16:36:52Z</updated>

		<summary type="html">&lt;p&gt;utilisation de liste-horizontale (&lt;a href=&quot;/index.php?title=WP:ACC&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:ACC (page inexistante)&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( &amp;#039;Module:Wikidata&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 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( &amp;#039;^XX%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://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&amp;amp;authority_id=&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function sbnUrl( id )&lt;br /&gt;
	if not id:match( &amp;#039;^IT\\ICCU\\%d%d%d%d%d%d%d%d%d%d$&amp;#039; ) and not id:match( &amp;#039;^IT\\ICCU\\%u%u[%d%u]%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;http://id.sbn.it/af/&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;http://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;
	-- exemples de codes valides : A11107844, A1157477X&lt;br /&gt;
	if not id:match( &amp;#039;^A?%d%d%d%d%d%d%d[%dX]$&amp;#039; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=01&amp;amp;IM=04&amp;amp;NU=01&amp;amp;WI=&amp;#039; .. id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nliUrl( 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;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=&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; ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;http://viaf.org/processed/NUKAT|&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;^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;http://cantic.bnc.cat/registres/CUCId/&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;http://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 ADV10001961&lt;br /&gt;
	if not id:match( &amp;#039;^ADV%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://viaf.org/processed/BAV|&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 du 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://lira.lanet.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;
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;
----***********************************************************************************************************************&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;http://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;http://catalogue.bnf.fr/ark:/12148/&amp;#039; .. id,&lt;br /&gt;
		&amp;#039;http://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 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é]]\n&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( 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 ) == &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;
--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;Fichier d’autorité international virtuel&amp;#039;, 214, viafUrl },&lt;br /&gt;
        { &amp;#039;ISNI&amp;#039;, &amp;#039;International Standard Name Identifier&amp;#039;, 213, isniUrl },&lt;br /&gt;
        { &amp;#039;CINII&amp;#039;, &amp;#039;CiNii&amp;#039;, 271, ciniiUrl },&lt;br /&gt;
        { &amp;#039;BNF&amp;#039;, { &amp;#039;Bibliothèque nationale de France&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;Système universitaire de documentation&amp;#039;, 269, sudocUrl },&lt;br /&gt;
        { &amp;#039;LCCN&amp;#039;, &amp;#039;Bibliothèque du Congrès&amp;#039;, 244, lccnUrl },&lt;br /&gt;
        { &amp;#039;GND&amp;#039;, &amp;#039;Gemeinsame Normdatei&amp;#039;, 227, gndUrl },&lt;br /&gt;
        { &amp;#039;SBN&amp;#039;, &amp;#039;Service bibliothécaire national&amp;#039;, 396, sbnUrl },&lt;br /&gt;
        { &amp;#039;NDL&amp;#039;, &amp;#039;Bibliothèque nationale de la Diète&amp;#039;, 349, ndlUrl },&lt;br /&gt;
        { &amp;#039;BNE&amp;#039;, &amp;#039;Bibliothèque nationale d’Espagne&amp;#039;, 950, bneUrl },&lt;br /&gt;
        { &amp;#039;NTA&amp;#039;, &amp;#039;Bibliothèque royale des Pays-Bas&amp;#039;, 1006, ntaUrl },&lt;br /&gt;
        { &amp;#039;NLP&amp;#039;, &amp;#039;Bibliothèque nationale de Pologne&amp;#039;, 1695, nlpUrl },&lt;br /&gt;
        { &amp;#039;NLI&amp;#039;, &amp;#039;Bibliothèque nationale d’Israël&amp;#039;, 949, nliUrl },&lt;br /&gt;
        { &amp;#039;NUKAT&amp;#039;, &amp;#039;Bibliothèque universitaire de Pologne&amp;#039;, 1207, nukatUrl },&lt;br /&gt;
        { &amp;#039;CATAL&amp;#039;, &amp;#039;Bibliothèque nationale de Catalogne&amp;#039;, 1273, catalUrl },&lt;br /&gt;
        { &amp;#039;SELIBR&amp;#039;, &amp;#039;Bibliothèque nationale de 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;Bibliothèque apostolique vaticane&amp;#039;, 1017, bavUrl },&lt;br /&gt;
        { &amp;#039;LAC&amp;#039;, &amp;#039;Autorités Canadiana&amp;#039;, 1670, idCanadia },&lt;br /&gt;
        { &amp;#039;NLA&amp;#039;, &amp;#039;Bibliothèque nationale d’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;Base de bibliothèque norvégienne&amp;#039;, 1015, bibsysUrl },&lt;br /&gt;
        { &amp;#039;N6I&amp;#039;, &amp;#039;Bibliothèque nationale d’Irlande&amp;#039;, 1946, n6iUrl },&lt;br /&gt;
        { &amp;#039;NSK&amp;#039;, &amp;#039;Bibliothèque universitaire de Zagreb&amp;#039;, 1375, nskUrl },&lt;br /&gt;
        { &amp;#039;RSL&amp;#039;, &amp;#039;Bibliothèque nationale de Russie&amp;#039;, 947, rslUrl },&lt;br /&gt;
        { &amp;#039;NKC&amp;#039;, &amp;#039;Bibliothèque nationale tchèque&amp;#039;, 691, nkcUrl },&lt;br /&gt;
        { &amp;#039;BAnQo&amp;#039;, &amp;#039;Bibliothèque nationale du Québec&amp;#039;, 1823, idBAnQo },  --pour les ouvrages&lt;br /&gt;
  --      { &amp;#039;DBC&amp;#039;, &amp;#039;Bibliothèque nationale du 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;Bibliothèque nationale du Chili&amp;#039;, 1966, idBnchl }, &lt;br /&gt;
        { &amp;#039;PTBNP&amp;#039;, &amp;#039;Bibliothèque nationale du Portugal&amp;#039;, 1005, idPtbnp }, &lt;br /&gt;
        { &amp;#039;LNB&amp;#039;, &amp;#039;Bibliothèque nationale de Lettonie&amp;#039;, 1368, idLnb },&lt;br /&gt;
        { &amp;#039;OCLC&amp;#039;, &amp;#039;WorldCat&amp;#039;, 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 ~= &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;
	--Get the Wikidata item&lt;br /&gt;
	local entity = nil --Current page&lt;br /&gt;
	if args.entity and args.entity ~= &amp;#039;&amp;#039; 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 == &amp;#039;&amp;#039; then&lt;br /&gt;
					local wikidataIds = getIdsFromWikidata( item, &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;
					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 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; 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(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[&amp;#039;WORLDCATID&amp;#039;] and 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;], &amp;#039;http://www.worldcat.org/identities/&amp;#039; .. args[&amp;#039;WORLDCATID&amp;#039;] ) --Validation?&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] )&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;], &amp;#039;http://www.worldcat.org/oclc/&amp;#039; .. 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 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 = &amp;#039; (pour [[&amp;#039; .. label .. &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 nil&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()&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>fr&gt;Hlm Z.</name></author>
	</entry>
</feed>