Difference between revisions of "DPL talk:Manual - DPL parameters: Criteria for page selection"
(→How can I simply list all subpages of current page?: + answer. And a suggestion to add this as an example on the main DPL page) |
(→How can I simply list all subpages of current page?) |
||
Line 104: | Line 104: | ||
:Add a linefeed after the header and everything works fine, see [[Test Amp]]. Indeed I was talking about a slash after the PAGENAME ..--[[User:Gero|Gero]] 13:35, 26 January 2010 (UTC) | :Add a linefeed after the header and everything works fine, see [[Test Amp]]. Indeed I was talking about a slash after the PAGENAME ..--[[User:Gero|Gero]] 13:35, 26 January 2010 (UTC) | ||
− | Gero, thanks, okay. I suggest you document this fully featured example under a new section "How to neatly list subpages in columns" on the DPL main page (which does not mention the keyword subpage/s except for the keyword ''includesubpages'' but in a different context). The addition of a linefeed <code>\n</code> or <code><nowiki>&nbsp;</nowiki></code> to make the example working with the column option are (dirty?) tricks, I mean, the use is not very intuitive (how should an average user learn to know this?) and should therefore be please expressly commented. By the way, I was pointed to DPL by reading the book "Mediawiki". --[[User:Syryos|Syryos]] | + | Gero, thanks, okay. I suggest you document this fully featured example under a new section "How to neatly list subpages in columns" on the DPL main page (which does not mention the keyword subpage/s except for the keyword ''includesubpages'' but in a different context). The addition of a linefeed <code>\n</code> or <code><nowiki>&nbsp;</nowiki></code> to make the example working with the column option are (dirty?) tricks, I mean, the use is not very intuitive (how should an average user learn to know this?) and should therefore be please expressly commented. By the way, I was pointed to DPL by reading the book "Mediawiki". |
+ | |||
+ | How can the result list be output in case-insensitive sorted order. i.e. Main/apage then Main/Apage then Main/Bpage ? Currently I found the lowercase subpages (here: Main/apage) listed ''after'' the Main/Zpage. Is there a way to achieve this ? --[[User:Syryos|Syryos]] 15:04, 26 January 2010 (UTC) |
Revision as of 17:04, 26 January 2010
I'm using the DPL parameter "firstrevisionsince=dateandoptionaltime" , to display articles after 20080430. One results is as follows: 23:57, 2 May 2008 : Insurance Programs . . JSmith --- I would like for the end result to be: Insurance Programs --Displaying only the article and removing the timestamp and the editor's name. How can I turn the timestamp/editor results off?
Contents
Reply
Use format. Thus you can customize your output completely. Gero 23:48, 12 May 2008 (CEST)
Compound expression for includematch
I am using two simple dpl statements that include the includematch statements:
includematch=/disclosure_type\s*=\s*[^|]*Proprietary Information/
and
includematch=/type\s*=\s*[^|]*Proprietary Information/
both of these work when used in simple statements but i'd like to combine then into one dpl query rather than 2.
i tried includematch=/disclosure_type\s*=\s*[^|]*Proprietary Information/,/type\s*=\s*[^|]*Proprietary Information/
and all of the items from the first query appear but none of the ones from the second. Can someone tell me what i am doing wrong, please.
Suggestion
You could try to use /(disclosure_)?type\s*=\s*[^|]*Proprietary Information/ but I am not sure what will happen. I am afraid DPL might only pick the first parameter (whichever it is). -- Gero 15:30, 30 June 2008 (CEST)
createdby/modifiedby
if username contains an underscore no results are returned
Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.
- --Ulli 757 23:04, 9 November 2008 (UTC)
notlastmodifiedby User 1 OR User 2
You can't combine 2 usernames in notlastmodifiedby?
{{#dpl: |ordermethod=lastedit |order=descending |notlastmodifiedby=Gero |notlastmodifiedby=Subfader |adduser=true |addeditdate=true |count=15 |format=<ul>,\n<li>%USER% - %DATE% - [[%PAGE%|%TITLE%]]</li>\n,,</ul> }}
- Gero - 2017-07-02 23:09:42 - Main Page
- Maiden taiwan - 2015-06-11 20:17:55 - Manual - Source and Installation
- Bernd - 2015-03-24 22:54:25 - Websites using DPL
- Gero - 2015-02-25 12:17:14 - Sample Genealogy
- Capmo - 2015-02-11 23:40:41 - Manual - DPL parameters: Criteria for page selection
- Moviesign - 2014-11-26 17:51:31 - Execandexit not setting dplvars
- Ftiercel - 2014-09-04 06:50:00 - Modifiedby and createdby produce inefficient SQL
- Ianb1469 - 2014-08-11 12:35:38 - Manual - DPL parameters: Controlling output format
- Theaitetos - 2014-05-23 22:36:20 - Manual
- Theaitetos - 2014-03-08 17:27:37 - Moviesign
- Theaitetos - 2014-03-08 17:24:03 - Moviesign/Hammer 1
- Moviesign - 2014-03-08 16:53:18 - Moviesign/Calendar
- Moviesign - 2014-03-08 16:50:19 - Moviesign/Hammer 2
- Theaitetos - 2014-03-06 23:44:36 - Differences in the way noinclude tags are handled by DPL
--Subfader 19:34, 29 April 2009 (UTC)
Simple template inclusion
Page "Test" uses Template:Test
{{Test.dpl|p1=aaa|p2=bbb}} {{Test|p1=aaa|p2=bbb}}
Template:Test includes
{{#dpl:|title={{PAGENAME}}|include={Test}.dpl }}
Template:Test.dpl includes
{{{p1}}}--{{{p2}}}
Page Test renders as
aaa--bbb %DPL-1.5.1-WARNING: No results!
This with Mediawiki 1.10.1. I tried using dpl version 1.9.0 but existing pages using dpl fail with this error (filed as an issue 23 Dec 09):
[23-Dec-2009 18:18:37] PHP Catchable fatal error: Object of class Title could not be converted to string in /.../mediawiki-1.10.1/includes/Revision.php on line 322
Should this work with 1.5.1? Perhaps I am misunderstanding how this is supposed to work? According to the revision history, 1.5.3 has a related bugfix, but AFAICT that shouldn't stop this from working.
How can I simply list all subpages of current page?
I want to list all subpages of a current page in my wiki which has the DPL extension installed. I.e. I want to list all subpages of {{FULLPAGENAME}}. What is then the correct syntax when using DPL ? --Syryos 23:21, 25 January 2010 (UTC)
- Use this code, see also example Test Amp; you may want to add a slash so that similar pages are not matched --Gero 09:47, 26 January 2010 (UTC)
{{#dpl: | namespace = {{NAMESPACE}} | titlematch={{PAGENAME}}% | noresultsheader = | resultsheader = This page has the following subpages:<br/> }}
Thanks. Regarding what you said "...to add a slash...": what do you mean exactly, do you mean {{PAGENAME}}/
% ?
And, adding the column attribute may break this function when also using the header attributes, see quick analysis on example and further revisions. --Syryos 12:42, 26 January 2010 (UTC)
- Add a linefeed after the header and everything works fine, see Test Amp. Indeed I was talking about a slash after the PAGENAME ..--Gero 13:35, 26 January 2010 (UTC)
Gero, thanks, okay. I suggest you document this fully featured example under a new section "How to neatly list subpages in columns" on the DPL main page (which does not mention the keyword subpage/s except for the keyword includesubpages but in a different context). The addition of a linefeed \n
or
to make the example working with the column option are (dirty?) tricks, I mean, the use is not very intuitive (how should an average user learn to know this?) and should therefore be please expressly commented. By the way, I was pointed to DPL by reading the book "Mediawiki".
How can the result list be output in case-insensitive sorted order. i.e. Main/apage then Main/Apage then Main/Bpage ? Currently I found the lowercase subpages (here: Main/apage) listed after the Main/Zpage. Is there a way to achieve this ? --Syryos 15:04, 26 January 2010 (UTC)