https://bugzilla.wikimedia.org/show_bug.cgi?id=18199
Summary: Provide the ternary operator (condition ? then : else)
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Keywords: need-review, patch
Severity: enhancement
Priority: Normal
Component: ParserFunctions
AssignedTo: [email protected]
ReportedBy: [email protected]
It would be nice if there would be a ternary operator ([[?:]]) for #expr like
the most programming languages have.
I wrote a little patch that would provide this operator. And since it would be
needful, I inserted a sign function (e.g. sgn -2 == -1), too.
There are two new messages ("unserved_question_mark" and
"missing_question_mark") that need to be added in the i18n.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l