Jump to content

Template talk:Authority control

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Kamolan (talk | contribs) at 13:01, 18 September 2019 (→‎TDV İslam Ansiklopedisi). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

NLI ID (P949)

Seeing as how there's a significant amount of National Library of Israel identifiers (P949), I thought it might be beneficial to add the following.

function p.nliLink( id )
	--P949's format regex: \d{9} (e.g. 123456789)
	if not string.match( id, '^%d%d%d%d%d%d%d%d%d$' ) then
		return false
	end
	return '[http://aleph.nli.org.il/F/?func=find-b&local_base=NNL10&find_code=SYS&con_lng=eng&request='..id..' '..id..']'..p.getCatForId( 'NLI' )
end
	{ 'NLI', '[[National Library of Israel|NLI]]', 949, p.nliLink },

Take care! Jay D. Easy (t • c) 20:46, 21 July 2019 (UTC)[reply]

I'll take care of this in about a week if no objections.   ~ Tom.Reding (talkdgaf)  20:57, 21 July 2019 (UTC)[reply]
@Jay D. Easy: please add all useful National Library of <X> to the sandbox so they can all be added to the live module in 1 edit.   ~ Tom.Reding (talkdgaf)  15:59, 23 July 2019 (UTC)[reply]
Tom.Reding: that's what I'm doing already. But good to know! Jay D. Easy (t • c) 16:03, 23 July 2019 (UTC)[reply]
 Done   ~ Tom.Reding (talkdgaf)  02:48, 29 July 2019 (UTC)[reply]

NLP ID (P1695)

Hey, me again. Basically the same can be said about the National Library of Poland, which has a sizeable number of identifiers (P1695). Please let me know if this is becoming bothersome, as I plan on putting in more of these requests if you'll allow me.

function p.nlpLink( id )
	--P1695's format regex: 9810[0-9]{1,15} (e.g. 9810123456789012345)
	if not string.match( id, '^9810%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d$' ) then
		return false
	end
	return '[http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=01&IM=04&NU=01&WI='..id..' '..id..']'..p.getCatForId( 'NLP' )
end
	{ 'NLP', '[[National Library of Poland|NLP]]', 1695, p.nlpLink },

Thank you. Jay D. Easy (t • c) 15:53, 23 July 2019 (UTC)[reply]

 Done   ~ Tom.Reding (talkdgaf)  02:48, 29 July 2019 (UTC)[reply]

National Library of Poland errors?

Greetings and felicitations. I've run across a couple of errors tonight for the National Library of Poland (NLP) field, and per this template's documentation, 1,116 (all?) of links are broken. I'm just curious as to why. —DocWatson42 (talk) 08:55, 31 July 2019 (UTC)[reply]

@DocWatson42: I've given an explanation on my talk page at Wikidata. Take care! Jay D. Easy (t • c) 22:54, 31 July 2019 (UTC)[reply]
@Jay D. Easy: Thank you. ^_^ So the problem will require hard work to fix, but will (presumably) be corrected eventually? —DocWatson42 (talk) 23:47, 31 July 2019 (UTC)[reply]
Yep! I'm hoping the errors will motivate users to help correct them. Jay D. Easy (t • c) 08:58, 1 August 2019 (UTC)[reply]

"The NLR id XXXXXXXXX is not valid"

I'm seeing this large notice in red on all kinds of Authority Control templates now. Also "The BNC id XXXXXXXXXX is not valid". Sample: [1]. Could someone please fix this? Softlavender (talk) 08:36, 3 August 2019 (UTC)[reply]

Alice Walker is showing "The NLP id A16316113 is not valid" at the bottom. This search shows many BNC errors, for example "The BNC id 10000000000000000087755 is not valid" at the bottom of Gustav Schwab. Johnuniq (talk) 09:54, 3 August 2019 (UTC)[reply]
Hmm, Module:Authority control requires a BNC id to be exactly 9 digits, while an NLP id must be "9810" followed by one or more digits. I don't know what should be done. Clicking the BNC id for Gustav Schwab at Gustav Schwab (Q77428) gives "El registro solicitado no existe en la base actual" which Google tells me means what it appears to say, namely that 10000000000000000087755 is not a valid BNC id. Johnuniq (talk) 10:06, 3 August 2019 (UTC)[reply]

