User:FrozenPlum/Sandbox/Issues: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Add more information about issues I'm tracking for later reporting (I still need to test some other scenarios))
imported>FrozenPlum
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a space for me to track issues as I work through the examples to determine if what's stated to work as stated in the docs works as expected (or if they need adjustment).
This is a space for me to track issues as I work through the examples.


==Issue 1==
==Issue 1==

The following causes an error (and page can't be saved):
{{note|[b337d46f656ee147c376d1de] 2022-04-03 02:31:36: Fatal exception of type "TypeError"|error}}

<pre>
{{#dpl:
|imagecontainer = Apple¦Orange
|count=2
|openreferences=true
}}
</pre>
<!-- for testing/reproducing
{{#dpl:
|imagecontainer = Apple¦Orange
|count=2
|openreferences=yes
}}
-->

Note: Tried with both "yes" and "true" since both examples were observed in different places in the old docs... neither worked, both resulted in fatal error.

'''Yet it works with this example:'''
<pre>
{{#dpl:
|titlematch=Apple%
|openreferences=yes
}}
</pre>

{{#dpl:
|titlematch=Apple%
|openreferences=yes
}}

'''Another test:'''
<pre>
{{#dpl:
|imagecontainer = Apple
|openreferences=yes
}}
</pre>
<!-- this is broken
{{#dpl:
|imagecontainer = Apple
|openreferences=yes
}}
-->
This is broken, so it seems to be an issue when <code>{{DPL|imagecontainer}}</code> and <code>{{DPL|openreferences}}</code> are set together, since the removal of <code>{{DPL|openreferences}}</code> works fine.

==Issue 2==
<pre>
<pre>
{{#dpl:
{{#dpl:
|category=+Countries in Europe¦Countries in North America
|category=+Countries in Europe¦Countries in North America
|category=*Part of NATO
|headingmode=ordered
|headingmode=ordered
|ordermethod=category,pagetouched
|ordermethod=category,firstedit
|noresultsheader=<br>''no result returned''
|noresultsheader=<br>''no result returned''
}}
}}
</pre>
</pre>


The docs state, that adding before the category "a '+' means that only the categories listed in that statement are allowed to appear as headings in the output," yet when this is done there are no category headings in the result ('''are these inverted or am I misunderstanding their docs?'''):
The {{DPL|category}} section states, that "a '+' (before the category) means that only the categories listed in that statement are allowed to appear as headings in the output," yet when this is done there are no category headings in the result ('''are these inverted or am I misunderstanding their docs? Also, no results appear.'''):

'''Result:'''<br>
'''Result:'''<br>

{{#dpl:
{{#dpl:
|category=+Countries in Europe¦Countries in North America
|category=+Countries in Europe¦Countries in North America
|category=*Part of NATO
|headingmode=ordered
|headingmode=ordered
|ordermethod=category,pagetouched
|ordermethod=category,firstedit
|noresultsheader=<br>''no result returned''
|noresultsheader=<br>''no result returned''
}}
}}




Where if a <code>-</code> dash is used instead, headings appear in the result, yet the documents state: "a '-' means that the categories listed in that statement are '''NOT allowed to appear as headings in the output''' (but all others)"
Where if a <code>-</code> dash is used instead, headings appear in the result, yet the documents state: "a '-' means that the categories listed in that statement are '''NOT allowed to appear as headings in the output''' (but all others)." Plus, categories are appearing as headings in the output that aren't included in the OR statement.

<pre>
<pre>
{{#dpl:
{{#dpl:
|category=-Countries in Europe¦Countries in North America
|category=-Countries in Europe¦Countries in North America
|category=*Part of NATO
|headingmode=ordered
|headingmode=ordered
|ordermethod=category,pagetouched
|ordermethod=category,firstedit
|noresultsheader=<br>''no result returned''
|noresultsheader=<br>''no result returned''
}}
}}
</pre>
</pre>

'''Result:'''<br>
'''Result:'''<br>

{{#dpl:
{{#dpl:
|category=-Countries in Europe¦Countries in North America
|category=-Countries in Europe¦Countries in North America
|category=*Part of NATO
|headingmode=ordered
|headingmode=ordered
|ordermethod=category,pagetouched
|ordermethod=category,firstedit
|noresultsheader=<br>''no result returned''
|noresultsheader=<br>''no result returned''
}}
}}

==Issue 3==

Latest revision as of 05:30, 9 April 2022

This is a space for me to track issues as I work through the examples.

Issue 1

{{#dpl:
|category=+Countries in Europe¦Countries in North America
|headingmode=ordered
|ordermethod=category,firstedit
|noresultsheader=<br>''no result returned''
}}

The category section states, that "a '+' (before the category) means that only the categories listed in that statement are allowed to appear as headings in the output," yet when this is done there are no category headings in the result (are these inverted or am I misunderstanding their docs? Also, no results appear.):

Result:

{{#dpl: |category=+Countries in Europe¦Countries in North America |headingmode=ordered |ordermethod=category,firstedit |noresultsheader=
no result returned }}


Where if a - dash is used instead, headings appear in the result, yet the documents state: "a '-' means that the categories listed in that statement are NOT allowed to appear as headings in the output (but all others)." Plus, categories are appearing as headings in the output that aren't included in the OR statement.

{{#dpl:
|category=-Countries in Europe¦Countries in North America
|headingmode=ordered
|ordermethod=category,firstedit
|noresultsheader=<br>''no result returned''
}}

Result:

{{#dpl: |category=-Countries in Europe¦Countries in North America |headingmode=ordered |ordermethod=category,firstedit |noresultsheader=
no result returned }}