Modul:Authority control/bakpasir: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Uzume (bicara | kontrib)
 
(7 revisi perantara oleh satu pengguna lainnya tidak ditampilkan)
Baris 1:
require('Module:No globalsstrict')
 
local p = {}
Baris 13:
local catName = ''
if namespace == 0 then
catName = 'ArticlesArtikel withWikipedia dengan penanda '..id..' identifiers'
elseif namespace == 2 and not title.isSubpage then
catName = 'UserHalaman pagespengguna withdengan penanda '..id..' identifiers'
else
catName = 'MiscellaneousHalaman pagesdengan withpenanda '..id..' identifiers'
end
return '[[CategoryKategori:'..catName..']]'..p.redCatLink(catName)
end
 
Baris 27:
mw.title.new(catName, 14).exists == false
then
return '[[CategoryKategori:PagesHalaman withdengan red-linkedkategori authoritypengawasan controlotoritas categoriesbelum dibuat]]'
end
return ''
Baris 33:
 
function p.createRow( id, rawValues, link, links, withUid, specialCat, prefix)
local catName = 'ArticlesArtikel withWikipedia faultydengan kesalahan penanda '..(specialCat or id)..' identifiers'
if links then -- all links[] use withUid = false; no check needed
local row = ''
Baris 45:
row = row..'<span class="uid">'..l..'</span>'
else
row = row..'<span class="error">The '..id..' id '..rawValues[i]..' is not valid.</span>[[CategoryKategori:'..catName..']]'..p.redCatLink(catName)
end
end
Baris 56:
end
return '* <span class="error">The '..id..' id '..rawValues..' is not valid.</span>[[CategoryKategori:'..catName..']]'..p.redCatLink(catName)..'\n'
end
 
Baris 98:
return false
end
return '[https://www.agsa.sa.gov.au/collection-publications/collection/creators/_/'..id..'/ '..(label or 'South Australia Selatan')..']'..p.getCatForId( 'AGSA' )
end
 
Baris 125:
return false
end
return '[https://authority.bibsys.no/authority/rest/authorities/html/'..id..' '..(label or 'NorwayNorwegia')..']'..p.getCatForId( 'BIBSYS' )
end
 
Baris 133:
return false
end
return '[https://www.bildindex.de/document/obj'..id..' '..(label or 'Bildindex (GermanyJerman)')..']'..p.getCatForId( 'Bildindex' )
end
 
Baris 141:
return false
end
return '[http://www.bncatalogo.cl/F?func=direct&local_base=red10&doc_number='..id..' '..(label or 'ChileChili')..']'..p.getCatForId( 'BNC' )
end
 
Baris 152:
return false
end
return '[http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&authority_id='..id..' '..(label or 'SpainSpanyol')..']'..p.getCatForId( 'BNE' ) --no https as of 9/2019
end
 
Baris 164:
id = 'cb'..id
end
return '[https://catalogue.bnf.fr/ark:/12148/'..id..' '..(label or 'FrancePrancis')..'] [https://data.bnf.fr/ark:/12148/'..id..' (data)]'..p.getCatForId( 'BNF' )
end
 
Baris 184:
return false
end
return '[http://www.biografischportaal.nl/en/persoon/'..id..' '..(label or 'NetherlandsBelanda')..']'..p.getCatForId( 'BPN' ) --no https as of 9/2019
end
 
Baris 192:
return false
end
return '[http://cantic.bnc.cat/registres/CUCId/'..id..' '..(label or 'CataloniaCatalunya')..']'..p.getCatForId( 'CANTIC' ) --no https as of 10/2019
end
 
Baris 200:
return false
end
return '[https://ci.nii.ac.jp/author/'..id..'?l=en '..(label or 'CiNii (JapanJepang)')..']'..p.getCatForId( 'CINII' )
end
 
Baris 216:
return false
end
return '[http://esu.com.ua/search_articles.php?id='..id..' '..(label or 'UkraineUkraina')..']'..p.getCatForId( 'EMU' )
end
 
Baris 243:
return false
end
return '[https://dib.cambridge.org/viewReadPage.do?articleId='..id..' '..(label or 'IrelandIrlandia')..']'..p.getCatForId( 'DIB' )
end
 
Baris 279:
return false
end
return '[https://d-nb.info/gnd/'..id..' '..(label or 'Integrated Authority File (GermanyJerman)')..']'..p.getCatForId( 'GND' )
end
 
