Difference between revisions of "Issue:Select based on template parameter value"
(→Problem) |
|||
Line 22: | Line 22: | ||
== Reply == | == Reply == | ||
+ | I think this is a very good idea. Maybe it is possible to add this parameter and then internally derive the correct regexp from the setting of this parameter. I will check this when I start work at the next release. Currently I am not very active in developing DPL because (a) I have a lot of other things to do and (b) I want to wait for MW 1.16 to be published as a stable release. | ||
+ | |||
+ | BTW: The value given at P=... could still be interpreted as a regexp. I don't think it MUST be an exact comparison ... | ||
+ | |||
+ | If you want to integrate that feature you could do it based on the current sources in svn. [[User:Gero|Gero]] 23:37, 19 April 2010 (UTC) |
Latest revision as of 00:37, 20 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
I think this is a very good idea. Maybe it is possible to add this parameter and then internally derive the correct regexp from the setting of this parameter. I will check this when I start work at the next release. Currently I am not very active in developing DPL because (a) I have a lot of other things to do and (b) I want to wait for MW 1.16 to be published as a stable release.
BTW: The value given at P=... could still be interpreted as a regexp. I don't think it MUST be an exact comparison ...
If you want to integrate that feature you could do it based on the current sources in svn. Gero 23:37, 19 April 2010 (UTC)