Skip to content

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

@tjoneslo

Description

@tjoneslo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions