A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Requests_for_comment/Future_of_magic_links below:

Requests for comment/Future of magic links

Magic links are a feature of MediaWiki core that create automatic links for 3 hardcoded external identifiers:

For the purposes of this RfC, we are not considering free external links (e.g. typing just https://www.example.org) to be a magic link.

These are hardcoded, inflexible, un-localizable, and generally unexpected. If this feature were proposed today, it would be rejected in favor of using templates or interwiki links. There have been long standing requests to make them disable-able, move them to an extension, or remove them outright.

In many cases, local templates are preferable and more advanced than magic links. For example, on the English Wikipedia, Template:ISBN checks for invalid ISBNs and adds them to a tracking category for editors to fix up.

As of gerrit:309528 it is now possible to disable magic link functionality using $wgEnableMagicLinks . Our eventual goal should be to remove all magic link functionality from MediaWiki core. While moving them to an extension would allow us to remove them from core, it would probably entrench magic links even deeper in the parser as we would need a mechanism and hook system to support an extension to add magic links.

Instead, we should:

What for would you do this? It will clutter all the projects with extra template calls and other extraneous crap. Rich Farmbrough 18:03, 27 December 2016 (UTC).[reply]

There's concern on enwiki (here, for example) about the loss of the ISBN and PMID magic links. There's also concern about the lack of discussion. The first most of us knew about this was when a bot operator submitted a request to remove the links. Can the disabling of the links be halted so that a wider discussion can be held first? SarahSV (talk) 19:05, 29 December 2016 (UTC)[reply]

Has there been any real discussion on the actual sites? This will have a huge impact. [It seems to me that this change goes against consensus? See Removal of ISBN magic links.] Jeblad (talk) 13:12, 15 April 2017 (UTC)[reply]
Yes, discussions are on-going. The English Wikipedia had an RfC and agreed to deprecated and eventually remove magic links. Legoktm (talk) 00:31, 12 July 2017 (UTC)[reply]
Have you asked the German speaking community? Please provide a link. --Eingangskontrolle (talk) 15:06, 27 March 2018 (UTC)[reply]
Please keep the magic links, why increase work load for editors? And why clutter the source text, so that it becomes less readable to the vast majority of non-coders (writing an encyclopedia) and potential new authors? Cheers, --Ghilt (talk) 11:00, 23 May 2017 (UTC)[reply]
If you think something is "as easy as apple-pie" it's a shame you didn't submit a patch earlier to implement that functionality - however I doubt it's as easy as you think. And while you might see hardcoded/inflexible as a feature, many people see it as exactly the opposite. As for being unexpected, see phab:T70217, or w:Wikipedia:Village_pump_(technical)/Archive_8#Automatic_external_link, etc. AFAIK DOI has never been a magic word, and I certainly never removed it. It's still an interwiki link if that's what you meant. Legoktm (talk) 00:31, 12 July 2017 (UTC)[reply]

For your information, there is now Extension:MagicalLinkers. Nuno Tavares (talk) 13:09, 7 August 2018 (UTC)[reply]

It already does this with URLs: a valid URL is interpreted as a link "out of the box" as default behaviour. If I write https://mediawiki.org , it appears as a link by default. If I want mediawiki-specific formatting I can use additional MW link formatting, and if I want totally custom treatment of URLs, I can use a template. If I want completely custom counterintuitive behaviour (like a URL NOT functioning as a link), I can override or use a custom template. This three-or four-tier approach is IMO the correct behaviour – support unambiguous standards by default, support more sophisticated MW behaviour through markup, and support custom behaviour through templates.
IMO, the ISBN identifier is sufficiently explicit that if it appears, MW should support it – Why would a writer include an ISBN number if they didn't want people to be able to look it up?
Also EAN numbers, ORCID numbers, and GPS numbers, doi: numbers, perhaps BCE and CE dates, perhaps universal time code. These standard identifiers can also trigger the auto-insertion of metadata into the html to make pages more easily machine-readable. Yes, we already have Semantic MediaWiki for this, but it's so unwieldy that almost nobody uses it outside of templates.
If anything, we should be taking automatic support for successful standards further. Support for citations is currently a mess (reflecting the existing mess of conflicting citation standards out in the real world), which is why they invented the DOI (Wikipedia:Digital object identifier) standard. We should be embracing doi, using doi-lookup to auto-fill citation fields, auto-finding doi numbers from existing citation templates, and only using the long-winded manual citation fields for doi lookup or for special purposes, such as when no doi is available, when we want more supplementary detail (doi-plus-pagenumber, doi-plus-chaptername), or when the doi database has a problem. ErkDemon (talk) 12:06, 12 April 2024 (UTC)[reply]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4