Page MenuHomePhabricator

ifexpr to consider localized true and false values
Open, LowPublic

Description

Hello, I'm using Semantic MediaWiki and ParserFunctions and I'm wondering if {{#ifexpr:}} could use a same approach for triggering if true or if false actions.
That way ifeq would be avoided when there could be many possible strings, so syntax could become less complex.

{{#ifexpr: {{{Aprovat}}} | value if true | value if false }}

'Aprovat' parameter, from a template, could have the following values in Catalan, for instance:
http://translatewiki.net/wiki/MediaWiki:Smw_true_words/ca
http://translatewiki.net/wiki/MediaWiki:Smw_false_words/ca

I guess ParserFunctions should have a similar string to be localizable.

Details

Reference
bz24905

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:04 PM
bzimport set Reference to bz24905.
bzimport added a subscriber: Unknown Object (MLST).