Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjoneslo opened this issue Jun 27, 2021 · 1 comment
Open

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

tjoneslo opened this issue Jun 27, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@tjoneslo
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants