This page shows how to create interwiki links using Template:InterWiki.
{{ interwiki('wikipedia', 'MindTouch') }}
This page shows how to create interwiki links using Template:Wikipedia.
{{ wikipedia('MindTouch') }}
The interwiki template is written for 9.02, but something can also be achieved with 8.08. Note this variation does not set a class attribute on the link to allow for customization of the link look-and-feel. Also note that you will need to invoke it using the template prefix: {{ template.interwiki('wikipedia', 'MindTouch') }}
var prefix = string.ToLower($0 ?? $prefix ?? '');
var path = $1 ?? $path;
var title = $2 ?? $title ?? path;
switch(prefix) {
case 'wikipedia':
web.link(uri.build('http://en.wikipedia.org/wiki', path), title, title);
break;
default:
'Unknown prefix: ' .. prefix .. '.';
}
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
That worked. But I do have something to add: it only worked when I added the template. before interwiki
{{ template.interwiki('wikipedia', 'mindtouch') }}