Difference between revisions of "Test distinct"

From FollowTheScore
Jump to: navigation, search
(request option)
(thanks)
Line 27: Line 27:
  
 
::OK, but it seems <tt>distinct</tt> is not fully implemented in its current state...and an option for a "<tt>truedistinct</tt>" (whatever) is necessary. -[[User:Eep²|Eep²]] 14:47, 8 September 2007 (CEST)
 
::OK, but it seems <tt>distinct</tt> is not fully implemented in its current state...and an option for a "<tt>truedistinct</tt>" (whatever) is necessary. -[[User:Eep²|Eep²]] 14:47, 8 September 2007 (CEST)
 +
 +
::Thanks for adding the <tt>strict</tt> option; when will the new version be available for download? -[[User:Eep²|Eep²]] 15:28, 8 September 2007 (CEST)

Revision as of 15:28, 8 September 2007

distinct test:

  • Test distinct (link to this page via {{PAGENAME}})
  • test distinct (link to this page)
  • distinct test (various links to this page)

This query should only show distinct test once:

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'Test distinct|Test distincts|Test distinctes|Test distincties|Test distincting|Test distincted|{{{2}}}|{{{2}}}s' for parameter 'linksto'.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.


Not really. The reason why it shows several entries for distinct test is that the uniqueness requirement refers to the combination of referring page and referred page. Note that a referring page might contain several references to the same page (which you wouldn´t want to see in the listing). DPL offers a variable named %PAGESEL% which shows the referring page. If we add that variable to the example we see why there are several occurencies of distinct test in the output:

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'Test distinct|Test distincts|Test distinctes|Test distincties|Test distincting|Test distincted|{{{2}}}|{{{2}}}s' for parameter 'linksto'.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.


Well, how do I get the results to only show the page once, no matter how many page variations it links to? -Eep² 14:37, 8 September 2007 (CEST)

Currently there is no way. It would require an extra option. Gero 14:40, 8 September 2007 (CEST)
OK, but it seems distinct is not fully implemented in its current state...and an option for a "truedistinct" (whatever) is necessary. -Eep² 14:47, 8 September 2007 (CEST)
Thanks for adding the strict option; when will the new version be available for download? -Eep² 15:28, 8 September 2007 (CEST)