public inbox for [email protected]  
help / color / mirror / Atom feed
Handling #if in MediaWiki possible?
4+ messages / 2 participants
[nested] [flat]

* Handling #if in MediaWiki possible?
@ 2009-03-15 00:25 Alvaro Herrera <[email protected]>
  2009-03-15 05:07 ` Re: Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2009-03-15 00:25 UTC (permalink / raw)
  To: 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.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Handling #if in MediaWiki possible?
  2009-03-15 00:25 Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
@ 2009-03-15 05:07 ` Alvaro Herrera <[email protected]>
  2009-03-15 09:34   ` Re: Handling #if in MediaWiki possible? Stefan Kaltenbrunner <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2009-03-15 05:07 UTC (permalink / raw)
  To: pgsql-www

Alvaro Herrera wrote:

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

Turns out to be very easy to enable -- we just need to install this
extension:
http://www.mediawiki.org/wiki/Extension:ParserFunctions
It's a very trivial process.

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Handling #if in MediaWiki possible?
  2009-03-15 00:25 Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
  2009-03-15 05:07 ` Re: Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
@ 2009-03-15 09:34   ` Stefan Kaltenbrunner <[email protected]>
  2009-03-16 00:29     ` Re: Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Stefan Kaltenbrunner @ 2009-03-15 09:34 UTC (permalink / raw)
  To: Alvaro Herrera <[email protected]>; +Cc: pgsql-www

Alvaro Herrera wrote:
> Alvaro Herrera wrote:
> 
>> So my question is: Is there a way for us to support those #if thingies?
> 
> Turns out to be very easy to enable -- we just need to install this
> extension:
> http://www.mediawiki.org/wiki/Extension:ParserFunctions
> It's a very trivial process.

done


Stefan



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Handling #if in MediaWiki possible?
  2009-03-15 00:25 Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
  2009-03-15 05:07 ` Re: Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
  2009-03-15 09:34   ` Re: Handling #if in MediaWiki possible? Stefan Kaltenbrunner <[email protected]>
@ 2009-03-16 00:29     ` Alvaro Herrera <[email protected]>
  0 siblings, 0 replies; 4+ messages in thread

From: Alvaro Herrera @ 2009-03-16 00:29 UTC (permalink / raw)
  To: Stefan Kaltenbrunner <[email protected]>; +Cc: pgsql-www

Stefan Kaltenbrunner wrote:
> Alvaro Herrera wrote:
>> Alvaro Herrera wrote:
>>
>>> So my question is: Is there a way for us to support those #if thingies?
>>
>> Turns out to be very easy to enable -- we just need to install this
>> extension:
>> http://www.mediawiki.org/wiki/Extension:ParserFunctions
>> It's a very trivial process.
>
> done

For the record, I also had to ask Stefan to enable subpages on the main
namespace for this to work, as advised on #mediawiki.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2009-03-16 00:29 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-03-15 00:25 Handling #if in MediaWiki possible? Alvaro Herrera <[email protected]>
2009-03-15 05:07 ` Alvaro Herrera <[email protected]>
2009-03-15 09:34   ` Stefan Kaltenbrunner <[email protected]>
2009-03-16 00:29     ` Alvaro Herrera <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox