I think you must escape the #dpl code section...
G.
Message: 9 Date: Tue, 19 Feb 2008 11:21:06 +0100 From: "Herta Van den Eynde" herta.vandeneynde@gmail.com Subject: [Mediawiki-l] dpl in ifexist construct? To: mediawiki-l@lists.wikimedia.org Message-ID: fff5b0760802190221s49e87299w9a8d90616e94ba46@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
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
--
Giuseppe Briotti g.briotti@mclink.it
"Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio)
mediawiki-l@lists.wikimedia.org