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. You can also just do {{ interwiki(“wikipedia”, “Mozilla”) }}. The “template.” prefix is not required anymore.

    Cheers,

    - Steve

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 Bit Stampede Suffusion theme by Sayontan Sinha