Template talk:Authority control

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Using interwiki linking for identifier label links to reduce internal link clutter[edit]

Hello, I wanted to propose changing this module/template to make the identifier label links use interwiki linking and remove them from the internal link table (and Special:Whatlinkshere). Basically change this code:

293 --In this order: name of the parameter, label, propertyId in Wikidata, formatting function
294 local conf = {
295     { 'VIAF', '[[Virtual International Authority File|VIAF]]', 214, viafLink },
296     { 'LCCN', '[[Library of Congress Control Number|LCCN]]', 244, lccnLink },
297     { 'ISNI', '[[International Standard Name Identifier|ISNI]]', 213, isniLink },
298     { 'ORCID', '[[ORCID]]', 496, orcidLink },
299     { 'GND', '[[Integrated Authority File|GND]]', 227, gndLink },
300     { 'SELIBR', '[[LIBRIS|SELIBR]]', 906, selibrLink },
301     { 'SUDOC', '[[Système universitaire de documentation|SUDOC]]', 269, sudocLink },
302     { 'BNF', '[[Bibliothèque nationale de France|BNF]]', 268, bnfLink },
303     { 'BPN', '[[Biografisch Portaal|BPN]]', 651, bpnLink },
304     { 'RID', '[[ResearcherID]]', 1053, ridLink },
305     { 'BIBSYS', '[[BIBSYS]]', 1015, bibsysLink },
306     { 'ULAN', '[[Union List of Artist Names|ULAN]]', 245, ulanLink },
307     { 'HDS', '[[Historical Dictionary of Switzerland|HDS]]', 902, hlsLink },
308     { 'LIR', '[[Historical Dictionary of Switzerland#Lexicon_Istoric_Retic|LIR]]', 886, lirLink },
309     { 'MBA', '[[MusicBrainz]]', 434, mbLink },
310     { 'MGP', '[[Mathematics Genealogy Project|MGP]]', 549, mgpLink },
311     { 'NLA', '[[National Library of Australia|NLA]]', 409, nlaLink },
312     { 'NDL', '[[National Diet Library|NDL]]', 349, ndlLink },
313     { 'NCL', '[[National Central Library|NCL]]', 1048, nclLink },
314     { 'NKC', '[[National Library of the Czech Republic|NKC]]', 691, nkcLink },
315     { 'Léonore', '[[Base Léonore|Léonore]]', 640, leonoreLink },
316     { 'SBN', '[[Istituto Centrale per il Catalogo Unico|ICCU]]', 396, sbnLink },
317     { 'RLS', '[[Russian State Library|RLS]]', 947, rslLink },
318     { 'Botanist', '[[Author citation (botany)|Botanist]]', 428, botanistLink },
319     { 'NARA-person', '[[National Archives and Records Administration|NARA]]', 1222, narapersonLink },
320     { 'NARA-organization', '[[National Archives and Records Administration|NARA]]', 1223, naraorganizationLink },
321     { 'USCongress', '[[Biographical Directory of the United States Congress|US Congress]]', 1157, uscongressLink },
322     { 'BNE', '[[Biblioteca Nacional de España|BNE]]', 950, bneLink },
323     { 'CINII', '[[CiNii]]', 271, ciniiLink },
324     { 'TLS', '[[Theaterlexikon der Schweiz|TLS]]', 1362, tlsLink },
325     { 'SIKART', '[[SIKART]]', 781, sikartLink },
326     { 'KULTURNAV', '[[KulturNav]]', 1248, kulturnavLink },
327     { 'RKDartists', '[[Netherlands Institute for Art History#Online artist pages|RKD]]', 650, rkdartistsLink },
328 }

to this:

293 --In this order: name of the parameter, label, propertyId in Wikidata, formatting function
294 local conf = {
295     { 'VIAF', '[[w:Virtual International Authority File|VIAF]]', 214, viafLink },
296     { 'LCCN', '[[w:Library of Congress Control Number|LCCN]]', 244, lccnLink },
297     { 'ISNI', '[[w:International Standard Name Identifier|ISNI]]', 213, isniLink },
298     { 'ORCID', '[[w:ORCID|ORCID]]', 496, orcidLink },
299     { 'GND', '[[w:Integrated Authority File|GND]]', 227, gndLink },
300     { 'SELIBR', '[[w:LIBRIS|SELIBR]]', 906, selibrLink },
301     { 'SUDOC', '[[w:Système universitaire de documentation|SUDOC]]', 269, sudocLink },
302     { 'BNF', '[[w:Bibliothèque nationale de France|BNF]]', 268, bnfLink },
303     { 'BPN', '[[w:Biografisch Portaal|BPN]]', 651, bpnLink },
304     { 'RID', '[[w:ResearcherID|ResearcherID]]', 1053, ridLink },
305     { 'BIBSYS', '[[w:BIBSYS|BIBSYS]]', 1015, bibsysLink },
306     { 'ULAN', '[[w:Union List of Artist Names|ULAN]]', 245, ulanLink },
307     { 'HDS', '[[w:Historical Dictionary of Switzerland|HDS]]', 902, hlsLink },
308     { 'LIR', '[[w:Historical Dictionary of Switzerland#Lexicon Istoric Retic|LIR]]', 886, lirLink },
309     { 'MBA', '[[w:MusicBrainz|MusicBrainz]]', 434, mbLink },
310     { 'MGP', '[[w:Mathematics Genealogy Project|MGP]]', 549, mgpLink },
311     { 'NLA', '[[w:National Library of Australia|NLA]]', 409, nlaLink },
312     { 'NDL', '[[w:National Diet Library|NDL]]', 349, ndlLink },
313     { 'NCL', '[[w:National Central Library|NCL]]', 1048, nclLink },
314     { 'NKC', '[[w:National Library of the Czech Republic|NKC]]', 691, nkcLink },
315     { 'Léonore', '[[w:Base Léonore|Léonore]]', 640, leonoreLink },
316     { 'SBN', '[[w:Istituto Centrale per il Catalogo Unico|ICCU]]', 396, sbnLink },
317     { 'RLS', '[[w:Russian State Library|RLS]]', 947, rslLink },
318     { 'Botanist', '[[w:Author citation (botany)|Botanist]]', 428, botanistLink },
319     { 'NARA-person', '[[w:National Archives and Records Administration|NARA]]', 1222, narapersonLink },
320     { 'NARA-organization', '[[w:National Archives and Records Administration|NARA]]', 1223, naraorganizationLink },
321     { 'USCongress', '[[w:Biographical Directory of the United States Congress|US Congress]]', 1157, uscongressLink },
322     { 'BNE', '[[w:Biblioteca Nacional de España|BNE]]', 950, bneLink },
323     { 'CINII', '[[w:CiNii|CiNii]]', 271, ciniiLink },
324     { 'TLS', '[[w:Theaterlexikon der Schweiz|TLS]]', 1362, tlsLink },
325     { 'SIKART', '[[w:SIKART|SIKART]]', 781, sikartLink },
326     { 'KULTURNAV', '[[w:KulturNav|KulturNav]]', 1248, kulturnavLink },
327     { 'RKDartists', '[[w:Netherlands Institute for Art History#Online artist pages|RKD]]', 650, rkdartistsLink },
328 }

This way for example, Alabama (and many many other articles) will not be in Special:WhatLinksHere/Library of Congress Control Number, etc. It always bothered me that identifier labels mentioned in navigation at the bottom of the page cluttered the link tables for those identifier articles. Now they will not be there unless otherwise mentioned within the article.

We could also use this linking style for our reference (on line 400) to Help:Authority control as well.

I could make the changes in the sandbox without issue, but I notice where is already an outstanding change there and I figured getting some feedback on such a change first might be useful.

Let me know what you think. Thank you. 50.53.1.33 (talk) 19:08, 26 July 2017 (UTC)

