Difference between revisions of "Issue:Include section always shows all articles in category"

From FollowTheScore
Jump to: navigation, search
(Created page with "{{Issue |Type = Bug |Extension = DPL |Version = 1.8.9 |Description = The output of the include statement isn't restricted to articles which actually contain the ...")
 
(Problem)
Line 27: Line 27:
  
 
--[[User:Nakohdo|nakohdo]]
 
--[[User:Nakohdo|nakohdo]]
 +
 +
== Reply ==
 +
 +
The manual may be not very precise, but it lists the "include" statement under the group "output vulume control". This implies that it does NOT and MUST NOT affect the selection process. Specifying a limit restricts the output of chaoter CONTENT but doies not suppress mentioning the article's name.
 +
 +
If you only want to see articles where the "topic" chapter is present you must add a suitable includematch condition. You are totally free to design the regexp of "includematch" according to your needs. It will be matched against the whole wiki text of he article.
 +
 +
[[User:Gero|Gero]] 19:50, 16 February 2011 (CET)
  
 
== Reply ==
 
== Reply ==

Revision as of 20:50, 16 February 2011

Description: The output of the include statement isn't restricted to articles which actually contain the required section (chapter).
Extension / Version: DPL   /   1.8.9
Type / Status: Bug   /   open

Problem

I want to create an overview page for a recurring topic by pulling all relevant content from the minutes of meetings like so:

 <dpl>
  category = meeting
  include  = #topic
 </dpl>
 

That does the trick but also lists all the meetings where the topic wasn't on the agenda. Trying to restrict the output by using a filter also doesn't work.

Expected behavior

Using "1" as a limit will only show the link (if the corresponding chapter in the article is not empty), "0" will not show anything, not even the link.
DPL:Manual - DPL parameters: Controlling output volume#include

I've already reported this issue in the forum: DPL: Restrict output when using "include" for sections

--nakohdo

Reply

The manual may be not very precise, but it lists the "include" statement under the group "output vulume control". This implies that it does NOT and MUST NOT affect the selection process. Specifying a limit restricts the output of chaoter CONTENT but doies not suppress mentioning the article's name.

If you only want to see articles where the "topic" chapter is present you must add a suitable includematch condition. You are totally free to design the regexp of "includematch" according to your needs. It will be matched against the whole wiki text of he article.

Gero 19:50, 16 February 2011 (CET)

Reply