User:FrozenPlum/Sandbox/Issues: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (FrozenPlum moved page Sandbox/Issues to User:FrozenPlum/Sandbox/Issues without leaving a redirect)
imported>FrozenPlum
mNo edit summary
Line 5: Line 5:
The following causes an error (and page can't be saved):
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}}
{{note|[b337d46f656ee147c376d1de] 2022-04-03 02:31:36: Fatal exception of type "TypeError"|error}}

* {{DPL|imagecontainer}} states that the required settings is <code>|openreferences=true</code>.
* {{DPL|linksfrom}} states to use <code>|openreferences=yes</code>.
* {{DPL|openreferences}} states the syntax is <code>|openreferences=yes</code>.
* {{DPL|openreferences}} section '''also''' states that <code>|ordermethod=none</code> is required, though statements work without it.


<pre>
<pre>
{{#dpl:
{{#dpl:
|imagecontainer = Apple¦Orange
|imagecontainer = Apple
|count=2
|count=2
|ordermethod=none
|openreferences=yes
|openreferences=yes
|ordermethod=none
|noresultsheader=\n''Doesn't work''
}}
}}
</pre>
</pre>
'''Result:'''<br>
The example was adapted from one given, that doesn't work. The {{DPL|openreferences}} section states that <code>|ordermethod=none</code> must be set for to use <code>|openreferences=yes</code> except, you can see in a lower example, that this is not currently the case.
''Doesn't work''
<!--
<!--
{{#dpl:
{{#dpl:
|imagecontainer = Apple¦Orange
|imagecontainer = Apple
|count=2
|count=2
|ordermethod=none
|openreferences=yes
|openreferences=yes
|ordermethod=none
|noresultsheader=\n''Doesn't work''
}}
}}
-->
-->


'''It works with this example (ordermethod not specified = none):'''

'''It works with this example:'''
<pre>
<pre>
{{#dpl:
{{#dpl:
Line 36: Line 43:
|titlematch=Apple%
|titlematch=Apple%
|openreferences=yes
|openreferences=yes
}}

'''Correct error output if combined with incompatible param (ordermethod must be either unspecified or "none"):'''<br>
{{#dpl:
|titlematch=Apple%
|openreferences=yes
|ordermethod=category,pagetouched
}}
}}


Line 42: Line 56:
{{#dpl:
{{#dpl:
|imagecontainer = Apple
|imagecontainer = Apple
|openreferences=yes
|openreferences = true
}}
}}
</pre>
</pre>
Line 48: Line 62:
{{#dpl:
{{#dpl:
|imagecontainer = Apple
|imagecontainer = Apple
|openreferences=yes
|openreferences = true
}}
}}
-->
-->
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.
This is broken regardless if "true" or "yes", 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.


Also, there's now <code>|openreferences=missing</code> that needs to be added to docs (later).
Also, there's now <code>|openreferences=missing</code> that needs to be added to docs (later).

<!-- broken original example
{{#dpl:
|imagecontainer = Apple¦Orange
|escapelinks=false
|openreferences=true
}}
-->


==Issue 2==
==Issue 2==

Revision as of 00:37, 4 April 2022

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).

Issue 1

The following causes an error (and page can't be saved):

[b337d46f656ee147c376d1de] 2022-04-03 02:31:36: Fatal exception of type "TypeError"
  • imagecontainer states that the required settings is |openreferences=true.
  • linksfrom states to use |openreferences=yes.
  • openreferences states the syntax is |openreferences=yes.
  • openreferences section also states that |ordermethod=none is required, though statements work without it.
{{#dpl:
|imagecontainer = Apple
|count=2
|openreferences=yes
|ordermethod=none
|noresultsheader=\n''Doesn't work''
}}

Result:
Doesn't work

It works with this example (ordermethod not specified = none):

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

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

Correct error output if combined with incompatible param (ordermethod must be either unspecified or "none"):
{{#dpl: |titlematch=Apple% |openreferences=yes |ordermethod=category,pagetouched }}

Another test:

{{#dpl:
|imagecontainer = Apple
|openreferences = true
}}

This is broken regardless if "true" or "yes", so it seems to be an issue when imagecontainer and openreferences are set together, since the removal of openreferences works fine.

Also, there's now |openreferences=missing that needs to be added to docs (later).


Issue 2

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

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?): Result:
{{#dpl: |category=+Countries in Europe¦Countries in North America |category=*Part of NATO |headingmode=ordered |ordermethod=category,pagetouched |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)"

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

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

Issue 3