Last modified: 2012-11-07 04:15:13 UTC
function getParameters() allows do add new parameters to an SRF output but is it possible to define dependencies on a group of parameters? In Special:Ask, for example the parameter distribution, distributionsort and distributionlimit are interdependent. Meaning only when distribution is true distributionsort and distributionlimit make sense for a display. Would it be possible for parameters to be assigned to a group and only if the key parameter is true other remember of the group would be displayed in Special:Ask. Their are certainly other cases where dependencies exists between parameters.
Validator supports parameter dependencies. This is used for example for the format parameter. However, having special behavior for others might simply not be worth it. And for these params to actually live change on Special:Ask, you'd need to rewrite how the param display on that page works.
Add dependency r37441