Template talk:Extension DPL: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
No edit summary
 
(15 intermediate revisions by one other user not shown)
Line 3: Line 3:


=== Uses Traces Through {{tl|Disambig}}? ===
=== Uses Traces Through {{tl|Disambig}}? ===
The "uses" clause, which should return a list of pages that use a template seems to trace through {{tl|Disambig}} pages and also include those pages. For example, this DPL should return pages with titles prefixed with "Ice" and using {{tl|Problems/WidescreenGCNAuto}}, a template only used on GameCube titles...
The "uses" clause, which should return a list of pages that use a template seems to trace through {{tl|Disambig}} pages and also include those pages. For example, this DPL should return pages with titles prefixed with "Ice" and using {{tl|Problems/GC Widescreen Auto}}, a template only used on GameCube titles...


  <nowiki><dpl>
  <nowiki><dpl>
   uses=Template:Problems/WidescreenGCNAuto
   uses=Template:Problems/GC Widescreen Auto
   titlematch=Ice%
   titlematch=Ice%
</dpl></nowiki>
</dpl></nowiki>


<dpl>
<dpl>
   uses=Template:Problems/WidescreenGCNAuto
   uses=Template:Problems/GC Widescreen Auto
   titlematch=Ice%
   titlematch=Ice%
</dpl>
</dpl>
Line 21: Line 21:


  <nowiki><dpl>
  <nowiki><dpl>
   uses=Template:Problems/WidescreenGCNAuto
   uses=Template:Problems/GC Widescreen Auto
   ordermethod=title
   ordermethod=title
   titlematch=Ice%
   titlematch=Ice%
Line 27: Line 27:
<!--
<!--
<dpl>
<dpl>
   uses=Template:Problems/WidescreenGCNAuto
   uses=Template:Problems/GC Widescreen Auto
   ordermethod=title
   ordermethod=title
   titlematch=Ice%
   titlematch=Ice%
Line 33: Line 33:
-->
-->


=== Empty Results ===
Use ordermethod=titlewithoutnamespace as a workaround.
DPL queries that return no pages result in a "API error: internal_api_error_DBQueryError" error breaking all page output. This ones irksome, as it prevents using DPL to pull in lists of GameIDs.
 
<nowiki><dpl>
  uses=Template:NonexistentTemplate
</dpl></nowiki>
 
<!--
<dpl>
  uses=Template:NonexistentTemplate
</dpl>
-->


=== Regex Filters ===
=== Regex Filters ===
Line 54: Line 43:
titleregexp=Moero.*$
titleregexp=Moero.*$
</dpl>-->
</dpl>-->
=== Missing Results ===
This fails to pull in both redirects to [[Batman Vengeance]] (i.e. [[GBVE41]] and [[GBVP41]]). Seems related to titles including a space in them, problematic for the checks in {{tl|Navigation}} docmentation.
<nowiki>{{#dpl:
|linksto=Batman Vengeance
|redirects=only
}}
{{#dpl:
|linksto=Batman_Vengeance
|redirects=only
}}
</nowiki>
{{#dpl:
|linksto=Batman Vengeance
|redirects=only
}}
{{#dpl:
|linksto=Batman_Vengeance
|redirects=only
}}
Problem found, see here [[Template talk:Infobox VG#Is this still a thing?]] [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 20:16, 16 January 2018 (CET)
=== Category Limits ===
Category filters are limited to using 8 clauses, so nine in the example below will not be searched for.
<nowiki>{{#dpl:
|category=1|2|3|4|5|6|7|8|9
|redirects=only
}}</nowiki>

Latest revision as of 21:16, 16 January 2018

Oddities

There seem to be some odd results occurring, adding a note here to hopefully work out what's going on or work out a clearer solution.

Uses Traces Through {{Disambig}}?

The "uses" clause, which should return a list of pages that use a template seems to trace through {{Disambig}} pages and also include those pages. For example, this DPL should return pages with titles prefixed with "Ice" and using {{Problems/GC Widescreen Auto}}, a template only used on GameCube titles...

<dpl>
  uses=Template:Problems/GC Widescreen Auto
  titlematch=Ice%
</dpl>

...Only the GameCube title page actually uses the queried template. Kolano (talk) 18:40, 28 November 2015 (CET)

Title Sorting Broken

Using ordermethod=title fails with a "API error: internal_api_error_DBQueryError" error breaking all page output.

<dpl>
  uses=Template:Problems/GC Widescreen Auto
  ordermethod=title
  titlematch=Ice%
</dpl>

Use ordermethod=titlewithoutnamespace as a workaround.

Regex Filters

Filters using regex seem to be broken, generating a "API error: internal_api_error_DBQueryError" error breaking all page output.

<dpl>
 titleregexp=Moero.*$
</dpl>

Missing Results

This fails to pull in both redirects to Batman Vengeance (i.e. GBVE41 and GBVP41). Seems related to titles including a space in them, problematic for the checks in {{Navigation}} docmentation.

{{#dpl:
|linksto=Batman Vengeance
|redirects=only
}}

{{#dpl:
|linksto=Batman_Vengeance
|redirects=only
}}

Problem found, see here Template talk:Infobox VG#Is this still a thing? Lucario (talk) 20:16, 16 January 2018 (CET)

Category Limits

Category filters are limited to using 8 clauses, so nine in the example below will not be searched for.

{{#dpl:
|category=1|2|3|4|5|6|7|8|9
|redirects=only
}}