Issue:Allow includereplace or ability to ignore included section headers

From FollowTheScore
Revision as of 21:26, 21 April 2008 by Gero (talk | contribs)
Jump to: navigation, search
Description: Allow includereplace or ability to ignore included section headers
Extension / Version: DPL   /   1.7.0
Type / Status: Change Request   /   open

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)