InterWikiLinks
InterWiki links let you link to a page on another site using a short prefix instead of a full URL.
Syntax
[Prefix:PageName]
[Display Text|Prefix:PageName]
Examples:
[Wikipedia:Wiki]links to the Wikipedia article on "Wiki"[Einstein|Wikipedia:Albert_Einstein]links with custom display text
Configured InterWiki Sites
The following sites are configured in ngdpbase.interwiki.sites:
| Prefix | Destination | URL template |
|---|---|---|
Wikipedia | English Wikipedia | https://en.wikipedia.org/wiki/%s |
JSPWiki | Apache JSPWiki documentation | https://jspwiki-wiki.apache.org/Wiki.jsp?page=%s |
GVP | Global Volcanism Program — volcano by number | https://volcano.si.edu/volcano.cfm?vn=%s |
GVP-COUNTRY | Global Volcanism Program — volcanoes by country | https://volcano.si.edu/volcanolist_countries.cfm?country=%s |
geo | GeoHazardWatch | https://geohazardwatch.com/view/%s |
grok | Grokipedia | https://grokipedia.com/page/%s |
Prefixes are matched case-insensitively, so geo:, Geo: and GEO: all resolve.
Additional sites may be configured in data/config/app-custom-config.json under ngdpbase.interwiki.sites.
Adding a New InterWiki Site
Add an entry to ngdpbase.interwiki.sites in data/config/app-custom-config.json:
"ngdpbase.interwiki.sites": {
"MySite": {
"url": "https://example.com/view/%s",
"description": "My external site",
"enabled": true,
"openInNewWindow": true
}
}
The %s placeholder is replaced with the page name from the link.
See also Configuration Properties Reference and Server Management.
No comments yet.