Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wpSpamFree has a deprecated constructor in /home/bitstampede/bitstampede.com/wp-content/plugins/wp-spamfree/wp-spamfree.php on line 5836
Interwiki links and you – Bit Stampede
Oct 022009
 

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.

 Posted by at 4:11 PM

  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