m.mediawiki.org
Markup spec/BNF/Magic links
< Markup spec‎ | BNF
EBNF grammar project
Magic links are words that may appear within <wiki-text> that are automatically converted to external links without any special markup being required by the person writing the page.
<magic-link> ::= <isbn> | <rfc-number> | <pmid-number>
Note that all character-literals on this page are case sensitive (i.e. upper-case characters in the definitions on this page MUST be written in upper case in the markup).
ISBN numbers
See Manual:ISBN
<isbn> ::= "ISBN" (" "+) <isbn-number> ?(non-word-character /\b/) <isbn-number> ::= ("97" ("8" | "9") (" " | "-")?) (DIGIT (" " | "-")?) {9} (DIGIT | "X" | "x")
Examples:
Counter-examples:
RFCs
See Manual:RFC
<rfc-number> ::= "RFC" <spaces> <digits>
PubMed IDs
<pmid-number> ::= "PMID" <spaces> <digits>
Last edited on 8 May 2020, at 20:02
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomLog inSettingsDonateAbout MediaWiki.orgDisclaimers
WatchEdit