Help:Magic links
| This page is currently inactive and is retained for historical reference. |
Magic links were removed from the MediaWiki code in March 2021 (see this MediaWiki RfC). This March 2017 (English Wikipedia) RfC determined that these magic links on the English Wikipedia should be replaced by the {{ISBN}}, {{PMID}}, and {{IETF RFC}} templates. |
This help page is a how-to guide. It explains concepts or processes used by the Wikipedia community. It is not one of Wikipedia's policies or guidelines, and may reflect varying levels of consensus. |
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
The following instructions are deprecated. Editors should use the {{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 | Renders as |
|---|---|
ISBN 978-0-306-40615-7 |
ISBN 978-0-306-40615-7 |
ISBN 1413304540 |
ISBN 1413304540 |
See Category:Pages using ISBN magic links.
PMID
The following instructions are deprecated. Editors should use the {{PMID}} template to link PMIDs.
A PMID (PubMed identifier or PubMed unique identifier) is a unique number assigned to a PubMed record.
| Markup | Renders as |
|---|---|
PMID 11209037 |
PMID 11209037. |
See Category:Pages using PMID magic links.
RFC
The following instructions are deprecated. Editors should use the {{IETF RFC}} template to link IETF RFCs.
A Request for Comments (RFC) is a memorandum published by the Internet Engineering Task Force (IETF).
| Markup | Renders as |
|---|---|
RFC 5620 |
RFC 5620 |
See Category:Pages using RFC magic links.
Suppressing the link
The following instructions will no longer be necessary when magic links are disabled.
If no link is desired, insert <nowiki /> between the identifier and the value.
| Markup | Renders as |
|---|---|
ISBN <nowiki />978-0-306-40615-7 |
ISBN 978-0-306-40615-7 |
Or alternatively, wrap <nowiki>...</nowiki> around the entire magic link:
| Markup | Renders as |
|---|---|
<nowiki>ISBN 978-0-306-40615-7</nowiki> |
ISBN 978-0-306-40615-7 |
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
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.