DPL:FAQ
Contents
My article name contains underscores, but in the DPL result they don´t appear.
Normally, DPL replaces all undercores in article names by spaces when showing the result. You can replace underscores by their symbolic html name via the 'replaceintitle' statement. So DPL will no longer recognize the underscores and later the html engine will translate the symbolic name to underscores.
This wiki contains an Article_with_underscore. Normally DPL would show it as . But with {{#dpl:titlematch=%underscore|replaceintitle=/ /,_}} you will getI try to generate a table output with DPL but it looks weird - to hell with the syntax!
Indeed, complex Queries can be somewhat tricky. But this is not only a problem of DPL. MediaWiki is quite sensitive to blanks and linefeeds and half of your problemss will probably come from there.
There is a simpe trick how you can DEBUG you DPL script:
Use a resultsheader and a resultsfooter to enclose all DPL output in pre/nowiki tags like this:
<dpl> resultsheader=«pre»«nowiki» resultsfooter=«/nowiki»«/pre» titlematch=A% format=,\n*[[%PAGE%|%TITLE%]] </dpl>
Please note the « ...» twin angle brackets you must use. With this little trick you will see the output of DPL which would normally be rendered by the wiki parser:
{{Extension DPL}} *[[A1|A1]] *[[Abc/def|Abc/def]] *[[A ECP-00055 test page|A ECP-00055 test page]] *[[Article with underscore|Article with underscore]] *[[Activity Page 1|Activity Page 1]] *[[Activity Page 2|Activity Page 2]] *[[A2|A2]] *[[Aa|Aa]] *[[Annotation URI|Annotation URI]] *[[An article which is only referenced by a DPL query|An article which is only referenced by a DPL query]] *[[AbC|AbC]] *[[Article connected by DPL category keyword|Article connected by DPL category keyword]] *[[Abc|Abc]] *[[Activity 1|Activity 1]] *[[Activity 2|Activity 2]] *[[Activity 3|Activity 3]] *[[A|A]] *[[Apache服务器架设的简单,由小P发布|Apache服务器架设的简单,由小P发布]] *[[Application DPL-tracker|Application DPL-tracker]] *[[Applying a template to all pages of a given category|Applying a template to all pages of a given category]] *[[Allowing true caching by DPL dev page|Allowing true caching by DPL dev page]] *[[Amethyst|Amethyst]] *[[Talk:Allowing true caching by DPL dev page|Allowing true caching by DPL dev page]] *[[User:AssaCom|AssaCom]] *[[User:Alf63/C1|Alf63/C1]] *[[User:Alf63/C2|Alf63/C2]] *[[User:Alf63/RP.dpl.default|Alf63/RP.dpl.default]] *[[User:Alf63/SeqSize|Alf63/SeqSize]] *[[User:Alf63/RP|Alf63/RP]] *[[User:Alf63/SeqGet|Alf63/SeqGet]] *[[User:Alf63/RP of|Alf63/RP of]] *[[User:Adomjan|Adomjan]] *[[User:Arcandio|Arcandio]] *[[User:Armin.Egner|Armin.Egner]] *[[User:Alf63/Seq test1|Alf63/Seq test1]] *[[User:Aaron Overton|Aaron Overton]] *[[User:Awodejko|Awodejko]] *[[User:Alf63|Alf63]] *[[User:AJim|AJim]] *[[User:Alf63/P1|Alf63/P1]] *[[User:Anonguy9|Anonguy9]] *[[User:Arturro|Arturro]] *[[User talk:Anonguy9|Anonguy9]] *[[User talk:Alf63/P1|Alf63/P1]] *[[:File:Arrow-closed.png|Arrow-closed.png]] *[[:File:Arrow-open.png|Arrow-open.png]] *[[:File:Asking a calendar kit 2.png|Asking a calendar kit 2.png]] *[[:File:Asking a calendar kit 1.png|Asking a calendar kit 1.png]] *[[Template:Amp|Amp]] *[[Template:Ask is a|Ask is a]] *[[Template:Abc/x123|Abc/x123]] *[[Template:Articles|Articles]] *[[Template:Alias Wgraph|Alias Wgraph]] *[[Template:African Country|African Country]] *[[Template:Audio|Audio]] *[[Template:ActivitySummary|ActivitySummary]] *[[Template:Activity Description|Activity Description]] *[[Template:About|About]] *[[:Category:AT&|AT&]] *[[:Category:Apachetest|Apachetest]] *[[:Category:AT&T|AT&T]] *[[:Category:African Union member states|African Union member states]] *[[:Category:Antwerpen|Antwerpen]] *[[:Category:Another Topic|Another Topic]] *[[:Allows value|Allows value]] *[[:Age|Age]] *[[:Annotation URI|Annotation URI]] *[[Wgraph:Architecture|Architecture]] *[[Wgraph:Ahnen|Ahnen]] *[[Issue:Add new option to exclude page sections|Add new option to exclude page sections]] *[[Issue:Allow vertical alignment of node labels|Allow vertical alignment of node labels]] *[[Issue:Assigning absolute position of 0-0|Assigning absolute position of 0-0]] *[[Issue:Ampersand fails in category names|Ampersand fails in category names]] *[[Issue:Allow includereplace or ability to ignore included section headers|Allow includereplace or ability to ignore included section headers]] *[[Issue:Addlasteditor crashes new article|Addlasteditor crashes new article]] *[[Issue:AddContribution missing prefix|AddContribution missing prefix]] *[[Issue:AddContribution missing prefix regression|AddContribution missing prefix regression]] *[[Issue:An Error of conbime using of StringFunctions extension and Simple Form|An Error of conbime using of StringFunctions extension and Simple Form]] *[[Issue:Adduser|Adduser]] *[[Issue:Add "minimum-number-of-revisions" like Criteria for page selection|Add "minimum-number-of-revisions" like Criteria for page selection]] *[[Issue:Article Titles/content added as sub bullets|Article Titles/content added as sub bullets]] *[[Issue:Asking a parser "replace " demo|Asking a parser "replace " demo]] *[[Issue:Article count is wrong|Article count is wrong]] *[[Issue:Add a template in the pages automatically by DPL|Add a template in the pages automatically by DPL]] *[[Issue:AiSee crash due to several near edges|AiSee crash due to several near edges]] *[[Issue:Allow multiple surrogate templates, add/change syntax|Allow multiple surrogate templates, add/change syntax]] *[[Issue:Articlecategory doesn't work in 1.6.8|Articlecategory doesn't work in 1.6.8]] *[[Issue:A problem in the conbination DPL 1.7.4 and MW1.3 using Chinense interface|A problem in the conbination DPL 1.7.4 and MW1.3 using Chinense interface]] *[[Issue:Arbitrary adding of empty paragraph|Arbitrary adding of empty paragraph]] *[[Issue:Asking a calendar kit|Asking a calendar kit]]