Using format=count together with intro/outro
From semantic-mediawiki.org
Fragment of a discussion from Help talk:Count format
Just in case ...
Available work-around(s):
{{#ifeq:
{{#ask: [[Property::Value]] | format = count }} | 0
| case: Is Zero (just add Zero case pretty print here)
| case: Is Not Zero (enclose same #ask-count-code together with additional pretty print)
}}
Or alternatively:
{{#if:
{{#ask: [[Property::Value]] }}
| case: Data found == none zero-count (enclose #ask-count-code together with additional pretty print)
| case: No data found == zero-count (just add Zero case pretty print here)
}}
_#switch also comes to mind ... but did not checked/tested that one.
If needed one could create a template to take care of the default stuff. So one could use something like this.
{{count_pretty_print
| <#ask-count-call> ... or perhaps just the property input data (speculative/untested).
| <zero pretty print text>
| <None-zero leading pretty print text>
| <None-zero trailing pretty print text>
}}