Not sure why y'all are talking about "NLP". I'm talking about NLR, and there are currently nearly 700 Authority Controal templates with NLR not valid message [2]. -- Softlavender (talk) 10:11, 3 August 2019 (UTC)[reply]

Well, I mentioned NLP because the OP gave Alice Walker as the sample, and that is showing an NLP error. Polygnotus is showing "The NLR id RUNLRAUTH770139004 is not valid" from your search. Clicking the NLR link at Polygnotus of Thasos (Q182855) shows that the NLR id does not work (Google says the message at the top specifies that the system number should be a numeric value). It appears that the sampled errors are actual errors due to mistakes at Wikidata. Fixing them would be a challenge. Perhaps the issue could be raised at Wikidata where they might know why "RUNLRAUTH770139004" starts with "RUNLRAUTH". Hmm, maybe Jasper Deng can help? Johnuniq (talk) 10:31, 3 August 2019 (UTC)[reply]

@Softlavender and Tom.Reding: I edited Module:Authority control to comment out some of the recently added IDs: BNC (86 errors) + NLP (2574 errors) + NLR (730 errors) + RERO (246 errors). The tracking categories are BNC + NLP + NLR + RERO and they should gradually empty over the next couple of weeks as articles are purged. As mentioned, I checked a couple of the links showing an error and they really were errors. That is, the ID at Wikidata is wrong. It would take a very large effort to correct all those problems and until that's done I don't think the IDs should be activated. Johnuniq (talk) 02:20, 4 August 2019 (UTC)[reply]

Thanks, Johnuniq. -- Softlavender (talk) 02:35, 4 August 2019 (UTC)[reply]

A better way to handle this is to find who added the majority of each of these 4 IDs to Wikidata and ask them about/to check for any inconsistencies:

  1. Vycl1994 added most of the RERO ID (obsolete) (P3065)
  2. Charles Matthews added most of the National Library of Romania ID (P1003)
  3. Jay D. Easy added most of the NLP ID (old) (P1695) → these are all correct per VIAF and NLP. Jay D. Easy (t • c) 20:29, 7 August 2019 (UTC)[reply]
  4. Nick Number added most of the CCAB ID (P1890)

  ~ Tom.Reding (talkdgaf)  18:25, 7 August 2019 (UTC)[reply]

I added BNC IDs as they appeared on VIAF. Since these are apparently incorrect, I've removed all of the ones I added. As far as I'm concerned, the others can be removed as well. Nick Number (talk) 18:57, 7 August 2019 (UTC)[reply]
VIAF has now updated all NLP IDs as well: A123456789810123456789012. These "new" IDs are clearly visible in NLP authority records, whereas "old" IDs aren't. However, there's still a ton of inconsistent NLP IDs on Wikidata. Jay D. Easy (t • c) 20:17, 7 August 2019 (UTC)[reply]
 NLP uncommented/restored due to the above corrections. Others pending correction.   ~ Tom.Reding (talkdgaf)  20:04, 27 August 2019 (UTC)[reply]
 RERO regex updated.
 NLR IDs fixed: ~1500 National Library of Russia ID (P7029) accidentally added to National Library of Romania ID (P1003); now corrected.
 BNC IDs fixed: ~475 incorrect, \d{23}, CCAB ID (P1890) removed.   ~ Tom.Reding (talkdgaf)  02:20, 4 September 2019 (UTC)[reply]

HTML class (continued)

@Opencooper, Izno, and Pigsonthewing: per the original request @ Template talk:Authority control/Archive 8#HTML class and a solution by Xover @ Template talk:Navbox#Set class for navbox wrapper div, we now have {{Authority control/sandbox}} producing class="navbox authority-control". Please make sure everything is to your liking and the live version can be updated in the near future.   ~ Tom.Reding (talkdgaf)  03:54, 12 August 2019 (UTC)[reply]

