Templates in non-executed branches of conditional parser functions are not expanded, and therefore not counted. For example, in the code <code><nowiki>{{#if:yes|{{bar}}|{{foo}}}}</nowiki></code>, the template <code><nowiki>{{bar}}</nowiki></code> is expanded, but the template <code><nowiki>{{foo}}</nowiki></code> is not expanded.
Nevertheless, it is possible for a template argument to contribute to the counts even though it does not appear in the final output. For example, if the code <code><nowiki>{{#if:{{foo}}|yes|no}}</nowiki></code> is parsed, the length of the expanded version of template <code><nowiki>{{foo}}</nowiki></code> will be added to the post-expand counter, because that template must be expanded to decide which branch of the conditional should be selected.