Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 9F9326353DA for ; Sat, 14 Mar 2009 21:26:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 39170-02-6 for ; Sat, 14 Mar 2009 21:26:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id 76477632FB2 for ; Sat, 14 Mar 2009 21:25:47 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-101-194.bk7-dsl.surnet.cl [200.126.101.194]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id n2F0WOOw008409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 14 Mar 2009 17:32:28 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id ABE7147CE0; Sat, 14 Mar 2009 21:25:40 -0300 (CLST) Date: Sat, 14 Mar 2009 21:25:40 -0300 From: Alvaro Herrera To: w^3 Subject: Handling #if in MediaWiki possible? Message-ID: <20090315002540.GC5624@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sat, 14 Mar 2009 17:32:28 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/65 X-Sequence-Number: 16719 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.