Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Markup spec/BNF/Magic links

From mediawiki.org
<Markup spec |BNF

EBNF grammar project

Markup spec

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

[edit]

SeeManual:ISBN

<isbn>::= "ISBN" (" "+)<isbn-number> ?(non-word-character /\b/)<isbn-number>::= ("97" ("8" | "9") (" " | "-")?) (DIGIT (" " | "-")?) {9} (DIGIT | "X" | "x")

Examples:

Counter-examples:

  • ISBN 12345678901 (not followed by non-word character)
  • ISBN 123456789 (too short)
  • ISBN 97-81234567890 (dashes not allowed in prefix)
  • ISBN1234567890 (no spaces)

RFCs

[edit]

SeeManual:RFC

<rfc-number>::= "RFC"<spaces><digits>

Examples:

PubMed IDs

[edit]
<pmid-number>::= "PMID"<spaces><digits>
Retrieved from "https://www.mediawiki.org/w/index.php?title=Markup_spec/BNF/Magic_links&oldid=6709094"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp