Issue:Includematch with multiple pattern

From FollowTheScore
Revision as of 01:19, 4 January 2010 by Tirsales (talk | contribs) (New page: {{Issue |Type = Change Request |Extension = DPL |Version = 1.8.9 |Description = Includematch should be able to run multiple patterns on the same include |Status = op...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description: Includematch should be able to run multiple patterns on the same include
Extension / Version: DPL   /   1.8.9
Type / Status: Change Request   /   open

Problem

I want to search a single include for multiple patterns, all of which have to match. (Example: A single template car having 5 parameters name,color,size,seats,format. Now I want to search for all cars having 4 seats and red color.

AFAIK it should be possible using something akin to

{{#dpl:
|category=Car
|include={Car}:name
|includematch=/color\s*=\s*Red/is,/seats\s*=\s*4/is
}}
 

But this does only filter with the first pattern - if this matches, the second pattern is ignored ..


Reply