Issue:Include-bug with nowiki- and pre-tags

From FollowTheScore
Jump to: navigation, search
Description: Wiki-syntax like {{template|...}} whithin <nowiki>- and <pre>-tags is included though there is no template call
Extension / Version: DPL   /   1.8.9
Type / Status: Bug   /   open

Problem

When using the | include = {template}-statement, the output contains templates, which are not used (expanded) on the original pages, if these templates are (not) called within <nowiki>- and <pre>-tags (and maybe other?). For example:

  • code on mypage:
<pre>
{{mytemplate|foo}}
</pre>
  • dpl:
{{dpl:
| mode    = userformat
| title   = mypage
| include = {mytemplate}
}}
  • the output will be something like foo, not Template:mytemplate.default as intended.

I think regular expressions are used to search for texts like {{mytemplate|foo}} (line 553 in DynamicPageListInclude.php?), but there are cases when {{mytemplate|foo}} is not a template-call. The pre- and nowiki-tags should be deleted like html-comments (line 516 in DynamicPageListInclude.php).

See also this example

Sorry for my lack of English, best regards, --WiMu 22:26, 4 July 2010 (UTC)

p.s.: the same problem occurs with <includeonly>-tags --WiMu 10:08, 5 July 2010 (UTC)

Reply