Help:DPL Examples/Test distinct
Jump to navigation
Jump to search
distinct test:
- Help:DPL Examples/Test distinct (link to this page via {{PAGENAME}})
- Help:DPL Manual/Test distinct (link to this page)
- Help:DPL Manual/distinct test (various links to this page)
Backlinks (52)
- Help:DPL Manual/Category with count
- Help:DPL Manual/distinct test
- Help:DPL Manual/Type Test
- Help:DPL Manual/Issue
- Help:DPL Examples/Nigunda Test
- Help:DPL Examples/Test imagecontainer
- Help:DPL Manual/dplreplace
- Help:DPL Examples/Test escapelinks
- Help:DPL Examples/Test article structure
- Help:DPL Manual/dplvar
- Help:DPL Examples/Test section inclusion
- Help:DPL Manual/Issue:Include positional template parameter
- Help:DPL Manual/dplnum
- Help:DPL Examples/DPL Example 020
- Help:DPL Manual/dplchapter
- Help:DPL Manual/dplmatrix
- Help:DPL Examples/Test addcontribution
- Help:DPL Manual/Wgraph:Version History
- Help:DPL Manual/Issue:Html-comments in parameter names
- Help:Rollback
- Help:DPL Manual/dplmatrix/testmatrix
- Help:DPL Examples/Example 2
- Help:DPL Examples/Test createdby
- Help:DPL Manual
- Help:DPL Manual/Download
- Help:DPL Manual/Hit counters removed
- Help:DPL Examples/Test resultsheader
- Help:DPL Examples/DPL Example 013
- Help:Group rights
- Help:Making a navigational template
- Help:Contents
- Help:Cache
- Help:Editing
- Help:DPL Examples/Test includematch
- Help:Starting a new page
- Help:Contents/es
- Help:DPL Examples/Example 1
- Help:Signatures
- Help:DPL Manual/Compatibility
- Help:DPL Manual/Controlling output order
- Help:I18n & l10n for templates
- Help:DPL Examples/Test table
- Help:Displaying code text
- Help:Creating animated GIFs
- Help:DPL Manual/Catlist
- Help:DPL Manual/Source and Installation
- Help:DPL Manual/General Usage and Invocation Syntax
- Help:DPL Manual/Other parameters
- Help:DPL Manual/Controlling output volume
- Help:DPL Manual/Criteria for page selection
- Help:DPL Manual/Authors and History
- Help:DPL Manual/Controlling output format
Code
{{#dpl: |namespace=Help |linksto={{FULLPAGENAME}}{{!}}{{FULLPAGENAME}}s{{!}}{{FULLPAGENAME}}es{{!}}{{FULLPAGENAME}}ies{{!}}{{FULLPAGENAME}}ing{{!}}{{FULLPAGENAME}}ed{{#if:{{{2}}}|{{!}}{{{2}}}{{!}}{{{2}}}s|}}{{#if:{{{3|}}}|{{!}}{{{3}}}{{!}}{{{3}}}s|}} |resultsheader=<h2>Backlinks (%PAGES%)</h2> }}
Description
The reason why this query 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:
Backlinks (52)
- DPL Manual/Category with count referenced by %PAGESEL%
- DPL Manual/distinct test referenced by %PAGESEL%
- DPL Manual/Type Test referenced by %PAGESEL%
- DPL Manual/Issue referenced by %PAGESEL%
- DPL Examples/Nigunda Test referenced by %PAGESEL%
- DPL Examples/Test imagecontainer referenced by %PAGESEL%
- DPL Manual/dplreplace referenced by %PAGESEL%
- DPL Examples/Test escapelinks referenced by %PAGESEL%
- DPL Examples/Test article structure referenced by %PAGESEL%
- DPL Manual/dplvar referenced by %PAGESEL%
- DPL Examples/Test section inclusion referenced by %PAGESEL%
- DPL Manual/Issue:Include positional template parameter referenced by %PAGESEL%
- DPL Manual/dplnum referenced by %PAGESEL%
- DPL Examples/DPL Example 020 referenced by %PAGESEL%
- DPL Manual/dplchapter referenced by %PAGESEL%
- DPL Manual/dplmatrix referenced by %PAGESEL%
- DPL Examples/Test addcontribution referenced by %PAGESEL%
- DPL Manual/Wgraph:Version History referenced by %PAGESEL%
- DPL Manual/Issue:Html-comments in parameter names referenced by %PAGESEL%
- Rollback referenced by %PAGESEL%
- DPL Manual/dplmatrix/testmatrix referenced by %PAGESEL%
- DPL Examples/Example 2 referenced by %PAGESEL%
- DPL Examples/Test createdby referenced by %PAGESEL%
- DPL Manual referenced by %PAGESEL%
- DPL Manual/Download referenced by %PAGESEL%
- DPL Manual/Hit counters removed referenced by %PAGESEL%
- DPL Examples/Test resultsheader referenced by %PAGESEL%
- DPL Examples/DPL Example 013 referenced by %PAGESEL%
- Group rights referenced by %PAGESEL%
- Making a navigational template referenced by %PAGESEL%
- Contents referenced by %PAGESEL%
- Cache referenced by %PAGESEL%
- Editing referenced by %PAGESEL%
- DPL Examples/Test includematch referenced by %PAGESEL%
- Starting a new page referenced by %PAGESEL%
- Contents/es referenced by %PAGESEL%
- DPL Examples/Example 1 referenced by %PAGESEL%
- Signatures referenced by %PAGESEL%
- DPL Manual/Compatibility referenced by %PAGESEL%
- DPL Manual/Controlling output order referenced by %PAGESEL%
- I18n & l10n for templates referenced by %PAGESEL%
- DPL Examples/Test table referenced by %PAGESEL%
- Displaying code text referenced by %PAGESEL%
- Creating animated GIFs referenced by %PAGESEL%
- DPL Manual/Catlist referenced by %PAGESEL%
- DPL Manual/Source and Installation referenced by %PAGESEL%
- DPL Manual/General Usage and Invocation Syntax referenced by %PAGESEL%
- DPL Manual/Other parameters referenced by %PAGESEL%
- DPL Manual/Controlling output volume referenced by %PAGESEL%
- DPL Manual/Criteria for page selection referenced by %PAGESEL%
- DPL Manual/Authors and History referenced by %PAGESEL%
- DPL Manual/Controlling output format referenced by %PAGESEL%
Code
{{#dpl: |namespace=Help |linksto={{PAGENAME}}{{!}}{{PAGENAME}}s{{!}}{{PAGENAME}}es{{!}}{{PAGENAME}}ies{{!}}{{PAGENAME}}ing{{!}}{{PAGENAME}}ed{{#if:{{{2}}}|{{!}}{{{2}}}{{!}}{{{2}}}s|}}{{#if:{{{3|}}}|{{!}}{{{3}}}{{!}}{{{3}}}s|}} |resultsheader=<h2>Backlinks (%PAGES%)</h2> |format=,\n*[[%PAGE%{{!}}%TITLE%]] referenced by %PAGESEL%, }}
If we set distinct=strict we will only get one result. Note that the value of %PAGESEL% in this case will be not useful.
Backlinks (52)
- DPL Manual/Category with count referenced by %PAGESEL%
- DPL Manual/distinct test referenced by %PAGESEL%
- DPL Manual/Type Test referenced by %PAGESEL%
- DPL Manual/Issue referenced by %PAGESEL%
- DPL Examples/Nigunda Test referenced by %PAGESEL%
- DPL Examples/Test imagecontainer referenced by %PAGESEL%
- DPL Manual/dplreplace referenced by %PAGESEL%
- DPL Examples/Test escapelinks referenced by %PAGESEL%
- DPL Examples/Test article structure referenced by %PAGESEL%
- DPL Manual/dplvar referenced by %PAGESEL%
- DPL Examples/Test section inclusion referenced by %PAGESEL%
- DPL Manual/Issue:Include positional template parameter referenced by %PAGESEL%
- DPL Manual/dplnum referenced by %PAGESEL%
- DPL Examples/DPL Example 020 referenced by %PAGESEL%
- DPL Manual/dplchapter referenced by %PAGESEL%
- DPL Manual/dplmatrix referenced by %PAGESEL%
- DPL Examples/Test addcontribution referenced by %PAGESEL%
- DPL Manual/Wgraph:Version History referenced by %PAGESEL%
- DPL Manual/Issue:Html-comments in parameter names referenced by %PAGESEL%
- Rollback referenced by %PAGESEL%
- DPL Manual/dplmatrix/testmatrix referenced by %PAGESEL%
- DPL Examples/Example 2 referenced by %PAGESEL%
- DPL Examples/Test createdby referenced by %PAGESEL%
- DPL Manual referenced by %PAGESEL%
- DPL Manual/Download referenced by %PAGESEL%
- DPL Manual/Hit counters removed referenced by %PAGESEL%
- DPL Examples/Test resultsheader referenced by %PAGESEL%
- DPL Examples/DPL Example 013 referenced by %PAGESEL%
- Group rights referenced by %PAGESEL%
- Making a navigational template referenced by %PAGESEL%
- Contents referenced by %PAGESEL%
- Cache referenced by %PAGESEL%
- Editing referenced by %PAGESEL%
- DPL Examples/Test includematch referenced by %PAGESEL%
- Starting a new page referenced by %PAGESEL%
- Contents/es referenced by %PAGESEL%
- DPL Examples/Example 1 referenced by %PAGESEL%
- Signatures referenced by %PAGESEL%
- DPL Manual/Compatibility referenced by %PAGESEL%
- DPL Manual/Controlling output order referenced by %PAGESEL%
- I18n & l10n for templates referenced by %PAGESEL%
- DPL Examples/Test table referenced by %PAGESEL%
- Displaying code text referenced by %PAGESEL%
- Creating animated GIFs referenced by %PAGESEL%
- DPL Manual/Catlist referenced by %PAGESEL%
- DPL Manual/Source and Installation referenced by %PAGESEL%
- DPL Manual/General Usage and Invocation Syntax referenced by %PAGESEL%
- DPL Manual/Other parameters referenced by %PAGESEL%
- DPL Manual/Controlling output volume referenced by %PAGESEL%
- DPL Manual/Criteria for page selection referenced by %PAGESEL%
- DPL Manual/Authors and History referenced by %PAGESEL%
- DPL Manual/Controlling output format referenced by %PAGESEL%
Code
{{#dpl: |namespace=Help |linksto={{PAGENAME}}{{!}}{{PAGENAME}}s{{!}}{{PAGENAME}}es{{!}}{{PAGENAME}}ies{{!}}{{PAGENAME}}ing{{!}}{{PAGENAME}}ed{{#if:{{{2}}}|{{!}}{{{2}}}{{!}}{{{2}}}s|}}{{#if:{{{3|}}}|{{!}}{{{3}}}{{!}}{{{3}}}s|}} |resultsheader=<h2>Backlinks (%PAGES%)</h2> |format=,\n*[[%PAGE%{{!}}%TITLE%]] referenced by %PAGESEL%, |distinct=strict }}