Thread:Extension talk:SubPageList/Number of subpages?/reply (2)

It would be nice to use those functions in parser functions like #if: to choose the formatting of the subpages. Especially, on 0 subpages I would like to omit the message: 'Page "topPage" has no subpages to list'. A conveniant but maybe expensive alternative to the last use case would be to allow to configure the error message to the empty string, and use the directly in the if condition.