Board Thread:Support Requests - Getting Technical/@comment-109.103.213.222-20181017173805/@comment-9605025-20181017230548

You should be able to do what your want using DPL. Take a look at these sections:

select based on template use

select based on content

result header/footer

Perhaps something like this: {{#dpl: | uses = Template:myTemplate | includematch = /\|[\s\n]*myParameter[\s\n]*=[\s\n]*[^\|\}]+/s | count = 1 | resultsheader = %TOTALPAGES% | noresultsheader = 0 | format = ,,, }} - Edit:

You could even make this a template. Regardless, try to avoid using it too often as having a lot of DPL calls is not recommended.

Template:Count Parameter Usage: {{#dpl: | uses = Template:{{#replace: {{{templates|{{{template|}}}}}} | | | {{!}}Template:}} | includematch = /\{{!}}[\s\n]*({{{parameters|{{{parameter|\d+}}}}}})[\s\n]*=[\s\n]*[^\{{!}}\}]+/s | count = 1 | resultsheader = %TOTALPAGES% | noresultsheader = 0 | format = ,,, }} How to use (single template, single parameter):

How to use (multiple templates, multiple parameters): {{Count Parameter Usage | templates = myTemplate1{{!}}myTemplate2{{!}}myTemplate3 | parameters = myParameter1{{!}}myParameter2 }}