Issue:Allow includereplace or ability to ignore included section headers

From FollowTheScore
Jump to: navigation, search
Description: Allow includereplace or ability to ignore included section headers
Extension / Version: DPL   /   1.7.0
Type / Status: Change Request   /   closed

Problem

Example: includereplace=/^=\+.*=\+//

The above would remove any section headers before the wikicode of each include is sent to the Parser.

or just an includesectionheaders=false to 'automagically' do that.


Reply

I don´t understand your problem. If you include a certain section (using #section headline) the headline will be omitted anyway. If you use include=* you could still apply a #replace statement to the output of DPL. If you use the StringFunctions version which is provided together with DPL the #replace understands regular expressions. Gero 22:26, 21 April 2008 (CEST)

Reply 2

That works well. Thanks! :) C.wrinn 17:04, 22 April 2008 (CEST)