Other parameters: Difference between revisions

Content added Content deleted
(Fixed and aligned some <pre> and <code>)
m (clean up, typos fixed: won´t → won't, fuction → function)
Line 135: Line 135:
Default is 'pages', which means that DPL produces a list of pages. And this is exactly what the name DPL promises.
Default is 'pages', which means that DPL produces a list of pages. And this is exactly what the name DPL promises.


If you set the goal parameter to 'categories' the list of pages will still be produced but you won´t see it. Instead it will be used to '''calculate a unique ordered list of all categories these pages belong to'''.
If you set the goal parameter to 'categories' the list of pages will still be produced but you won't see it. Instead it will be used to '''calculate a unique ordered list of all categories these pages belong to'''.


This allows you to ask a question like: Given all pages that are member of category X with a title matching "y%" and which use template "Z": to which categories do these pages belong?
This allows you to ask a question like: Given all pages that are member of category X with a title matching "y%" and which use template "Z": to which categories do these pages belong?
Line 206: Line 206:
If you want to avoid the above described effect of <code>reset</code> on your 'own' links you can use {{dpl3|eliminate}}. But you should know that ''eliminate'' is rather expensive in terms of computer power as it does a second parse for all included contents.
If you want to avoid the above described effect of <code>reset</code> on your 'own' links you can use {{dpl3|eliminate}}. But you should know that ''eliminate'' is rather expensive in terms of computer power as it does a second parse for all included contents.


<u>In parser fuction mode ('''<nowiki>{{#DPL:....}}</nowiki>'''):</u>
<u>In parser function mode ('''<nowiki>{{#DPL:....}}</nowiki>'''):</u>


;reset=categories: will ignore all categories
;reset=categories: will ignore all categories