Looks good to me, with the sandbox version emitting a class of authority-control. Thanks a lot for following up on this. Opencooper (talk) 04:07, 12 August 2019 (UTC)[reply]
 Done   ~ Tom.Reding (talkdgaf)  20:01, 27 August 2019 (UTC)[reply]

5 new Australian authority control IDs

Per a request on my talk page by MargaretRDonald for adding 5 Australian IDs, I'm listing them here for review:

  1. NLA Trove people ID (P1315) — a person-only version of the currently used |NLA= Libraries Australia ID (P409), so it should use a parameter like |NLA-person=, similar to the once-used |NARA-person=
  2. DAAO ID (P1707)|DAAO=
  3. National Gallery of Victoria artist ID (P2041)|NGV=
  4. Australian Dictionary of Biography ID (P1907)|ADB=
  5. Auckland Art Gallery artist ID (P3372)|AAG=

I'll bundle the HTML class update immediately above into this one in about a week.   ~ Tom.Reding (talkdgaf)  13:54, 20 August 2019 (UTC)[reply]

(Thanks Tom). Could we add to that list:
  1. Auckland Art Gallery artist ID (P3372) (duplicate)
  2. Art Gallery of South Australia creator ID (P6804)|AGSA=
  3. Australian Women's Register ID (P4186)|AWR=
  4. Te Papa agent ID (P3544)|TePapa=
MargaretRDonald (talk) 20:31, 20 August 2019 (UTC)[reply]
@MargaretRDonald: I struck Auckland Art Gallery artist ID (P3372) since it's already in the original list, and added proposed parameter names next to each ID.   ~ Tom.Reding (talkdgaf)  22:18, 20 August 2019 (UTC)[reply]
Thanks so much, @Tom.Reding:. MargaretRDonald (talk) 22:26, 20 August 2019 (UTC)[reply]
 Done. FYI, Australian Women's Register is the only Wikidata item of this property (P1629) of the above properties that does not exist.   ~ Tom.Reding (talkdgaf)  20:00, 27 August 2019 (UTC)[reply]
Brilliant. Thanks, @Tom.Reding:. MargaretRDonald (talk) 21:12, 27 August 2019 (UTC)[reply]
I have created an appalling stub for AWR Australian Women's Register. Hopefully someone will improve it... MargaretRDonald (talk) 11:54, 28 August 2019 (UTC)[reply]

Reducing the 'number of identifiers' categories

When Category:AC with 14 elements (0) was created in April 2014, there were ~34 available IDs (counting the 2 WorldCat variants), now it has ~5000. Now that there are ~70 available IDs, the 14 threshold is much easier to cross. There are 15,700+ pages with 14+, or 1.6+% of all transclusions. If we exclude, say, counts 14–17, there are only ~3300 pages with 18+, or ~0.3% of all transclusions. Does anyone else think some of the lower # ones should be retired? See Module:Authority control#Number of identifiers to see the distribution.   ~ Tom.Reding (talkdgaf)  14:56, 28 August 2019 (UTC)[reply]

It's getting out of control but as a lazy person I would wait until several loud complaints occur. Ideally each entry would have a precedence and when there are more entries than some threshold, entries with a low precedence would be omitted. However, I am unlikely to implement that. Johnuniq (talk) 01:56, 29 August 2019 (UTC)[reply]
Is there a need for any of those categories at all? -- WOSlinker (talk) 11:29, 29 August 2019 (UTC)[reply]
I was thinking the same thing. Even further, what's the raison d'être for Category:Pages with authority control information and all its subcategories? -- Michael Bednarek (talk) 12:05, 29 August 2019 (UTC)[reply]
Yes. Knowing the extent of the upper limit of the #IDs distribution is useful. I've used them in discussions, and run tests on their contents (particularly whichever page is at the top, usually Albrecht Dürer). The top 10 cats I'd say are the most useful, so 23-32 currently, or ~0.03% of all transclusions.   ~ Tom.Reding (talkdgaf)  13:00, 29 August 2019 (UTC)[reply]
Do the 80/20 rule. Pick a number over which you combine all the categories. --Izno (talk) 20:22, 29 August 2019 (UTC)[reply]
Surely we could have a tool of some sort if we just want the numbers - whether that's a bot updated page, or a tool-forge page or a simple abuse of Jarry1250's transclusion counter - something like what I have put in the module sandbox, though this displays the templates instead of transcluding them. All the best: Rich Farmbrough, 16:25, 31 August 2019 (UTC).[reply]
Updated counts. 20+ seems like a reasonable selection/cutoff (~0.14%).   ~ Tom.Reding (talkdgaf)  22:02, 1 September 2019 (UTC)[reply]

