Interwiki links and you

Until today, creating interwiki links involved using a really weird syntax with the MediaWiki extension on the Mozilla Developer Center. Ugh.

I just added a template that makes creating interwiki links much easier. Now you can simply do:

{{template.interwiki(wiki, path)}}

For example:

{{template.interwiki("wikipedia", "Mozilla")}}

or

{{template.interwiki("wikimo", "WeeklyUpdates")}}

This should make things much easier when you want to create links like these. As an added bonus, Wikipedia interwiki links detect the language of the page containing the link, and automatically directs to the corresponding language on Wikipedia.

One Response to “Interwiki links and you”

  1. Steve Bjorg says:

    You can also just do {{ interwiki(“wikipedia”, “Mozilla”) }}. The “template.” prefix is not required anymore.

    Cheers,

    - Steve

Leave a Reply

Line and paragraph breaks automatic.
XHTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>