Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Help:Magic links

From mediawiki.org
Translate this page
Languages:

Magic links are a feature of MediaWiki core that create automatic links for three hardcoded external identifiers.As of MediaWiki 1.28,this feature is disabled by default but may be enabled using the$wgEnableMagicLinks configuration parameter.

Examples:

ISBN is hardcoded to link to Special:Booksources (although the content of that special page can be changed by editingMediaWiki:Booksources andMediaWiki:Booksources-text), while the URLs for PMID and RFC can be changed by editing thesystem messagespubmedurl andrfcurl, respectively.

Alternatives

[edit]

As of MediaWiki 1.46, for ISBN numbers, there is aparser function for{{#isbn}} that provides the same functionality as the deprecated ISBN magic link.

Because magic links are hardcoded and inflexible, you can also use more straightforward interwiki or links:

Creating local templates similar to Wikipedia'sw:Template:ISBN,w:Template:IETF RFC, andw:Template:PMID or Wikiversity'sv:Template:ISBN,v:Template:RFC, andv:Template:PMID may be useful.

See also

[edit]
Retrieved from "https://www.mediawiki.org/w/index.php?title=Help:Magic_links&oldid=8191368"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp