Universal-Omega / DynamicPageList3

GNU General Public License v3.0
18 stars 22 forks source link

Example Code Produces Errors #266

Closed jamsoft closed 4 months ago

jamsoft commented 7 months ago

DynamicPageList3 version: 3.5.2 MediaWiki version: 1.41.0 PHP version: 7.4.33

I've installed the extension and left it at default settings for initial testing.

I popped the example code into my main page:

{{#dpl:
namespace=Extension
|addeditdate=true
|ordermethod=lastedit
|order=descending
|count=10
}}

Which just errored with the following message.

What happens?: Extension:DynamicPageList3 (DPL3), version 3.5.2: 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

If I simplify this to just:

{{#dpl:
category=people
}}

This works and shows a list of pages in the people category. But lists the [Template:Extension DPL] as missing.

Not entirely sure what to make of this as it seems the extension is installed and working but it's a bit odd that the example code provided produces errors.

CrystalClearGal commented 5 months ago

This is not a bug, your syntax is incorrect. namespace=Extension should be |namespace=Extension In parser function syntax {{#dpl:}} every parameter must be prefixed with a pipe. You have mixed syntax. I can confirm that the usual parser function syntax works just fine in this version.

As that line was the selection criteria, and DPL3 could not "see" it as valid, that's why you got the "no selection criteria" error. This ticket should probably be closed as invalid.