Oddity

Batavia links to this broken page via its WorldCat link. Any ideas? All the best: Rich Farmbrough, 17:02, 31 August 2019 (UTC).[reply]

@Rich Farmbrough: Batavia is a dab - which target has the faulty link? FYI there's a useful tool in Special:Preferences#Gadgets called 'Display links to disambiguation pages in orange' so they pop right out at you.   ~ Tom.Reding (talkdgaf)  14:40, 1 September 2019 (UTC)[reply]
@Tom.Reding: Sorry I mean Batavia (ship). All the best: Rich Farmbrough, 14:43, 1 September 2019 (UTC).[reply]
@KrBot, Ivan A. Krestinin, and Jay D. Easy: I see that the VIAF ID on Batavia (Q810735) has changed several times recently, from
with some redirection by VIAF going on in the background. None of the resulting WorldCat links work though:
Does anyone know why?   ~ Tom.Reding (talkdgaf)  21:55, 1 September 2019 (UTC)[reply]
Does this really surprise anyone? I encounter broken Worldcat id links all the time. It's because the template creates its Worldcat id links via the VIAF id, of which a subject sometimes has more than one, and which are frequently not properly linked.
This is the correct link. However, since it's already an external link, I've suppressed WORLDCATID. Jay D. Easy (t • c) 22:16, 1 September 2019 (UTC)[reply]
Thanks! All the best: Rich Farmbrough, 11:09, 2 September 2019 (UTC).[reply]

Making the Authority control template like the taxonbar template

The taxonbar template has a "from" (and a "from2") parameter which specifies the wikidata item even when wikidata and enwiki items are not linked. This is extremely useful when one is building an article which has not yet been published (and linked), since it allows the editor to see all the authority control (taxonbar) ids, many of which have extremely useful information for the article builder. I was hoping that this facility might be made available in the template {{authority control}} just like {{Taxonbar|from=Q17241254}}, since some of the authority control IDs provide short informative bios) MargaretRDonald (talk) 22:56, 31 August 2019 (UTC)[reply]

@MargaretRDonald: this would be the equivalent of an 'authority control see also', with no limit to the # of 'associated works/people/things/etc.' that could be appended. Setting any hard limit, say 5, would invite endless discussions on which are the 5 most relevant associated things, which order they should be in, etc., nevermind how visually obtrusive 6 stacks of AC nav boxes would be.
|from= is useful in taxonomy b/c there are much more discrete associations with taxa than there are with AC pages. It serves an additional purpose of tracking Wikidata's association with certain Wikipedia taxa, which tend to jump around a lot, and it is useful to have an 'in-house' history of that association. AC pages don't have the same problem.
Many authority control websites usually have their own 'see also' section which can be used for this purpose.   ~ Tom.Reding (talkdgaf)  15:22, 1 September 2019 (UTC)[reply]
Since the requested functionality is for draftspace, blacklist the mainspace (or alt. whitelist the draftspace) for use of the parameter. --Izno (talk) 16:56, 1 September 2019 (UTC)[reply]
Thanks, @Tom.Reding: for the explanation as to why this would not be a good idea. And thanks @Izno: for the suggestion. MargaretRDonald (talk) 20:29, 1 September 2019 (UTC)[reply]
@Izno: I missed that - rehashing to myself all the detailed discussions regarding |from1=, etc., to what should have been a straightforward implementation turned out to be nuanced & caveated, put my blinders on.
@MargaretRDonald: as long as this isn't advocated for in mainspace, it's a good idea and easily doable. Will take care of it soon.   ~ Tom.Reding (talkdgaf)  20:42, 1 September 2019 (UTC)[reply]
@MargaretRDonald: you can now use the |QID= parameter anywhere but mainspace.   ~ Tom.Reding (talkdgaf)  21:45, 1 September 2019 (UTC)[reply]
Thanks everyone (@Tom.Reding:, {{ping}Izno}} MargaretRDonald (talk) 05:16, 2 September 2019 (UTC)[reply]

