Jump to content

User:Daask/MultiResolver

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MultiResolver
MultiResolver modal dialog generated from IRS Employer Identification Number (P1297) on the page Academy of Model Aeronautics
Author(s)User:Daask
StatusStable
First releasedDecember 20, 2024; 7 months ago (2024-12-20)
UpdatedDecember 21, 2024; 7 months ago (2024-12-21)
SourceUser:Daask/MultiResolver/en.wikipedia.js

MultiResolver is a tool for displaying links to multiple resolvers for an identifier. It's like Special:BookSources but for many different identifiers, rather than just for ISBNs. It works for any Wikidata property, although it can be configured with identifier-specific information for improved user experience. The original proposal with use cases can be found at d:Wikidata:Project chat/Archive/2024/01 § Landing page for multiple formatter URL values.

Contribute

  1. Let me know of other identifiers for which this tool would be useful at User talk:Daask/MultiResolver. Or, you can add them yourself with only minimal coding skills! This is all it takes:
    findAndLinkIdentifiersByHref(
      'P1297',                 // Wikidata property
      '\\d+',                  // RegExp for identifier value
      '/wiki/EIN_(identifier)' // How the identifier name is linked on Wikipedia
    );
    
  2. Edit the CSS to improve usability and appearance.
  3. Write a SPARQL query to retrieve qualifiers for formatter URLs from Wikidata.
  4. Help get this hosted on Toolforge as a standalone page, so it can be linked as a page rather than just using a modal dialog. (The code is already written as generateMultiResolverFromURL().)