편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
41번째 줄: | 41번째 줄: | ||
return false | return false | ||
end | end | ||
return '[ | return '[http://www.aucklandartgallery.com/explore-art-and-ideas/artist/'..id..'/ '..id..']'..p.getCatForId( 'AAG' ) | ||
end | end | ||
214번째 줄: | 214번째 줄: | ||
end | end | ||
function p.gndLink( id ) | function p.gndLink( id ) | ||
--P227's format regex: 1[ | --P227's format regex: (1|1[01])\d{7}[0-9X]|[47]\d{6}-\d|[1-9]\d{0,7}-[0-9X]|3\d{7}[0-9X] (e.g. 4079154-3) | ||
if not id:match( '^1[ | if not id:match( '^1[01]?%d%d%d%d%d%d%d[0-9X]$' ) and | ||
not id:match( '^[47]%d%d%d%d%d%d%-%d$' ) and | not id:match( '^[47]%d%d%d%d%d%d%-%d$' ) and | ||
not id:match( '^[1-9]%d?%d?%d?%d?%d?%d?%d?%-[0-9X]$' ) and | not id:match( '^[1-9]%d?%d?%d?%d?%d?%d?%d?%-[0-9X]$' ) and | ||
428번째 줄: | 428번째 줄: | ||
end | end | ||
return '[https://nla.gov.au/anbd.aut-an'..id..' '..id..']'..p.getCatForId( 'NLA' ) | return '[https://nla.gov.au/anbd.aut-an'..id..' '..id..']'..p.getCatForId( 'NLA' ) | ||
end | end | ||
777번째 줄: | 769번째 줄: | ||
local catName = '잘못된 '..(specialCat or id)..' 식별자를 포함한 위키백과 문서' | local catName = '잘못된 '..(specialCat or id)..' 식별자를 포함한 위키백과 문서' | ||
return '* <span class="error">'..id..' id '..rawValue..' | return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[분류:'..catName..']]'..p.redCatLink(catName)..'\n' | ||
end | end | ||
879번째 줄: | 871번째 줄: | ||
{ 'NKC', '[[체코 국립도서관|NKC]]', 691, p.nkcLink }, | { 'NKC', '[[체코 국립도서관|NKC]]', 691, p.nkcLink }, | ||
{ 'NLA', '[[오스트레일리아 국립도서관|NLA]]', 409, p.nlaLink }, | { 'NLA', '[[오스트레일리아 국립도서관|NLA]]', 409, p.nlaLink }, | ||
{ 'NLI', '[[이스라엘 국립도서관|NLI]]', 949, p.nliLink }, | { 'NLI', '[[이스라엘 국립도서관|NLI]]', 949, p.nliLink }, | ||
{ 'NLK', '[[국립중앙도서관|NLK]]', 5034, p.nlkLink }, | { 'NLK', '[[국립중앙도서관|NLK]]', 5034, p.nlkLink }, | ||
909번째 줄: | 900번째 줄: | ||
{ 'USCongress', '[[미국 의회 인명사전|US Congress]]', 1157, p.uscongressLink }, | { 'USCongress', '[[미국 의회 인명사전|US Congress]]', 1157, p.uscongressLink }, | ||
{ 'VIAF', '[[가상 국제 전거 파일|VIAF]]', 214, p.viafLink }, | { 'VIAF', '[[가상 국제 전거 파일|VIAF]]', 214, p.viafLink }, | ||
} | } | ||
922번째 줄: | 912번째 줄: | ||
{ 'MusicBrainz work', 'MBW' }, | { 'MusicBrainz work', 'MBW' }, | ||
{ 'Leonore', 'Léonore' }, | { 'Leonore', 'Léonore' }, | ||
} | } | ||
-- Deprecated aliases to p.conf | -- Deprecated aliases to p.conf, which also get assigned to a tracking cat | ||
-- Format: { | -- Format: { deprecated parameter name, replacement parameter name in p.conf } | ||
p.deprecated = { | p.deprecated = { | ||
{ 'GKD', 'GND' }, | { 'GKD', 'GND' }, | ||
1,003번째 줄: | 992번째 줄: | ||
for _, params in ipairs( p.conf ) do | for _, params in ipairs( p.conf ) do | ||
local val = parentArgs[params[1]] | local val = parentArgs[params[1]] | ||
if val and val ~= ' | if val and val ~= '' then | ||
table.insert( elements, p.createRow( params[1], params[2]..':', val, params[4]( val ), true, params.category ) ) | table.insert( elements, p.createRow( params[1], params[2]..':', val, params[4]( val ), true, params.category ) ) | ||
rct = rct + 1 | rct = rct + 1 | ||
1,012번째 줄: | 1,001번째 줄: | ||
local worldcatId = parentArgs['WORLDCATID'] | local worldcatId = parentArgs['WORLDCATID'] | ||
if worldcatId and worldcatId ~= '' then --if present & unsuppressed | if worldcatId and worldcatId ~= '' then --if present & unsuppressed | ||
table.insert( elements, p.createRow( 'WORLDCATID', '', worldcatId, '[[WorldCat Identities]]: [https://www.worldcat.org/identities/'.. | table.insert( elements, p.createRow( 'WORLDCATID', '', worldcatId, '[[WorldCat Identities]]: [https://www.worldcat.org/identities/'..worldcatId..' '..worldcatId..']', false ) ) --Validation? | ||
worldcatCat = '[[분류:월드캣 식별자를 포함한 위키백과 문서]]' | worldcatCat = '[[분류:월드캣 식별자를 포함한 위키백과 문서]]' | ||
elseif worldcatId == nil then --if absent & unsuppressed | elseif worldcatId == nil then --if absent & unsuppressed | ||
1,038번째 줄: | 1,027번째 줄: | ||
local Navbox = require('Module:Navbox') | local Navbox = require('Module:Navbox') | ||
local elementsCat = '' | local elementsCat = '' | ||
if rct >= | if rct >= 20 then | ||
local | local catName = rct..'개의 요소가 포함된 전거 통제' | ||
elementsCat = '[[분류:'.. | elementsCat = '[[분류:'..catName..']]'..p.redCatLink(catName) | ||
end | end | ||