Baris 305:
return false
end
return '[https://opac.sbn.it/opacsbn/opac/iccu/scheda_authority.jsp?bid='..id..' '..(label or 'ItalyItalia')..']'..p.getCatForId( 'ICCU' )
end
function p.iciaLink( id, label )
Baris 337:
return false
end
return '[https://www.pop.culture.gouv.fr/notice/joconde/'..id..' '..(label or 'Joconde (FrancePrancis)')..']'..p.getCatForId( 'Joconde' )
end
 
Baris 355:
local lccnType = parts[1] ~= 'sh' and 'names' or 'subjects'
id = parts[1] .. parts[2] .. p.append( parts[3], '0', 6 )
return '[https://id.loc.gov/authorities/'..lccnType..'/'..id..' '..(label or 'UnitedAmerika StatesSerikat')..']'..p.getCatForId( 'LCCN' )
end
 
Baris 363:
return false
end
return '[http://www.e-lir.ch/e-LIR___Lexicon.'..id..'.450.0.html '..(label or 'Lexicon Istoric Retic (SwitzerlandSwiss)')..']'..p.getCatForId( 'LIR' ) --no https as of 9/2019
end
 
Baris 383:
return false
end
return '[http://www.culture.gouv.fr/public/mistral/leonore_fr?ACTION=CHERCHER&FIELD_1=COTE&VALUE_1='..id..' '..(label or 'Léonore (FrancePrancis)')..']'..p.getCatForId( 'Léonore' ) --no https as of 9/2019
end
 
Baris 536:
return false
end
return '[https://id.ndl.go.jp/auth/ndlna/'..id..' '..(label or 'JapanJepang')..']'..p.getCatForId( 'NDL' )
end
 
Baris 552:
return false
end
return '[https://aleph.nkp.cz/F/?func=find-c&local_base=aut&ccl_term=ica='..id..'&CON_LNG=ENG '..(label or 'CzechRepublik RepublicCeko')..']'..p.getCatForId( 'NKC' )
end
 
Baris 568:
return false
end
return '[https://data.nlg.gr/resource/authority/record'..id..' '..(label or 'GreeceYunani')..']'..p.getCatForId( 'NLG' )
end
 
Baris 594:
return false
end
return '[https://tools.wmflabs.org/wikidata-externalid-url?p=1695&id='..id..' '..(label or 'PolandPolandia')..']'..p.getCatForId( 'NLP' )
end
 
Baris 610:
return false
end
return '[http://katalog.nsk.hr/F/?func=direct&doc_number='..id..'&local_base=nsk10 '..(label or 'CroatiaKroasia')..']'..p.getCatForId( 'NSK' ) --no https as of 9/2019
end
 
Baris 618:
return false
end
return '[http://data.bibliotheken.nl/id/thes/p'..id..' '..(label or 'NetherlandsBelanda')..']'..p.getCatForId( 'NTA' )
end
 
Baris 643:
return false
end
return '[http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=1&NU=1&IM=4&WI='..id..' '..(label or 'PolandPolandia')..']'..p.getCatForId( 'PLWABN' )
end
 
Baris 670:
return false
end
return '[https://opac.rism.info/search?id='..id..' '..(label or 'RISM (FrancePrancis)')..']'..p.getCatForId( 'RISM' )
end
 
Baris 678:
return false
end
return '[http://data.rero.ch/'..id..' '..(label or 'RERO (SwitzerlandSwiss)')..']'..p.getCatForId( 'RERO' )
end
 
Baris 686:
return false
end
return '[https://rkd.nl/en/explore/artists/'..id..' '..(label or 'RKD Artists (NetherlandsBelanda)')..']'..p.getCatForId( 'RKDartists' )
end
 
Baris 694:
return false
end
return '[https://rkd.nl/nl/explore/images/'..id..' '..(label or 'RKD ID (NetherlandsBelanda)')..']'..p.getCatForId( 'RKDID' )
end
 
Baris 702:
return false
end
return '[http://aleph.rsl.ru/F?func=find-b&find_code=SYS&adjacent=Y&local_base=RSL11&request='..id..'&CON_LNG=ENG '..(label or 'RussiaRusia')..']'..p.getCatForId( 'RSL' ) --no https as of 9/2019
end
 
