יחידה:בקרת זהויות: הבדלים בין גרסאות בדף
אין תקציר עריכה |
מ 3 גרסאות של הדף wikipedia:he:יחידה:בקרת_זהויות יובאו |
||
| (55 גרסאות ביניים של 10 משתמשים אינן מוצגות) | |||
| שורה 16: | שורה 16: | ||
return '' | return '' | ||
else | else | ||
return | return '' | ||
end | end | ||
end | end | ||
| שורה 39: | שורה 39: | ||
local catName = 'ויקיפדיה: ערכים עם מזהה '..(specialCat or id)..' שגוי' | local catName = 'ויקיפדיה: ערכים עם מזהה '..(specialCat or id)..' שגוי' | ||
return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[Category:'..catName..']]' | return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[Category:'..catName..']]'..'\n' | ||
end | end | ||
| שורה 45: | שורה 45: | ||
--[[ Property formatting functions ]] | --[[ Property formatting functions ]] | ||
--[[==========================================================================]] | --[[==========================================================================]] | ||
function p.iciaLink( id ) | |||
--P1736's format regex: \d+ (e.g. 1) | |||
if not id:match( '^%d+$' ) then | |||
return false | |||
end | |||
return '[https://www.imj.org.il/artcenter/newsite/he/?artist='..id..' '..id..']'..p.getCatForId( 'ICIA' ) | |||
end | |||
function p.aagLink( id ) | function p.aagLink( id ) | ||
| שורה 63: | שורה 71: | ||
function p.adbLink( id ) | function p.adbLink( id ) | ||
--P1907's format regex: [a-z][-a-z]+-([1- | --P1907's format regex: [a-z][-a-z]+-([1-3]\d|[1-9])\d{0,3} (e.g. barton-sir-edmund-toby-71) | ||
if not id:match( '^[a-z][-a-z]+-[1- | if not id:match( '^[a-z][-a-z]+-[1-3]%d%d?%d?%d?$' ) and | ||
not id:match( '^[a-z][-a-z]+-[1-9]%d?%d?%d?$' ) then | not id:match( '^[a-z][-a-z]+-[1-9]%d?%d?%d?$' ) then | ||
return false | return false | ||
| שורה 259: | שורה 267: | ||
end | end | ||
function p.isniLink( id ) | function p.isniLink( id ) | ||
| שורה 462: | שורה 463: | ||
end | end | ||
return '[http://uli.nli.org.il/F/?func=direct&doc_number='..id..'&local_base=nlx10'..' '..id..']'..p.getCatForId( 'NLI' ) | return '[http://uli.nli.org.il/F/?func=direct&doc_number='..id..'&local_base=nlx10'..' '..id..']'..p.getCatForId( 'NLI' ) | ||
end | |||
function p.nliLinkNew( id ) | |||
--P8189's format | |||
if not id:match( '^9870[01]%d%d%d%d%d%d%d%d05171$' ) then | |||
return false | |||
end | |||
return '[http://uli.nli.org.il/F/?func=find-b&local_base=NLX10&find_code=UID&request='..id..' '..id ..']'..p.getCatForId( 'J9U' ) | |||
end | end | ||
function p.nlkLink( id ) | function p.nlkLink( id ) | ||
--P5034's format regex: | --P5034's format regex: (KAB|KAC|KSH)([0-9]{4}|[0-9]{4}[a-zA-Z])[0-9]{4,6} (e.g. KAC199616693, KAC2018L4645 or KSH1998000151) | ||
if not id:match( '^KA | if not id:match( '^KA[BC]%d%d%d%d[a-zA-Z]?%d%d%d%d%d?%d?$' ) and | ||
not id:match( '^ | not id:match( '^KSH%d%d%d%d[a-zA-Z]?%d%d%d%d%d?%d?$' ) then | ||
return false | return false | ||
end | end | ||
return '[https://nl.go.kr | return '[https://lod.nl.go.kr/resource/'..id..' '..id..']'..p.getCatForId( 'NLK' ) | ||
end | end | ||
| שורה 564: | שורה 573: | ||
function p.iccuLink( id ) | function p.iccuLink( id ) | ||
--P396's format regex: | --P396's format regex: \D{2}[A-Z0-3]V\d{6} (e.g. CUBV039952) | ||
if not id:match( '^ | if not id:match( '^%u%u[A-Z0-3]V%d%d%d%d%d%d' ) then | ||
return false | return false | ||
end | end | ||
return '[https://opac.sbn.it/ | return '[https://opac.sbn.it/nome/'..id..' '..id..']'..p.getCatForId( 'ICCU' ) end | ||
function p.selibrLink( id ) | function p.selibrLink( id ) | ||
| שורה 856: | שורה 864: | ||
-- Parameter format: { 'parameter name', 'label', propertyId # in Wikidata, formatting/validation function } | -- Parameter format: { 'parameter name', 'label', propertyId # in Wikidata, formatting/validation function } | ||
p.conf = { | p.conf = { | ||
{ 'AAG', '[[ | { 'ICIA', '[[מרכז המידע לאמנות ישראלית|ICIA]]', 1736, p.iciaLink }, | ||
{ 'NLIj9u', '[[הספרייה הלאומית|NLI]]', 8189, p.nliLinkNew }, | |||
{ 'NLI', '[[הספרייה הלאומית|NLI]]', 949, p.nliLink }, | |||
{ 'AAG', '[[גלריית האומנות טואי או טאמאקי באוקלנד|AAG]]', 3372, p.aagLink }, | |||
{ 'ACM-DL', '[[Association for Computing Machinery#Portal and Digital Library|ACM DL]]', 864, p.acmLink }, | { 'ACM-DL', '[[Association for Computing Machinery#Portal and Digital Library|ACM DL]]', 864, p.acmLink }, | ||
{ 'ADB', '[[Australian Dictionary of Biography|ADB]]', 1907, p.adbLink }, | { 'ADB', '[[Australian Dictionary of Biography|ADB]]', 1907, p.adbLink }, | ||
| שורה 863: | שורה 874: | ||
{ 'AWR', '[[Australian Women\'s Register|AWR]]', 4186, p.awrLink }, | { 'AWR', '[[Australian Women\'s Register|AWR]]', 4186, p.awrLink }, | ||
{ 'BALaT', '[[Royal Institute for Cultural Heritage#Online artworks pages|BALaT]]', 3293, p.balatLink }, | { 'BALaT', '[[Royal Institute for Cultural Heritage#Online artworks pages|BALaT]]', 3293, p.balatLink }, | ||
{ 'BIBSYS', '[[ | { 'BIBSYS', '[[BIBSYS]]', 1015, p.bibsysLink }, | ||
{ 'Bildindex', '[[Marburg Picture Index|Bildindex]]', 2092, p.bildLink }, | { 'Bildindex', '[[Marburg Picture Index|Bildindex]]', 2092, p.bildLink }, | ||
{ 'BNC', '[[הספרייה הלאומית של צ'ילה|BNC]]', 1890, p.bncLink }, | { 'BNC', '[[הספרייה הלאומית של צ'ילה|BNC]]', 1890, p.bncLink }, | ||
{ 'BNE', '[[ | { 'BNE', '[[הספרייה הלאומית של ספרד|BNE]]', 950, p.bneLink }, | ||
{ 'BNF', '[[ | { 'BNF', '[[הספרייה הלאומית של צרפת|BnF]]', 268, p.bnfLink }, | ||
{ 'Botanist', '[[Author citation (botany)|Botanist]]', 428, p.botanistLink }, | { 'Botanist', '[[Author citation (botany)|Botanist]]', 428, p.botanistLink }, | ||
{ 'BPN', '[[Biografisch Portaal|BPN]]', 651, p.bpnLink }, | { 'BPN', '[[Biografisch Portaal|BPN]]', 651, p.bpnLink }, | ||
{ 'CANTIC', '[[ | { 'CANTIC', '[[מיון השמות והתארים של קטלוניה|CANTIC]]', 1273, p.canticLink }, | ||
{ 'CINII', '[[ | { 'CINII', '[[CiNii]]', 271, p.ciniiLink }, | ||
{ 'CWGC', '[[CWGC (identifier)|CWGC]]', 1908, p.cwgcLink }, | { 'CWGC', '[[CWGC (identifier)|CWGC]]', 1908, p.cwgcLink }, | ||
{ 'DAAO', '[[Dictionary of Australian Artists|DAAO]]', 1707, p.daaoLink }, | { 'DAAO', '[[Dictionary of Australian Artists|DAAO]]', 1707, p.daaoLink }, | ||
{ 'DBLP', '[[DBLP]]', 2456, p.dblpLink }, | { 'DBLP', '[[DBLP]]', 2456, p.dblpLink }, | ||
{ 'DSI', '[[ | { 'DSI', '[[מאגר המאיירים המדעיים של שטוטגרט 1450–1950|DSI]]', 2349, p.dsiLink }, | ||
{ 'FNZA', '[[:d:Property:P6792|FNZA]]', 6792, p.fnzaLink }, | { 'FNZA', '[[:d:Property:P6792|FNZA]]', 6792, p.fnzaLink }, | ||
{ 'GND', '[[קובץ בקרה משולב|GND]]', 227, p.gndLink }, | { 'GND', '[[קובץ בקרה משולב|GND]]', 227, p.gndLink }, | ||
{ 'HDS', '[[מילון היסטורי של שווייץ|HDS]]', 902, p.hdsLink }, | { 'HDS', '[[מילון היסטורי של שווייץ|HDS]]', 902, p.hdsLink }, | ||
{ 'IAAF', '[[World Athletics]]', 1146, p.iaafLink }, | { 'IAAF', '[[התאחדות האתלטיקה הבין-לאומית|World Athletics]]', 1146, p.iaafLink }, | ||
{ 'ICCU', '[[ICCU]]', 396, p.iccuLink }, --formerly SBN | { 'ICCU', '[[המכון המרכזי לקטלוג אחיד|ICCU]]', 396, p.iccuLink }, --formerly SBN | ||
{ 'ISNI', '[[תקן בין-לאומי למזהי שמות|ISNI]]', 213, p.isniLink }, | |||
{ 'ISNI', '[[תקן | |||
{ 'Joconde', '[[Joconde]]' , 347, p.jocondeLink }, | { 'Joconde', '[[Joconde]]' , 347, p.jocondeLink }, | ||
{ 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink }, | { 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink }, | ||
{ 'LCCN', '[[שיטת ספריית הקונגרס|LCCN]]', 244, p.lccnLink }, | { 'LCCN', '[[שיטת ספריית הקונגרס|LCCN]]', 244, p.lccnLink }, | ||
{ 'LIR', '[[מילון היסטורי של שווייץ|LIR]]', 886, p.lirLink }, | { 'LIR', '[[מילון היסטורי של שווייץ|LIR]]', 886, p.lirLink }, | ||
{ 'LNB', '[[הספרייה הלאומית של | { 'LNB', '[[הספרייה הלאומית של לטביה|LNB]]', 1368, p.lnbLink }, | ||
{ 'Léonore', '[[Base Léonore|Léonore]]', 640, p.leonoreLink }, | { 'Léonore', '[[Base Léonore|Léonore]]', 640, p.leonoreLink }, | ||
{ 'MBA', '[[MusicBrainz]]', 434, p.mbaLink, category = 'MusicBrainz' }, --special category name | { 'MBA', '[[MusicBrainz]]', 434, p.mbaLink, category = 'MusicBrainz' }, --special category name | ||
| שורה 901: | שורה 911: | ||
{ 'NCL', '[[National Central Library|NCL]]', 1048, p.nclLink }, | { 'NCL', '[[National Central Library|NCL]]', 1048, p.nclLink }, | ||
{ 'NDL', '[[ספריית הדיאט הלאומית|NDL]]', 349, p.ndlLink }, | { 'NDL', '[[ספריית הדיאט הלאומית|NDL]]', 349, p.ndlLink }, | ||
{ 'NGV', '[[ | { 'NGV', '[[הגלריה הלאומית של ויקטוריה|NGV]]', 2041, p.ngvLink }, | ||
{ 'NKC', '[[הספרייה הלאומית של צ'כיה|NKC]]', 691, p.nkcLink }, | { 'NKC', '[[הספרייה הלאומית של צ'כיה|NKC]]', 691, p.nkcLink }, | ||
{ 'NLA', '[[הספרייה הלאומית של אוסטרליה|NLA]]', 409, p.nlaLink }, | { 'NLA', '[[הספרייה הלאומית של אוסטרליה|NLA]]', 409, p.nlaLink }, | ||
{ 'NLG', '[[הספרייה הלאומית של יוון|NLG]]', 3348, p.nlgLink }, | { 'NLG', '[[הספרייה הלאומית של יוון|NLG]]', 3348, p.nlgLink }, | ||
{ 'NLK', '[[הספרייה הלאומית של קוריאה|NLK]]', 5034, p.nlkLink }, | { 'NLK', '[[הספרייה הלאומית של קוריאה|NLK]]', 5034, p.nlkLink }, | ||
{ 'NLP', '[[הספרייה הלאומית של פולין|NLP]]', 1695, p.nlpLink }, | { 'NLP', '[[הספרייה הלאומית של פולין|NLP]]', 1695, p.nlpLink }, | ||
{ 'NLR', '[[הספרייה הלאומית של רומניה|NLR]]', 1003, p.nlrLink }, | { 'NLR', '[[הספרייה הלאומית של רומניה|NLR]]', 1003, p.nlrLink }, | ||
{ 'NSK', '[[הספרייה הלאומית והאוניברסיטאית בזאגרב|NSK]]', 1375, p.nskLink }, | { 'NSK', '[[הספרייה הלאומית והאוניברסיטאית בזאגרב|NSK]]', 1375, p.nskLink }, | ||
{ 'NTA', '[[הספרייה | { 'NTA', '[[הספרייה הלאומית של הולנד|NTA]]', 1006, p.ntaLink }, | ||
{ 'ORCID', '[[ORCID]]', 496, p.orcidLink }, | { 'ORCID', '[[זיהוי ORCID|ORCID]]', 496, p.orcidLink }, | ||
{ 'PIC', '[[:d:Q23892012|PIC]]', 2750, p.picLink }, | { 'PIC', '[[:d:Q23892012|PIC]]', 2750, p.picLink }, | ||
{ 'RID', '[[ResearcherID]]', 1053, p.ridLink }, | { 'RID', '[[ResearcherID]]', 1053, p.ridLink }, | ||
{ 'RERO', '[[ | { 'RERO', '[[רשת הספריות של מערב שווייץ|RERO]]', 3065, p.reroLink }, | ||
{ 'RKDartists', '[[המכון ההולנדי להיסטוריה של האמנות|RKD]]', 650, p.rkdartistsLink }, | { 'RKDartists', '[[המכון ההולנדי להיסטוריה של האמנות|RKD]]', 650, p.rkdartistsLink }, | ||
{ 'RKDID', '[[המכון ההולנדי להיסטוריה של האמנות|RKDimages ID]]', 350, p.rkdidLink }, | { 'RKDID', '[[המכון ההולנדי להיסטוריה של האמנות|RKDimages ID]]', 350, p.rkdidLink }, | ||
{ 'RSL', '[[הספרייה הממלכתית של רוסיה|RSL]]', 947, p.rslLink }, | { 'RSL', '[[הספרייה הממלכתית של רוסיה|RSL]]', 947, p.rslLink }, | ||
{ 'SELIBR', '[[SELIBR]]', 906, p.selibrLink }, | { 'SELIBR', '[[הספרייה הלאומית של שוודיה|SELIBR]]', 906, p.selibrLink }, | ||
{ 'SIKART', '[[SIKART]]', 781, p.sikartLink }, | { 'SIKART', '[[SIKART]]', 781, p.sikartLink }, | ||
{ 'SNAC-ID', '[[SNAC]]', 3430, p.snacLink }, | { 'SNAC-ID', '[[SNAC]]', 3430, p.snacLink }, | ||
| שורה 924: | שורה 933: | ||
{ 'S2AuthorId', '[[Semantic Scholar|S2AuthorId]]', 4012, p.s2authoridLink, category = 'Semantic Scholar author' }, --special category name | { 'S2AuthorId', '[[Semantic Scholar|S2AuthorId]]', 4012, p.s2authoridLink, category = 'Semantic Scholar author' }, --special category name | ||
{ 'TA98', '[[Terminologia Anatomica|TA98]]', 1323, p.ta98Link }, | { 'TA98', '[[Terminologia Anatomica|TA98]]', 1323, p.ta98Link }, | ||
{ 'TDVİA', '[[ | { 'TDVİA', '[[האנציקלופדיה של האסלאם|TDVİA]]', 7314, p.tdviaLink }, | ||
{ 'TE', '[[Terminologia Embryologica|TE]]', 1693, p.teLink }, | { 'TE', '[[Terminologia Embryologica|TE]]', 1693, p.teLink }, | ||
{ 'TePapa', '[[ | { 'TePapa', '[[המוזיאון של ניו זילנד טה פאפה טונגרווה|TePapa]]', 3544, p.tepapaLink }, | ||
{ 'TH', '[[Terminologia Histologica|TH]]', 1694, p.thLink }, | { 'TH', '[[Terminologia Histologica|TH]]', 1694, p.thLink }, | ||
{ 'TLS', '[[Theaterlexikon der Schweiz|TLS]]', 1362, p.tlsLink }, | { 'TLS', '[[Theaterlexikon der Schweiz|TLS]]', 1362, p.tlsLink }, | ||
| שורה 933: | שורה 942: | ||
{ 'ULAN', '[[Union List of Artist Names|ULAN]]', 245, p.ulanLink }, | { 'ULAN', '[[Union List of Artist Names|ULAN]]', 245, p.ulanLink }, | ||
{ 'USCongress', '[[המדריך הביוגרפי של הקונגרס של ארצות הברית|US Congress]]', 1157, p.uscongressLink }, | { 'USCongress', '[[המדריך הביוגרפי של הקונגרס של ארצות הברית|US Congress]]', 1157, p.uscongressLink }, | ||
{ 'VcBA', '[[VcBA]]', 8034, p.vcbaLink }, | { 'VcBA', '[[ספריית הוותיקן|VcBA]]', 8034, p.vcbaLink }, | ||
{ 'VIAF', '[[VIAF]]', 214, p.viafLink }, | { 'VIAF', '[[VIAF]]', 214, p.viafLink }, | ||
{ 'WORLDCATID', '[[WorldCat]]', 7859, nil }, | { 'WORLDCATID', '[[WorldCat]]', 7859, nil }, | ||
| שורה 1,005: | שורה 1,014: | ||
else | else | ||
itemId = mw.wikibase.getEntityIdForCurrentPage() | itemId = mw.wikibase.getEntityIdForCurrentPage() | ||
end | |||
--experiment as requested in מזנון | |||
if (parentArgs['purple'] == 'yes') then | |||
itemId = parentArgs['qid'] | |||
end | end | ||
| שורה 1,027: | שורה 1,041: | ||
parentArgs[params[1]] = wikidataIds[1] | parentArgs[params[1]] = wikidataIds[1] | ||
end end end end end end end | end end end end end end end | ||
-- dont show both NLI and NLIj9u | |||
if parentArgs.NLI and parentArgs.NLIj9u then | |||
parentArgs.NLI = '' | |||
end | |||
--Configured rows | --Configured rows | ||
| שורה 1,037: | שורה 1,057: | ||
end | end | ||
end | end | ||
--WorldCat | --WorldCat | ||
local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID'] | local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID'] | ||
| שורה 1,067: | שורה 1,087: | ||
local Navbox = require('Module:Navbox') | local Navbox = require('Module:Navbox') | ||
local elementsCat = '' | local elementsCat = '' | ||
if rct == 0 or rct >= 25 then | if (rct == 0 or rct >= 25) and (namespace == 0) then | ||
local eCat = 'בקרת זהויות עם '..rct..' פריטים' | local eCat = 'בקרת זהויות עם '..rct..' פריטים' | ||
elementsCat = '[[Category:'..eCat..']]'..p.redCatLink(eCat) | elementsCat = '[[Category:'..eCat..']]'..p.redCatLink(eCat) | ||
| שורה 1,076: | שורה 1,096: | ||
local args = { pid = 'identifiers' } -- #target the list of identifiers | local args = { pid = 'identifiers' } -- #target the list of identifiers | ||
if testcases and itemId then args = { pid = 'identifiers', qid = itemId } end --expensive | if testcases and itemId then args = { pid = 'identifiers', qid = itemId } end --expensive | ||
local pencilLink = mw.title.makeTitle( 0, itemId, '', 'wikidata' ):fullUrl('uselang=he') | local pencil = '' | ||
if itemId then | |||
local pencilLink = mw.title.makeTitle( 0, itemId, '', 'wikidata' ):fullUrl('uselang=he') | |||
pencil = mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', pencilLink) | |||
end | |||
outString = Navbox._navbox( { | outString = Navbox._navbox( { | ||
name = 'בקרת זהויות', | name = 'בקרת זהויות', | ||