:Help:Magic links
{{historical|brief=yes}}{{Ambox|type=speedy|text=Magic links were removed from the MediaWiki code in March 2021 (see this MediaWiki RfC). {{oldid2|772133164|Future of magic links|This March 2017 (English Wikipedia) RfC}} determined that these magic links on the English Wikipedia should be replaced by the {{tl|ISBN}}, {{tl|PMID}}, and {{tl|IETF RFC}} templates.}}{{wikipedia how-to}}{{Wiki markup}}{{bots|deny=Magic links bot}}
Magic links are automatic links for certain unique identifiers that require no markup. This functionality is expected to be removed from the MediaWiki software; users are encouraged to use the corresponding templates.
ISBN
{{main|Wikipedia:ISBN}}
The following instructions are deprecated. Editors should use the {{tl|ISBN}} template to link ISBNs.
The International Standard Book Number (ISBN) is a unique numeric commercial book identifier. The created link is to Special:BookSources. The allowable formats are:
- 10 or 13 digits
- optional delimiting hyphens or spaces
- 1 check character
{{markup
|
|ISBN 978-0-306-40615-7
|
|ISBN 1413304540
}}
PMID
{{Main|Wikipedia:PMID}}
The following instructions are deprecated. Editors should use the {{tl|PMID}} template to link PMIDs.
A PMID (PubMed identifier or PubMed unique identifier) is a unique number assigned to a PubMed record.
{{markup
|
|PMID 11209037.
}}
RFC
The following instructions are deprecated. Editors should use the {{tl|IETF RFC}} template to link IETF RFCs.
A Request for Comments (RFC) is a memorandum published by the Internet Engineering Task Force (IETF).
{{markup
|
|RFC 5620
}}
Suppressing the link
The following instructions will no longer be necessary when magic links are disabled.
If no link is desired, insert {{tag|nowiki|s}} between the identifier and the value.
{{markup
|
|ISBN
}}
Or alternatively, wrap {{tag|nowiki}} around the entire magic link:
{{markup
|<
|
}}
Technical
Magic links are rendered by {{parser.php}}. The links for PMID and RFC are rendered by MediaWiki interface pages:
- PMID: MediaWiki:Pubmedurl
- RFC: MediaWiki:Rfcurl
See also
- :mw:Manual:$wgUrlProtocols, which creates automatic links for various protocols
{{Wikipedia technical help|collapsed}}