Universal-Omega / DynamicPageList3

GNU General Public License v3.0
18 stars 22 forks source link

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

Open tjoneslo opened 3 years ago

tjoneslo commented 3 years ago

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).

Universal-Omega commented 2 years ago

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.