יחידה:בקרת זהויות: הבדלים בין גרסאות בדף

רק מרחב הערכים
מ 3 גרסאות של הדף wikipedia:he:יחידה:בקרת_זהויות יובאו
 
(6 גרסאות ביניים של 5 משתמשים אינן מוצגות)
שורה 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..']]'..p.redCatLink(catName)..'\n'
return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[Category:'..catName..']]'..'\n'
end
end


שורה 474: שורה 474:


function p.nlkLink( id )
function p.nlkLink( id )
--P5034's format regex: KA.(19|20).{7} (e.g. KAC201501465)
--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.19.......$' ) and
if not id:match( '^KA[BC]%d%d%d%d[a-zA-Z]?%d%d%d%d%d?%d?$' ) and
  not id:match( '^KA.20.......$' ) then
  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/authorities/resource/'..id..' '..id..']'..p.getCatForId( 'NLK' )
return '[https://lod.nl.go.kr/resource/'..id..' '..id..']'..p.getCatForId( 'NLK' )
end
end


שורה 890: שורה 890:
{ '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', '[[תקן בין-לאומי למזהי שמות|ISNI]]', 213, p.isniLink },
{ 'Joconde', '[[Joconde]]' , 347, p.jocondeLink },
{ 'Joconde', '[[Joconde]]' , 347, p.jocondeLink },
{ 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink },
{ 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink },
שורה 1,096: שורה 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 = ''
local pencil = mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', pencilLink)
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  = 'בקרת זהויות',