יחידה:בקרת זהויות: הבדלים בין גרסאות בדף
שחזור לגרסה 32436082 מ־12:37, 25 באוקטובר 2021 מאת עלי |
מ 3 גרסאות של הדף wikipedia:he:יחידה:בקרת_זהויות יובאו |
||
| (27 גרסאות ביניים של 9 משתמשים אינן מוצגות) | |||
| שורה 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 | ||
| שורה 71: | שורה 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 | ||
| שורה 474: | שורה 474: | ||
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 | ||
| שורה 573: | שורה 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 ) | ||
| שורה 887: | שורה 886: | ||
{ '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', '[[התאחדות האתלטיקה | { 'IAAF', '[[התאחדות האתלטיקה הבין-לאומית|World Athletics]]', 1146, p.iaafLink }, | ||
{ 'ICCU', '[[המכון המרכזי לקטלוג אחיד|ICCU]]', 396, p.iccuLink }, --formerly SBN | { 'ICCU', '[[המכון המרכזי לקטלוג אחיד|ICCU]]', 396, p.iccuLink }, --formerly SBN | ||
{ 'ISNI', '[[תקן | { '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,088: | שורה 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,097: | שורה 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 = 'בקרת זהויות', | ||