Modul:Authority control/bakpasir: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
multiple > ganda
Tidak ada ringkasan suntingan
Baris 113:
end
return '[http://www.womenaustralia.info/biogs/'..id..'.htm '..(label or 'Australian Women\'s Register')..']'..p.getCatForId( 'AWR' )
end
 
function p.balatLink( id, label )
--P3293's format regex: \d+ (e.g. 1)
if not id:match( '^%d+$' ) then
return false
end
return '[http://balat.kikirpa.be/object/104257'..id..' '..(label or 'BALaT (Belgia)')..']'..p.getCatForId( 'BALaT' ) --no https as of 9/2019
end
 
Baris 276 ⟶ 268:
return false
end
return '[https://d-nb.info/gnd/'..id..' '..(label or 'Integrated Authority File (Jerman)')..']'..p.getCatForId( 'GND' )
end
 
Baris 754 ⟶ 746:
end
return '[https://islamansiklopedisi.org.tr/'..id..' '..(label or 'Encyclopedia of Islam')..']'..p.getCatForId( 'TDVİA' )
end
 
function p.teLink( id, label )
--P1693's format regex: E[1-8]\.\d{1,2}\.\d{1,2}\.\d{1,2}\.\d{1}\.\d{1}\.\d{1,3} (e.g. E1.23.45.67.8.9.0)
local e1, e2 = id:match( '^E([1-8])%.(%d%d?)%.%d%d?%.%d%d?%.%d%.%d%.%d%d?%d?$' )
if not e1 then
return false
end
local TEnum = 'TEe0'..e1 --no formatter URL in WD, probably due to this complexity
if e1 == '5' or e1 == '7' then
if #e2 == 1 then e2 = '0'..e2 end
TEnum = TEnum..e2
end
return '[http://www.unifr.ch/ifaa/Public/EntryPage/ViewTE/'..TEnum..'.html '..(label or 'Terminologia Embryologica')..']'..p.getCatForId( 'TE' )
end
 
Baris 776 ⟶ 754:
end
return '[https://collections.tepapa.govt.nz/agent/'..id..' '..(label or 'Te Papa (Selandia Baru)')..']'..p.getCatForId( 'TePapa' )
end
 
function p.thLink( id, label )
--P1694's format regex: H\d\.\d{2}\.\d{2}\.\d\.\d{5} (e.g. H1.23.45.6.78901)
local h1, h2 = id:match( '^H(%d)%.(%d%d)%.%d%d%.%d%.%d%d%d%d%d$' )
if not h1 then
return false
end
local THnum = 'THh'..h1..h2 --no formatter URL in WD, probably due to this complexity
return '[http://www.unifr.ch/ifaa/Public/EntryPage/ViewTH/'..THnum..'.html '..(label or 'Terminologia Histologica')..']'..p.getCatForId( 'TH' )
end
 
Baris 1.015 ⟶ 983:
{ 'autores.uy', 2558, p.autoresuyLink, "Kamus biografi", "12345"},
{ 'AWR', 4182, p.awrLink, "Kamus biografi", "PR00768b"},
{ 'BALaT', 3293, p.balatLink, "Lembaga penelitian seni", "1"},
{ 'BIBSYS', 1015, p.bibsysLink, "Perpustakaan nasional", "1234567890123"},
{ 'Bildindex', 2092, p.bildLink, "Lembaga penelitian seni", "1"},
Baris 1.085 ⟶ 1.052:
{ 'TA98', 1323, p.ta98Link, "Basis data ilmiah", "A12.3.45.678"},
{ 'TDVİA', 7314, p.tdviaLink, "Lain-lain", "asim-b-behdele"},
{ 'TE', 1693, p.teLink, "Basis data ilmiah", "E1.23.45.67.8.9.0"},
{ 'TePapa', 3544, p.tepapaLink, "Galeri seni dan museum", "1"},
{ 'TH', 1694, p.thLink, "Basis data ilmiah", "H1.23.45.6.78901"},
{ 'TLS', 1362, p.tlsLink, "Lain-lain", "Abcd"},
{ 'Trove', 1315, p.troveLink, "Lain-lain", "12345678", prefix = '[[Trove (identifier)|Trove (Australia)]]'}, --formerly NLA-person
Baris 1.267 ⟶ 1.232:
table.insert( sections["Umum"], p.createRow( 'WORLDCATID', worldcatId, '[https://www.worldcat.org/identities/'..mw.uri.encode(worldcatId, 'PATH')..' WorldCat]', nil, false ) ) --Validation?
worldcatCat = p.getCatForId( 'WORLDCATID' )
if rct >= 4rct then+ 1
elseif worldcatId == nil then --if WORLDCATID absent but unsuppressed
local viafId = parentArgs['viaf'] or parentArgs['VIAF']
Baris 1.275 ⟶ 1.241:
worldcatCat = '[[Kategori:Artikel Wikipedia dengan penanda WorldCat-VIAF]]'
end
rct = rct + 1
elseif lccnId and lccnId ~= '' and p.lccnLink( lccnId ) then --LCCN must be present, unsuppressed, & validated
local lccnParts = p.splitLccn( lccnId )
Baris 1.284 ⟶ 1.251:
end
end
rct = rct + 1
end
elseif worldcatId == '' then --if WORLDCATID suppressed
Baris 1.317 ⟶ 1.285:
end
if navboxArgs.group2 then
navboxArgs.title = "[[Bantuan:Pengawasan otoritas|Pengawasan otoritas]]" .. pencil
if rct >= 4 then
navboxArgs.title = "[[Bantuan:Pengawasan otoritas|Pengawasan otoritas]]" .. pencil
else
navboxArgs.border = "child"
navboxArgs = {
group1 = "[[Bantuan:Pengawasan otoritas|Pengawasan otoritas]]" .. pencil,
list1 = Navbox._navbox(navboxArgs)
}
end
else
local sect = navboxArgs.group1