DynamicPageList3 icon indicating copy to clipboard operation
DynamicPageList3 copied to clipboard

Ability to filter multiple uses of a template on a page.

Open tjoneslo opened this issue 4 years ago • 1 comments

I have a DPL query of the form:

{{#dpl: 
 category= My used category
 |include=  {My template}.dpl
 |ordermethod = title
 |order= ascending
 |table   = class=wikitable sortable,Article, Name, Description
}}

What happens is articles may use My template more than once on a page with different parameters.

{{My template|name=foo | description = Fred}}
{{My template|name=bar | description = Mary}}

This produces a table with both uses of My template in the article.

What I'd like is to have a filter to only return the templates with name=foo (and the other parameters).

tjoneslo avatar Jun 27 '21 14:06 tjoneslo

I looked into this for a couple of hours, a couple weeks ago, and am unable to find any feasible solution to it. Nonetheless, I might still try to keep working on something. I'm just not sure I'll actually be able to achieve this. If I'm unable to, I'll likely close this, but I'll try to do it.

Universal-Omega avatar Feb 21 '22 06:02 Universal-Omega