@Tom.Reding: Please can it be qid not QID and not from? {{convert}} uses qid for this procedure and I believe some others do as well although I would need some time to find them. Consistency between templates would be very desirable and very few parameters use uppercase. Johnuniq (talk) 05:22, 2 September 2019 (UTC)[reply]

 Mostly done - |qid= is now the preferred parameter, but I kept |QID= for backwards compatibility. |QID= was used originally b/c all other {{Authority control}} params have their acronym capitalized, so it would be very self-inconsistent to use |qid=. However, external consistency is also important, and since |QID= was never formally documented, I don't have an issue with |qid= being used exclusively in the documentation, and |QID= silently allowed.
Changing {{Taxonbar}}'s |from= convention to |qid= can/will be a bigger deal, but I can see the merits.   ~ Tom.Reding (talkdgaf)  15:19, 2 September 2019 (UTC)[reply]
Thanks. Johnuniq (talk) 23:17, 2 September 2019 (UTC)[reply]

Add WORLDCATID to known parameters

Can we get "WORLDCATID" added to the known parameters as it is parameter check is only there to warn people and ask them to move them to Wikidata and WORLDCATID can never be moved to Wikidata (unless a property for that us added).

Please change:

{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using authority control with parameters]]|preview=Page using [[Template:Authority control]] with "_VALUE_", please move this to Wikidata if possible}}

to:

{{#invoke:Check for unknown parameters|check|WORLDCATID|unknown=[[Category:Pages using authority control with parameters]]|preview=Page using [[Template:Authority control]] with "_VALUE_", please move this to Wikidata if possible}}

Thank you, 50.53.21.2 (talk) 01:40, 13 September 2019 (UTC)[reply]

That is correct - from my understanding, we don't have a WorldCat Identities property at Wikidata due to the self-referential/cyclical nature of it. However, this only applies to 1 page in Category:Wikipedia articles with WorldCat identifiers (0) (a cat that has been empty until very recently), and only while in edit preview mode. I've updated the sandbox, and whenever there's a more substantial change to the template, or another minor change, or the cat population blows up, this can be piggybacked.   ~ Tom.Reding (talkdgaf)  02:35, 13 September 2019 (UTC)[reply]
That is fine. As long as it happens eventually and is not forgotten. I am concerned it might get forgotten though as most changes happen in the module and not the template. Thanks, 50.53.21.2 (talk) 13:34, 13 September 2019 (UTC)[reply]

TDV İslam Ansiklopedisi

Please add in template link to "TDV İslam Ansiklopedisi". It is islamic encyclopedy created by turkish religion authority Diyanet. (TDV İslam Ansiklopedisi ID (P7314) on wikidata) Kamolan (talk) 14:56, 16 September 2019 (UTC)[reply]

@Kamolan: would |TDV= or |TDVIA= be a better parameter name?   ~ Tom.Reding (talkdgaf)  16:07, 17 September 2019 (UTC)[reply]
TDVİA, I think. Kamolan (talk) 08:31, 18 September 2019 (UTC)[reply]
This will be similar to |Léonore= then, with anglicized alias |Leonore=/|TDVIA=.   ~ Tom.Reding (talkdgaf)  12:20, 18 September 2019 (UTC)[reply]
What about DİA? Kamolan (talk) 12:56, 18 September 2019 (UTC)[reply]
If not, I'm OK with TDV. Kamolan (talk) 13:01, 18 September 2019 (UTC)[reply]