Handling #if in MediaWiki possible? - Mailing list pgsql-www

From Alvaro Herrera
Subject Handling #if in MediaWiki possible?
Date
Msg-id 20090315002540.GC5624@alvh.no-ip.org
Whole thread Raw
Responses Re: Handling #if in MediaWiki possible?  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-www
Hi,

If you visit
http://www.mediawiki.org/wiki/MediaWiki
you can see at the bottom a box listing available languages for that
page.  They do this by having a template, Template:Languages, that uses
conditional inclusion of languages when the corresponding translation
exists for a given page.

So I'd like to use it (particularly so now that we have the FAQ on the
wiki), but apparently it needs #if constructs that don't work in our
installation.

The templates that we need are Template:Languages and
Template:Languages/Lang.  I have created Template:Languages/Lang (that
doesn't really work as far as I can see); since I can't create
Template:Languages (only wiki admins can) I instead created
Template:LanguagesExperiment.  It renders rather badly, and the #if and
#ifexist seem to be the problem:
http://wiki.postgresql.org/wiki/Template:LanguagesExperiment

So my question is: Is there a way for us to support those #if thingies?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-www by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: the sad state of our FAQs
Next
From: Alvaro Herrera
Date:
Subject: Re: Handling #if in MediaWiki possible?