There is no response within three weeks. I am going to assume no one is planning to scream if I implement this in the sandbox and post an {{edit template-protected}} request here. Thanks. 50.53.1.33 (talk) 02:00, 17 August 2017 (UTC)
Silence is rarely consensus on a template used on over 500k pages. If you believe this is a beneficial change, you should probably invite comment via WP:VP or WP:RFC. --Izno (talk) 03:48, 17 August 2017 (UTC)

Also link to autores.uy ID, available in Wikidata[edit]

This is the only ID available for uruguayan authors. The code would be this:

local function autoresuy( id )
    return '[http://autores.uy/autor/' .. id .. ' ' .. id .. ']' ..  getCatForId( 'autores.uy' )
end

The line in conf would be:

    {  'autores.uy', '[[autores.uy]]', 2558, autoresuy },

Thanks. --Zeroth (talk) 17:24, 5 August 2017 (UTC)

@Zeroth:  Added Please update the documentation. — JJMC89(T·C) 02:57, 26 August 2017 (UTC)
@JJMC89:. Done!. Thanks!. --Zeroth (talk) 14:17, 26 August 2017 (UTC)

Tracking categories[edit]

@P64: Thanks for marking not individualized GNDs. I would like to help improve authority control. The following tracking categories would be helpful:

Can you - or anyone who is able to - implement these categories? --Kolja21 (talk) 03:34, 6 August 2017 (UTC)

I suggest using {{WikidataCheck}} in the template like this or integrating Module:WikidataCheck into Module:Authority control. — JJMC89(T·C) 04:49, 6 August 2017 (UTC)
Using Module:WikidataCheck is the more logical choice. That said, this sort of thing should likely not be implemented just for GND but for all applicable identifiers (i.e., ones Module:Authority control could potentially pull from Wikidata). 50.53.1.33 (talk) 05:44, 6 August 2017 (UTC)
I agree. That's what I was referring to by integrating Module:WikidataCheck. — JJMC89(T·C) 06:02, 6 August 2017 (UTC)
I looked at this a little more and there are a number of issues with implementing this (none of which could not be overcome though). First, Module:WikidataCheck does not really seem to be written for consumption by another Lua module (there is only the one function that takes a template frame). Next Module:Authority control does not always fetch the Wikidata (when arguments are present) and it uses getBestStatements to select the item property values with the best rank (Module:WikidataCheck does not seem to support this). For these reasons, I believe it would be easier to just directly implement this behavior in Module:Authority control and dispense with Module:WikidataCheck, although it could be used for inspiration and we could name our categories in a similar manner. Alternatively, Module:WikidataCheck could perhaps be fixed to better support use cases like what is need in Module:Authority control and then Module:Authority control could be made to employ such. 50.53.1.33 (talk) 06:23, 6 August 2017 (UTC)
Doing most things in Lua is outside my expertise. If you or someone else wants to implement the necessary changes (to either/both modules) in the sandbox, that would be great. Otherwise, I'll do this to fulfill this request and leave further development to the Lua pros. — JJMC89(T·C) 22:39, 12 August 2017 (UTC)
You are welcome to do that for now but I would rather hold off (because as I mentioned above that will yield spurious tracking errors due to the difference in how Wikidata is pulled between Module:WikidataCheck vs. Module:Authority control). Of course doing it in general (in the Lua module) would be far better but upon looking at this, it would take significant work and thus will take time. The main reason is because the Lua code just pulls all the args and then pulls Wikidata and stomps over the args with Wikidata where "appropriate". This makes it impossible to make decisions like adding things to tracking categories later. Methinks the best method would be to pull all Wikidata into another table and compare them later but that requires some more serious redesign. 50.53.1.33 (talk) 01:27, 17 August 2017 (UTC)
Toggled without implementation per 50.53.1.33. I've asked for some eyes at WT:LUA. — JJMC89(T·C) 17:44, 18 August 2017 (UTC)

Photographers' Identities Catalog IDs[edit]

The Photographers' Identities Catalog (PIC) is a New York Public Library database of biographical information on ~125,000 photographers. There are currently ~14,000 PIC IDs in Wikidata. Might we include PIC IDs in the Authorities template? Davidrlowe (talk) 13:39, 10 August 2017 (UTC)