Baris 710:
return false
end
return '[https://libris.kb.se/auth/'..id..' '..(label or 'SwedenSwedia')..']'..p.getCatForId( 'SELIBR' )
end
 
Baris 718:
return false
end
return '[http://www.sikart.ch/KuenstlerInnen.aspx?id='..id..'&lng=en '..(label or 'SIKART (SwitzerlandSwiss)')..']'..p.getCatForId( 'SIKART' ) --no https as of 9/2019
end
 
Baris 734:
return false
end
return '[https://www.idref.fr/'..id..' '..(label or 'SUDOC (FrancePrancis)')..']'..p.getCatForId( 'SUDOC' )
end
 
Baris 768:
return false
end
return '[https://collections.tepapa.govt.nz/agent/'..id..' '..(label or 'Te Papa (NewSelandia ZealandBaru)')..']'..p.getCatForId( 'TePapa' )
end
 
Baris 779:
return false
end
return '[http://tls.theaterwissenschaft.ch/wiki/'..id..' '..(label or 'Theaterlexikon (SwitzerlandSwiss)')..']'..p.getCatForId( 'TLS' ) --no https as of 9/2019
end
 
Baris 820:
end
id = id:gsub('\/', '_')
return '[https://opac.vatlib.it/auth/detail/'..id..' '..(label or 'VaticanVatikan')..']'..p.getCatForId( 'VcBA' )
end
 
