I have a template, part of which contains this code:
{{#dpl: |category = Service |category = CU {{{cu_name}}} |titlematch = Infobox SC % |include = {Infobox Service Info}:sc_id:sla_id:comment |table=class = sortable border=2 cellpadding=2,-,service id,sla id,comment }}
It works fine, except when there is no page matching the categories and titlematch, when it throws the warning "%DPL-1.6.4-WARNING: No results!". So I tried to embed it in an ifexist construct like this:
{{#ifexist: {{#dpl: |category = Service |category = CU {{{cu_name}}} |titlematch = Infobox SC % }} | {{#dpl: |category = Service |category = CU {{{cu_name}}} |titlematch = Infobox SC % |include = {Infobox Service Info}:sc_id:sla_id:comment |table=class = sortable border=2 cellpadding=2,-,service id,sla id,comment }} }}
Unfortunately, this doesn't work. Even when the matching page exists, the table is not displayed. Is this a limitation of dpl, or am I overlooking something obvious?
Kind regards,
Herta
mediawiki-l@lists.wikimedia.org