For reference:
local function picLink( id )
    return '[https://pic.nypl.org/constituents/' .. id .. ' ' .. id .. ']' .. getCatForId( 'PIC' )
end
--...
{ 'PIC', '[[Photographers\' Identities Catalog|PIC]]', 2750, picLink },
— JJMC89(T·C) 01:53, 1 September 2017 (UTC)
 Done — JJMC89(T·C) 02:18, 1 September 2017 (UTC)

Discussion on WP:Village Pump (idea lab)[edit]

A discussion has been initiated at Wikipedia:Village pump (idea lab)/Archive 23#Upgrading Authority control. All the volunteers are invited to share their comments. -- Pankaj Jain Capankajsmilyo (talk · contribs · count) 07:31, 13 August 2017 (UTC)

Julius A. Palmer Jr.[edit]

I'm in user space working on an article for Julius A. Palmer Jr. Wikisource has him without the Jr., but looks like a redirect correcting that. Wikidata has him set up as Julius Auboineau Palmer. When I get ready to publish to main space, how do I link the Authority control template to this Wikidata information? — Maile (talk) 21:21, 24 August 2017 (UTC)

You can link the article at d:Q18910635#sitelinks-wikipedia. (Click edit next to Wikipedia.) — JJMC89(T·C) 01:31, 25 August 2017 (UTC)

Technical improvement[edit]

@JJMC89: please consider to avoid calling getEntityObject from this module - this has a side affect that the page gets connected to the wikidata item in wbc_entity_usage with X aspect (so any change in wikidata is reflected in the recentchanges/watchlist - even if it as nothing to do with authority control properties).

To load specific statement use mw.wikibase.getBestStatements( 'Q1', 'P12' ) instead of mw.wikibase.entity:getBestStatements. For example Module:Authority control in hewiki with this trick.

Following this change you should expect:

  • wbc_entity_usage with All/X aspect should decrease
  • When users show wikidata in recentchanges (usually hidden) it will be a little less noisy in the future (phab:T151717)

Thanks, Eran (talk) 21:28, 11 September 2017 (UTC)

That would be a premature change as the Wikidata team is working on exactly that issue already. There is no need nor reason to optimize at this time for those supposed benefits. --Izno (talk) 22:40, 11 September 2017 (UTC)
Izno:
  • This is not a premature change (already tested on hewiki for a whilewbc_entity_usage)
  • There are good reasons for optimization:
    • To show less noise on recentchanges (phab:T151717#3598717)
    • To improve load time of watchlist (phab:T171027))
    • Even if wikidata is planing to improve the usage tracking anyway (phab:T172914), there is a side benefit of allowing Wikibase to load specific statements rather than the whole entity
Eran (talk) 04:43, 12 September 2017 (UTC)
@JJMC89: ? Eran (talk) 18:09, 19 September 2017 (UTC)
Sorry, Eran. You're going to need to find someone who actually knows Lua and is familiar with the involved functions. I suggest putting your changes in Module:Authority control/sandbox and asking someone like RexxS or Johnuniq to review. — JJMC89(T·C) 00:19, 20 September 2017 (UTC)
As it happens I am up to my ears with some module work at Commons which started with exactly the issue raised by Eran above (phab:T171392 in case of interest). I hope to finish the Commons stuff soon but will then have other things to catch up. If anything is still wanted in two weeks, consider pinging me then. Johnuniq (talk) 03:27, 20 September 2017 (UTC)

Suggestion for the left cell of the authority control template[edit]

See proposal made at User talk:Jimbo Wales#Authority control template. --Francis Schonken (talk) 08:43, 15 September 2017 (UTC)

Convert to core functionality[edit]

This template should be upgraded to become core functionality of wikipedia. It should be visible by default on pages which have authority control and not be added to each and every such page manually. -- Pankaj Jain Capankajsmilyo (talk · contribs · count) 03:06, 20 September 2017 (UTC)