Difference between revisions of "DPL:FAQ"

From FollowTheScore
Jump to: navigation, search
Line 30: Line 30:
 
   resultsfooter=</nowiki></pre>
 
   resultsfooter=</nowiki></pre>
 
   titlematch=A%
 
   titlematch=A%
   format=,\n*[[%PAGE%|%TITLE%]]
+
  include=%0[100]
 +
   format={|class=wikitable\n!article\n!beginning\n|-,\n[[%PAGE%|%TITLE%\n,\n,\n|}
 
</dpl>
 
</dpl>

Revision as of 13:55, 27 July 2007

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=/ /,&#95;}} you will get

I 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 your 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>

With this little trick you will see the output of DPL which would normally be rendered by the wiki parser:

 ..→

[[Applying a template to all pages of a given category|Applying a template to all pages of a given category

How can one apply a template to all pages of a certain category?

Sometimes you want to ..→

[[Allowing true caching by DPL dev page|Allowing true caching by DPL dev page News : We have a working system.


[[Amethyst|Amethyst

<table class="infobox " ..→

[[Talk:Allowing true caching by DPL dev page|Allowing true caching by DPL dev page

status update?

Am quite interested in this concept -- as we have a high-traffic wiki with ..→

[[User:AssaCom|AssaCom User:AssaCom

[[User:Alf63/C1|Alf63/C1 {{../RP|P1}}

[[User:Alf63/C2|Alf63/C2 {{../RP|P2}}

[[User:Alf63/RP.dpl.default|Alf63/RP.dpl.default

[[{{{%PAGE%}}}]]

[[User:Alf63/SeqSize|Alf63/SeqSize {{#explode:{{{1}}}|¤|100}}

[[User:Alf63/RP|Alf63/RP RP: [[{{{1}}}]]

[[User:Alf63/SeqGet|Alf63/SeqGet {{#explode:{{{1}}}|¤|{{{2}}}}}

[[User:Alf63/RP of|Alf63/RP of RP of [[{{{1}}}]]

[[User:Adomjan|Adomjan Akos Domjan <br\> mailto:a.domjan@gmx.at

[[User:Arcandio|Arcandio http://castleoubliette.com

http://www.arcandio.com

[[User:Armin.Egner|Armin.Egner I'm administrating a huge Wiki uses DPLs in an extensive manner. Studying your cache extension.

[[User:Alf63/Seq test1|Alf63/Seq test1

  • {{#explode:AA¤BB¤CC¤DD¤EE|¤|0}}
  • {{#explode:AA¤BB¤CC¤DD¤EE|¤|3}}
  • ..→

[[User:Aaron Overton|Aaron Overton Aaron Overton (overton@heatherstone.com) is a Senior Consultant ..→

[[User:Awodejko|Awodejko {{#tree:id=Tree2|openlevels=1|root=Test|

  • Root
    • Sub-item
    • Another sub-item

}}

..→

[[User:Alf63|Alf63 See also:


[[User:AJim|AJim I contribute to the english Wikipedia. I am impressed with the MediaWiki software. I have several ..→

[[User:Alf63/P1|Alf63/P1 {{../RP of|C1}}

[[User:Anonguy9|Anonguy9

Cut-and-paste documentation

SIMPLE instructions for everyday usage.

I use DPL for only one ..→

[[User:Arturro|Arturro Test TreeList View dla katalogu /etc/X11

Template:Thankyou

..→

[[User talk:Anonguy9|Anonguy9 Note: Edit this page to send me an email.

[[User talk:Alf63/P1|Alf63/P1 I noticed that you are experimenting with DPL. Let me know if you need help ... --Gero ..→

[[File:Arrow-closed.png|Arrow-closed.png Arrow-closed.png

[[File:Arrow-open.png|Arrow-open.png Arrow-open.png

[[File:Asking a calendar kit 2.png|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 For page Issue:Asking a calendar kit using

[[Template:Amp|Amp &

[[Template:Ask is a|Ask is a {{#vardefine:type|{{{1}}}}}

[[Template:Abc/x123|Abc/x123

This is template Abc/x123. It was called with value '{{{1}}}'.

[[Template:Articles|Articles

  1. Test5554
  2. ..→

    [[Template:Alias Wgraph|Alias Wgraph This command is an alias for [[Wgraph:Commands {{#sub:|0|1}}#|]].

    [[Template:African Country|African Country

    Name {{{name}}}
    Official Languages {{{languages}}}
    Goverment {{{goverment}}}
    Area {{{area}}}
    Population {{{population}}}
    GDP {{{gdp}}}
    Independence Days {{{independence_day}}}

    [[Template:Audio|Audio About this sound  ..→

    [[Template:ActivitySummary|ActivitySummary

    Activity Summary
    Release State:
    Phase: Sequence:
    (not defined)
    Practice: Type:
    Discipline:

    [[Template:Activity Description|Activity Description

    SUMMARY

    <span style="font-family: ..→

    [[Template:About|About

    <div id="template-documenta ..→

    [[Category:AT&|AT&[[Category:Apachetest|Apachetest Apachetest

    [[Category:AT&T|AT&T[[Category:African Union member states|African Union member states Member States of the African Union[[Category:Antwerpen|Antwerpen Business in Antwerpen[[Category:Another Topic|Another Topic

    This is a collection of discussions about FAQ.
    ... (another[[Allows value|Allows value Allows value

    [[Age|Age Age

    [[Annotation URI|Annotation URI see http://semantic-mediawiki.org/index.php?title=Type:Annotation_URI

    [[Wgraph:Architecture|Architecture

    Architecture

    Wgraph is based on a powerful graph layout and rendering product named ..→

    [[Wgraph:Ahnen|Ahnen This is one of the examples on the aiSee website. ..→

    [[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

    ..→
    

    |}</nowiki></pre>