Difference between revisions of "Issue:Select based on template parameter value"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Change Request |Extension = DPL |Version = 1.8.9 |Description = Select articles based on the value of a template parameter |Status = open }} == Prob...)
 
(Problem)
Line 17: Line 17:
 
</pre>
 
</pre>
  
would mean, "select all articles that transclude Template:MyTemplate, passing the value "6" to the template parameter '''P'''.
+
would mean, "select all articles that transclude Template:MyTemplate and pass the value 6 to the template parameter '''P'''."
  
 
I realize you can hack this kind of solution using includepage and regular expressions, but it is very painful and hard to get right.
 
I realize you can hack this kind of solution using includepage and regular expressions, but it is very painful and hard to get right.
  
 
== Reply ==
 
== Reply ==

Revision as of 15:50, 19 April 2010

Description: Select articles based on the value of a template parameter
Extension / Version: DPL   /   1.8.9
Type / Status: Change Request   /   open

Problem

After using DPL for years, the biggest feature that is missing (in my opinion) is an easy way to select articles based on the value of a template parameter. For example:

<dpl>
uses = Template:MyTemplate
templateparameter = MyTemplate,P=6
<dpl>

would mean, "select all articles that transclude Template:MyTemplate and pass the value 6 to the template parameter P."

I realize you can hack this kind of solution using includepage and regular expressions, but it is very painful and hard to get right.

Reply