Forum:Dpl include issue

Say I have a template implemented like this: How do I write a dpl code that returns all pages having "Pepper" as an ingredient, BUT NOT "Pepper mint", thus like in a 'whole word' search? I can't get the 'Includematch' to restrict to 'whole word' search and can't get the 'Includematchparsed' function to work at all.

Hints are welcome, as I'm not familiar with regex --Lirielle 06:40, 23 January 2009 (UTC)


 * DPL is supposed to be use on the categories of pages, not their content. I dont say it's not possible but that kind of DPL resquest seems a lot heavier on the server than the regulars one.
 * If you are using a template to format each of theses ingredients lists, maybe you could make the template add a category for every ingredient in it. After that you use Category and NotCategory in the DPL request. — TulipVorlax 12:21, 23 January 2009 (UTC)
 * I'm afraid you underestimate DPL ;). DPL can select pages based on different criteria: Categories, Links, Templates, Namespaces, etc.
 * In my case I could use :

allowcachedresults=true uses=Template:Recipe include={Recipe}:ingredients includematch=/ingredients\s*=\s*[^|]*Pepper/s
 * to find pages using the template as above where parameter 'ingredients' contain 'Pepper'. But if I'm looking for 'Pepper', I don't want it to find 'Pepper Mint', that is my problem.


 * Using includematchparsed=, whatever follows the equal sign, finds all pages using the template.--Lirielle 15:29, 23 January 2009 (UTC)


 * No, you didn't understand me; i know all of DPL (Manual). What i said is even though Wikia permit it's use, Wikia is also saying that we should try our best to limit the impact of DPL on the servers (because it can have impact on others Wikia wikis). So, like i said, DPL resquest that do a search on the content seems more difficult for the servers to handle thant requests on Categories. But this is, maybe, just my impression and could be false. Sorry. — TulipVorlax 08:10, 24 January 2009 (UTC)