Template talk:Authority control
Add topicTemplate:WikiProject banner shell Template:Banner holderUser:ClueBot III/ArchiveThis Template:To do
| Wikipedia authority control |
|---|
Odd HTML anchor
[edit source]I was looking to link to an authority control box, and found this HTML markup (from The Man Who Wouldn't Stand Up):
<syntaxhighlight lang="html">
Why the escaped markup as an HTML anchor? This seems like a bug. Daask (talk) 18:21, 21 April 2026 (UTC)
- That escaped markup seems like the output of Module:EditAtWikidata encoded/escaped twice:
Authority_control_databases_frameless|text-top|10px|alt=Edit_this_at_Wikidata|link=https://www.wikidata.org/wiki/Q7749994#identifiers|class=noprint|Edit_this_at_Wikidata539
- The code currently at Module:Authority control#L-335 appends an edit at Wikidata pencil icon to the "Authority control databases" navbox title. Unfortunately Module:Navbox#L-192 uses that navbox title for the id value: <syntaxhighlight inline lang="lua">:attr('id', mw.uri.anchorEncode(args[cfg.arg.title]) .. args.argHash)</syntaxhighlight> Perhaps Module:Navbox needs an optional anchor parameter to use instead of the navbox title? Daask (talk) 19:26, 23 April 2026 (UTC)
- Reported at Template:Slink Daask (talk) 19:33, 23 April 2026 (UTC)
- What would be a suitable value to use for this attribute? — Martin (MSGJ · talk) 20:48, 23 April 2026 (UTC)
- Can we just use
id="authority control"? There should never be more than one of these templates on an article, so this would be unique. I am aware of some userpages with more than one, but perhaps this does not matter — Martin (MSGJ · talk) 08:34, 24 April 2026 (UTC)- A little research indicates this bug has been around since 2019 when anchors for the authority control navbox were first introduced, so continuity with past practice doesn't matter. I agree that we don't need to worry about duplicate anchor issues from repeated template invocation on the same page, but we do need to consider name collision with article headings. Since MediaWiki replaces spaces in headings with underscore, I think we should be safe using a hyphen instead and a lowercase first letter. How about "authority-control"? The <syntaxhighlight lang="text" class="" style="" inline="1">id</syntaxhighlight> attribute may not contain whitespace per HTML5 spec. Daask (talk) 21:56, 25 April 2026 (UTC)
- @Daask I have implemented this in the sandbox, and tested at User:MSGJ/Sandbox/4. For some reason it is using
id="authority-control719". I'm not sure where the 719 comes from? — Martin (MSGJ · talk) 10:20, 21 May 2026 (UTC)
- @Daask I have implemented this in the sandbox, and tested at User:MSGJ/Sandbox/4. For some reason it is using
- A little research indicates this bug has been around since 2019 when anchors for the authority control navbox were first introduced, so continuity with past practice doesn't matter. I agree that we don't need to worry about duplicate anchor issues from repeated template invocation on the same page, but we do need to consider name collision with article headings. Since MediaWiki replaces spaces in headings with underscore, I think we should be safe using a hyphen instead and a lowercase first letter. How about "authority-control"? The <syntaxhighlight lang="text" class="" style="" inline="1">id</syntaxhighlight> attribute may not contain whitespace per HTML5 spec. Daask (talk) 21:56, 25 April 2026 (UTC)
- Can we just use
Whitelist for Ukraine
[edit source]There ought to be a whitelist for Ukraine, code ua, including the Internet Encyclopedia of Ukraine (Template:Q) and Encyclopedia of Modern Ukraine (Template:Q).
These two ID’s can also be added to the arts whitelist as they have articles about artists, arts groups, art movements, and related subjects. ~2026-27114-97 (talk) 19:34, 4 May 2026 (UTC)
- Created
uawhitelist. Awaiting consensus on adding these to the arts whitelist — Martin (MSGJ · talk) 10:24, 1 June 2026 (UTC)
GND format
[edit source]Just noting here that the GND format seems to have changed [1]. This will probably need updating here, as John Christian Frederick Heyer is currently throwing an error — Martin (MSGJ · talk) 10:00, 1 June 2026 (UTC)
- Template:Fixed — Martin (MSGJ · talk) 10:24, 1 June 2026 (UTC)
New NSK ID
[edit source]Please replace <syntaxhighlight lang="lua">{ property = 1375, section = 2, pattern = '%d%d%d%d%d%d%d%d%d', link = 'http://katalog.nsk.hr/F/?func=direct&doc_number=$1&local_base=nsk10', label = 'Croatia', } </syntaxhighlight> with <syntaxhighlight lang="lua" copy>{ property = 14225, section = 2, pattern = '98%d%d%d%d%d%d%d%d%d%d%d%d9366', link = 'https://bukinet-mreza.primo.exlibrisgroup.com/discovery/authfulldisplay?&context=L&vid=385BUKINET_NETWORK:VU1_UNION&lang=en&docid=$1', label = 'Croatia', } </syntaxhighlight> The old IDs no longer work. See d:Property:P14225 (old: d:Property:P1375). Ponor (talk) 04:25, 3 June 2026 (UTC)
- Added to sandbox. Comparison below — Martin (MSGJ · talk) 08:48, 3 June 2026 (UTC)
- Do you know if all/most of the new property has been populated? — Martin (MSGJ · talk) 08:49, 3 June 2026 (UTC)
- I'd say yes - d:Wikidata:Property proposal/NSK new ID (and even if it hasn't, the old links take us nowhere). Kindly asking @Epìdosis to tell us more. Ponor (talk) 11:04, 3 June 2026 (UTC)
- Yes P14225 is populated, all the conversions have been provided by NSK and I have also been able to fix some mistakes in them. Epìdosis 14:16, 3 June 2026 (UTC)
- Okay that's Template:Done — Martin (MSGJ · talk) 16:08, 3 June 2026 (UTC)
- Yes P14225 is populated, all the conversions have been provided by NSK and I have also been able to fix some mistakes in them. Epìdosis 14:16, 3 June 2026 (UTC)
- I'd say yes - d:Wikidata:Property proposal/NSK new ID (and even if it hasn't, the old links take us nowhere). Kindly asking @Epìdosis to tell us more. Ponor (talk) 11:04, 3 June 2026 (UTC)
Template:Authority control Template:Authority control/sandbox
Adding Quebec & Canada GEO IDs
[edit source]Hello. I was wondering if it might be possible to please add P2100 & P821 to the authority control template? These are related to places. For example, the French version of fr:Parc Jacques-Cartier (Sherbrooke) lists these at the bottom of the page but not the version here: Jacques-Cartier Park (Sherbrooke). Thank you --TitCrisse (t•c) 01:07, 7 June 2026 (UTC).