Hello,

I am having trouble composing DPL page with "include" parameter.
It could be by misunderstanding of DPL capabilities, or my page structure in 
"NS_MAIN".

I have tried including by section name ["#Header"], by regex ["##Header.*"] and 
by section ["date_of_interest"].
None of these three methods work, with DPL like this:

<DPL>
 titlematch = %New York%
 include = date_of_interest
 mode = unordered
</DPL>


My pages are structured (for now) to have 2 "vardefine" variables that used a 
lot in a page, followed by common "header template" to provide 
consistent layout of data across pages, page-specific midsection and common 
"footer template" for consistent bottom layout.

If I mark with "section" (LabeledSectionTransclusion) a date in the midsection 
of the page (not inside another template), then DPL does find that mark "as 
advertised", and includes it into resulting table.

But if I mark with "section" a date inside my "header template" - DPL does not 
find that section. 
It is as if DPL does not execute my "header template" before trying to extract 
data from the page.

Is DPL not capable of finding marked sections that are produced by a template 
in the page it is processing (that seems unlikely)? 
(MW is full of multi-layered templates, they do not cause an issue.)


Am I doing something wrong (should the DPL extract section marks in this setup)?


To summarize, I can find pages by "category" or "titlematch" filter but I 
cannot (at all) extract parts of the pages via 2 mechanisms (header, regex).
Extracting marked sections - only works if sections are created within the page 
itself, not via additional templates used on the page.

Any ideas what is could be, and how to diagnose the issue?


This message is intended for specified recipient(s) only. If received by any 
other party, please discard immediately.

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to