[Mediawiki-l] DPL: Restrict output when using "inlcude" for sections

nakohdo Frank.Ralf at gmx.net
Mon Feb 14 14:59:31 UTC 2011



nakohdo wrote:
> 
> Thanks for the hint. I have actually tried something like this:
> 
> <dpl>
> category       = meeting
> include         = #topic
> includematch = /topic/
> </dpl> 
> 
> But this turns out to be too restrictive as it only includes sections
> where "topic" is part of the section itself. It fails where "topic" is
> only the heading of the section. 
> 

The behavior in the OP seems to be the intended one:

"Note: If an article does not contain a section named "fruit", it will
result in an empty cell in the table." 
http://semeb.com/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_format#Example

So perhaps one should try using 
http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions Parser
Functions ?

-- 
View this message in context: http://old.nabble.com/DPL%3A-Restrict-output-when-using-%22inlcude%22-for-sections-tp30921528p30922469.html
Sent from the WikiMedia General mailing list archive at Nabble.com.




More information about the MediaWiki-l mailing list