Baris 905:
local wikiTable = '{| class="wikitable sortable"\n'..
'! rowspan=2 | Parameter\n'..
'! rowspan=2 | SectionBagian\n'..
'! rowspan=2 | AppearsDitampilkan assebagai\n'..
'! rowspan=2; data-sort-type=number | WikidataAtribut propertyWikidata\n'..
'! colspan=4 | TrackingKategori categoriespelacak anddan pagejumlah countshalaman\n'..
'|-\n'..
'! [[:CategoryKategori:ArticlesArtikel withWikipedia authoritydengan controlinformasi informationpengawasan otoritas|'.. 'ArticlesArtikel]]\n'..
'! [[:CategoryKategori:UserHalaman pagespengguna withdengan authorityinformasi controlpengawasan informationotoritas|'.. 'UserHalaman pagespengguna]]\n'..
'! [[:CategoryKategori:MiscellaneousHalaman pagesdengan withinformasi authoritypengawasan control informationotoritas|'..'Misc.Halaman pageslain]]\n'..
'! [[:CategoryKategori:ArticlesArtikel withWikipedia faultydengan authorityinformasi controlpengawasan informationotoritas bermasalah|'.. 'FaultyID IDsbermasalah]]\n'..
'|-\n'
local lang = mw.getContentLanguage()
Baris 933:
local wpl = frame:expandTemplate{ title = 'Wikidata property link', args = args }
--cats
local articleCat = 'ArticlesArtikel withWikipedia dengan penanda '..category..' identifiers'
local userCat = 'UserHalaman pagespengguna withdengan penanda '..category..' identifiers'
local miscCat = 'MiscellaneousHalaman pagesdengan withpenanda '..category..' identifiers'
local faultyCat = 'ArticlesArtikel withWikipedia faultydengan dengan penanda '..category..' identifiersbermasalah'
--counts
local articleCount = lang:formatNum( mw.site.stats.pagesInCategory(articleCat, 'pages') )
Baris 955:
'||'..appearsAs..
'||data-sort-value='..pid..'|'..wpl..
'||style="text-align: right;"|[[:CategoryKategori:'..articleCat..'|'..articleCount..']]'..
'||style="text-align: right;"|[[:CategoryKategori:'.. userCat..'|'.. userCount..']]'..
'||style="text-align: right;"|[[:CategoryKategori:'.. miscCat..'|'.. miscCount..']]'..
'||style="text-align: right;"|[[:CategoryKategori:'.. faultyCat..'|'.. faultyCount..']]'
end
Baris 976:
'|-\n'..
'||'..'—'..
'||GeneralUmum'..
'||'..appearsAs..
'||data-sort-value='..w..'|'..'—'..
'||style="text-align: right;"|[[:Category:Kategori'..articleCat..'|'..articleCount..']]'..
'||style="text-align: right;"|—'..
'||style="text-align: right;"|—'..
Baris 988:
wikiTable = wikiTable..'\n'..
'|-\n'..
'! style="text-align: right;" colspan=3|TotalsTotal'..
'||style="text-align: right;"|'..lang:formatNum(P)..
'||style="text-align: right;"|'..lang:formatNum(a)..
Baris 1.012:
-- prefix: to include a prefix (usually a wikilink explaining what the identifier is) before the external link itself
p.conf = {
{ 'AAG', 3372, p.aagLink, 'ArtGaleri galleriesseni anddan museumsmuseum', '1' },
{ 'ACM-DL', 864, p.acmLink, 'ScientificBasis databasesdata ilmiah', '12345678901', link = 'ACM DL (identifier)' },
{ 'ADB', 1907, p.adbLink,'BiographicalKamus dictionariesbiografi', 'barton-sir-edmund-toby-71' },
{ 'AGSA', 6804, p.agsaLink, 'ArtGaleri galleriesseni anddan museumsmuseum', '3625' },
{ 'autores.uy', 2558, p.autoresuyLink, 'BiographicalKamus dictionariesbiografi', '12345' },
{ 'AWR', 4186, p.awrLink, 'BiographicalKamus dictionariesbiografi', 'PR00768b' },
{ 'BIBSYS', 1015, p.bibsysLink, 'NationalPerpustakaan librariesnasional', '1234567890123' },
{ 'Bildindex', 2092, p.bildLink, 'ArtLembaga researchpenelitian institutesseni', '1' },
{ 'BNC', 1890, p.bncLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'BNE', 950, p.bneLink, 'NationalPerpustakaan librariesnasional', 'XX1234567' },
{ 'BNF', 268, p.bnfLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'Botanist', 428, p.botanistLink , 'ScientificBasis databasesdata ilmiah', 'L.' },
{ 'BPN', 651, p.bpnLink , 'BiographicalKamus dictionariesbiografi', '12345678' },
{ 'CANTIC', 1273, p.canticLink, 'NationalPerpustakaan librariesnasional', 'a12345678' },
{ 'CINII', 271, p.ciniiLink, 'ScientificBasis databasesdata ilmiah', 'DA12345678', link = 'CiNii (identifier)' },
{ 'CWGC', 1908, p.cwgcLink, 'OtherLain-lain', '1234567' },
{ 'DAAO', 1707, p.daaoLink, 'ArtLembaga researchpenelitian institutesseni', 'rolf-harris' },
{ 'DBLP', 2456, p.dblpLink, 'ScientificBasis databasesdata ilmiah', '123/123' },
{ 'DIB', 6829, p.dibLink, 'BiographicalKamus dictionariesbiografi', 'a1234' },
{ 'DSI', 2349, p.dsiLink, 'ArtLembaga researchpenelitian institutesseni', '1538' },
{ 'EMU', 4613, p.emuLink, 'NationalPerpustakaan librariesnasional', '15409' },
{ 'FAST', 2163, p.fastLink, 'OtherLain-lain', '1' },
{ 'FNZA', 6792, p.fnzaLink, 'ArtLembaga researchpenelitian institutesseni', '12' },
{ 'GND', 227, p.gndLink, 'GeneralUmum', '4079154-3' },
{ 'HDS', 902, p.hdsLink, 'OtherLain-lain', '050123' },
{ 'IAAF', 1146, p.iaafLink, 'OtherLain-lain', '123' },
{ 'ICCU', 396, p.iccuLink, 'NationalPerpustakaan librariesnasional', 'IT\\ICCU\\CFIV\\000163' }, --formerly SBN
{ 'ICIA', 1736, p.iciaLink, 'ArtLembaga researchpenelitian institutesseni', '1' },
{ 'IEU', 9070, p.ieuLink, 'OtherLain-lain', 'N\\A\\NationalAcademyofArtandArchitecture' },
{ 'ISNI', 213, p.isniLink, 'GeneralUmum', '0000-0000-6653-4145', prefix = '[[ISNI (identifier)|ISNI]]' },
{ 'Joconde', 347, p.jocondeLink, 'ArtLembaga researchpenelitian institutesseni', '12345678901' },
{ 'KULTURNAV', 1248, p.kulturnavLink, 'ArtLembaga researchpenelitian institutesseni', '12345678-1234-1234-1234-1234567890AB', link = 'KulturNav (identifier)' },
{ 'LCCN', 244, p.lccnLink, 'NationalPerpustakaan librariesnasional', 'n78039510' },
{ 'LIR', 886, p.lirLink, 'OtherLain-lain', '1' },
{ 'LNB', 1368, p.lnbLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'Léonore', 640, p.leonoreLink, 'OtherLain-lain', 'LH//1/1', prefix = '[[Léonore (identifier)|Léonore (FrancePrancis)]]' },
{ 'MA', 6366, p.maLink, 'OtherLain-lain', '123456789' },
{ 'MBA', 434, p.mbaLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz' }, --special cat name
{ 'MBAREA', 982, p.mbareaLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz area' }, --special cat name
{ 'MBI', 1330, p.mbiLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz instrument' }, --special cat name
{ 'MBL', 966, p.mblLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz label' }, --special cat name
{ 'MBP', 1004, p.mbpLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz place' }, --special cat name
{ 'MBRG', 436, p.mbrgLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz release group' }, --special cat name
{ 'MBS', 1407, p.mbsLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz series' }, --special cat name
{ 'MBW', 435, p.mbwLink, 'OtherLain-lain', '12345678-1234-1234-1234-1234567890AB', category = 'MusicBrainz work' }, --special cat name
{ 'MGP', 549, p.mgpLink, 'ScientificBasis databasesdata ilmiah', '123456' },
{ 'NARA', 1225, p.naraLink, 'OtherLain-lain', '12345678' },
{ 'NCL', 1048, p.nclLink, 'NationalPerpustakaan librariesnasional', '1081436' },
{ 'NDL', 349, p.ndlLink, 'NationalPerpustakaan librariesnasional', '012345678' },
{ 'NGV', 2041, p.ngvLink, 'ArtGaleri galleriesseni anddan museumsmuseum', '12354' },
{ 'NKC', 691, p.nkcLink, 'NationalPerpustakaan librariesnasional', 'abcd12345678901234' },
{ 'NLA', 409, p.nlaLink, 'NationalPerpustakaan librariesnasional', '123456789012' },
{ 'NLG', 3348, p.nlgLink, 'NationalPerpustakaan librariesnasional', '12345678' },
{ 'NLI', 949, p.nliLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'NLK', 5034, p.nlkLink, 'NationalPerpustakaan librariesnasional', 'KAB197000000' },
{ 'NLP', 1695, p.nlpLink, 'NationalPerpustakaan librariesnasional', '9810123456789012345' },
{ 'NLR', 1003, p.nlrLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'NSK', 1375, p.nskLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'NTA', 1006, p.ntaLink, 'NationalPerpustakaan librariesnasional', '12345678X' },
{ 'ORCID', 496, p.orcidLink, 'GeneralUmum', '0000-0002-7398-5483', prefix = '[[ORCID (identifier)|ORCID]]' },
{ 'PIC', 2750, p.picLink, 'ArtLembaga researchpenelitian institutesseni', '1' },
{ 'PLWABN', 7293, p.plwabnLink, 'NationalPerpustakaan librariesnasional', '9812345678905606' },
{ 'Publons', 3829, p.publonsLink, 'ScientificBasis databasesdata ilmiah', '2776255' },
{ 'RID', 1053, p.ridLink, 'ScientificBasis databasesdata ilmiah', 'A-1234-1934' },
{ 'RISM', 5504, p.rismLink, 'OtherLain-lain', 'pe1', prefix = '[[RISM (identifier)|RISM (FrancePrancis)]]' },
{ 'RERO', 3065, p.reroLink, 'OtherLain-lain', '02-A012345678', prefix = '[[RERO (identifier)|RERO (SwitzerlandSwiss)]]' },
{ 'RKDartists', 650, p.rkdartistsLink, 'ArtLembaga researchpenelitian institutesseni', '123456' },
{ 'RKDID', 350, p.rkdidLink, 'ArtLembaga researchpenelitian institutesseni', '123456' },
{ 'RSL', 947, p.rslLink, 'NationalPerpustakaan librariesnasional', '123456789' },
{ 'SELIBR', 906, p.selibrLink, 'NationalPerpustakaan librariesnasional', '123456' },
{ 'SIKART', 781, p.sikartLink, 'ArtLembaga researchpenelitian institutesseni', '123456789' },
{ 'SNAC-ID', 3430, p.snacLink, 'OtherLain-lain', 'A' },
{ 'SUDOC', 269, p.sudocLink, 'OtherLain-lain', '026927608', prefix = '[[SUDOC (identifier)|SUDOC (FrancePrancis)]]' },
{ 'S2AuthorId', 4012, p.s2authoridLink, 'ScientificBasis databasesdata ilmiah', '1796130', category = 'Semantic Scholar author' }, --special cat name
{ 'TA98', 1323, p.ta98Link, 'ScientificBasis databasesdata ilmiah', 'A12.3.45.678' },
{ 'TDVİA', 7314, p.tdviaLink, 'OtherLain-lain', 'asim-b-behdele' },
{ 'TePapa', 3544, p.tepapaLink, 'ArtGaleri galleriesseni anddan museumsmuseum', '1' },
{ 'TLS', 1362, p.tlsLink, 'OtherLain-lain', 'Abcd' },
{ 'Trove', 1315, p.troveLink, 'OtherLain-lain', '12345678', prefix = '[[Trove (identifier)|Trove (Australia)]]' }, --formerly NLA-person
{ 'UKPARL', 6213, p.ukparlLink, 'OtherLain-lain', 'AQUupyiR' },
{ 'ULAN', 245, p.ulanLink, 'ArtLembaga researchpenelitian institutesseni', '500123456' },
{ 'USCongress', 1157, p.uscongressLink, 'OtherLain-lain', 'A000123', link = 'US Congress (identifier)' },
{ 'VcBA', 8034, p.vcbaLink, 'NationalPerpustakaan librariesnasional', '494/9793' },
{ 'VIAF', 214, p.viafLink, 'GeneralUmum', '123456789', prefix = '[[VIAF (identifier)|VIAF]]' },
{ 'WORLDCATID', 7859, nil, 'GeneralUmum', nil, link = 'WorldCat Identities (identifier)' },
}
 
Baris 1.115:
}
 
-- Deprecated aliases to p.conf; tracked in [[CategoryKategori:Articles with deprecated authority control identifiers]]
-- Format: { 'deprecated parameter name', 'replacement parameter name in p.conf' }
p.deprecated = {
Baris 1.158:
parentArgs[param] = parentArgs[dep]
if namespace == 0 then
deprecatedIdCat = '[[CategoryKategori:Articles with deprecated authority control identifiers|'..dep..']]'
end
end
Baris 1.187:
if val == '' and (namespace == 0 or testcases) then
suppressedIdCount = suppressedIdCount + 1
suppressedIdCat = '[[CategoryKategori:ArticlesArtikel withWikipedia suppresseddengan authoritypenanda controlpengawasan identifiersotoritas yang disembunyikan|'..params[1]..']]'
else
parentArgs[params[1]] = wikidataIds[1] --add ID from WD
Baris 1.204:
end
if bMatch == false then
differentOnWDCat = '[[CategoryKategori:PagesHalaman usingyang authoritymenggunakan controlpengawasan withotoritas parametersdengan differentparameter onberbeda dari Wikidata|'..params[1]..']]'
end end end end end
if iMatches > 0 and iMatches == iParentArgs then
sameOnWDCat = '[[CategoryKategori:PagesHalaman usingyang authoritymenggunakan controlpengawasan withotoritas parametersdengan allsemua matchingparameter cocok dengan Wikidata]]'
end
if parentArgs['arts'] == 'arts' and suppressedIdCount > 0 then
Baris 1.214:
if suppressedIdCount == 1 then s = '' end
local sCat = 'ACArt with '..suppressedIdCount..' suppressed element'..s
suppressedIdCatArts = '[[CategoryKategori:'..sCat..']]'..p.redCatLink(sCat)
end
end
Baris 1.221:
--configure rows
local rct = 0
local sectionOrder = {'GeneralUmum','NationalPerpustakaan librariesnasional','ArtGaleri galleriesseni anddan museumsmuseum',
'ArtLembaga researchpenelitian institutesseni','BiographicalKamus dictionariesbiografi','ScientificBasis databasesdata ilmiah',
'OtherLain-lain'}
local sections = {
['GeneralUmum'] = {},
['NationalPerpustakaan librariesnasional'] = {},
['ArtGaleri galleriesseni anddan museumsmuseum'] = {},
['ArtLembaga researchpenelitian institutesseni'] = {},
['BiographicalKamus dictionariesbiografi'] = {},
['ScientificBasis databasesdata ilmiah'] = {},
['OtherLain-lain'] = {}
}
--don't show NLP if PLWABN is present, since they both go to the National Library of Poland
Baris 1.271:
rct = rct + 1
if tval[2] then
multipleIdCat = p.getCatForId( 'multipleganda' )
end
end
Baris 1.280:
local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID']
if worldcatId and worldcatId ~= '' then --if WORLDCATID present & unsuppressed
table.insert( sections['GeneralUmum'], p.createRow( 'WORLDCATID', worldcatId, '[https://www.worldcat.org/identities/'..mw.uri.encode(worldcatId, 'PATH')..' WorldCat]', nil, false ) ) --Validation?
worldcatCat = p.getCatForId( 'WORLDCATID' )
rct = rct + 1
Baris 1.287:
local lccnId = parentArgs['lccn'] or parentArgs['LCCN']
if viafId and viafId ~= '' and p.viafLink( viafId ) then --VIAF must be present, unsuppressed, & validated
table.insert( sections['GeneralUmum'], p.createRow( 'VIAF', viafId, '[https://www.worldcat.org/identities/containsVIAFID/'..viafId..' WorldCat (via VIAF)]', nil, false ) )
if namespace == 0 then
worldcatCat = '[[CategoryKategori:ArticlesArtikel withWikipedia dengan penanda WorldCat-VIAF identifiers]]'
end
rct = rct + 1
Baris 1.296:
if lccnParts and lccnParts[1] ~= 'sh' then
local lccnIdFmtd = lccnParts[1]..lccnParts[2]..'-'..lccnParts[3]
table.insert( sections['GeneralUmum'], p.createRow( 'LCCN', lccnId, '[https://www.worldcat.org/identities/lccn-'..lccnIdFmtd..' WorldCat (via Library of Congress)]', nil, false ) )
if namespace == 0 then
worldcatCat = '[[CategoryKategori:ArticlesArtikel withWikipedia dengan penanda WorldCat-LCCN identifiers]]'
end
end
Baris 1.304:
end
elseif worldcatId == '' then --if WORLDCATID suppressed
suppressedIdCat = '[[CategoryKategori:ArticlesArtikel withWikipedia suppresseddengan authoritypenanda controlpengawasan identifiersotoritas yang disembunyikan|WORLDCATID]]'
end
Baris 1.330:
end
if navboxArgs.group2 then
navboxArgs.title = '[[HelpBantuan:AuthorityPengawasan controlotoritas|AuthorityPengawasan controlotoritas]]'..pencil
else
local sect = navboxArgs.group1
if sect == 'GeneralUmum' or sect == 'OtherLain-lain' then
-- Just say "Authority control" with no label if only general or only other IDs are present
-- since "general" is redundant and "other" is silly when there's nothing to contrast it with
navboxArgs.group1 = '[[HelpBantuan:AuthorityPengawasan controlotoritas|AuthorityPengawasan controlotoritas]]'..pencil
else
navboxArgs.group1 = '[[HelpBantuan:AuthorityPengawasan controlotoritas|AuthorityPengawasan controlotoritas: '..sect..']] '..pencil
end
end
Baris 1.347:
if rct == 0 or rct >= 25 then
if namespace == 0 or testcases then
local eCat = 'AC withdengan '..rct..' elementselemen'
elementsCat = '[[CategoryKategori:'..eCat..']]'..p.redCatLink(eCat)
end
end
Baris 1.354:
if namespace == 0 or testcases then
local sCat
if parentArgs.state == 'collapsed' then sCat = 'AC usingyang statemenggunakan parameter state: collapsed'
elseif parentArgs.state == 'expanded' then sCat = 'AC usingyang statemenggunakan parameter state: expanded'
elseif parentArgs.state == 'autocollapse' then sCat = 'AC usingyang statemenggunakan parameter state: autocollapse'
else sCat = 'AC usingyang statemenggunakan parameter state: other'
end
stateCat = '[[CategoryKategori:'..sCat..']]'..p.redCatLink(sCat)
end
end
Baris 1.371:
outString = outString..auxCats
if namespace ~= 0 then
outString = mw.ustring.gsub(outString, '(%[%[)(Category:ArticlesArtikel Wikipedia)', '%1:%2') --by definition
end