Page MenuHomePhabricator

Add ignoreCase flag to templates {{{param}}}
Closed, DuplicatePublic


Not a bug but a feature request, if overall doable.

It would be highly useful to have a RegExp i (ignore case) equivalent for {{{param}}}. So instead of current {{{paramName|defaultValue}}} to have {{{paramName|defaultValue|ignoreCase}}}

The situation of say Profession=something or profession=something being sent randomly or different in different templates is rather often and we have to deal with it in any case but so far for "magic words" in an awkward way like {{#if: {{{Profession|}}}{{{profession|}}} | argument provided | argument not provided }}

{{#if: {{{profession||i}}} | argument provided | argument not provided }} would be much leaner, reliable and w/o extra value check on server.