Difference between revisions of "Issue:Include-bug with nowiki- and pre-tags"
From FollowTheScore
(New page: {{Issue |Type = Bug |Extension = DPL |Version = 1.8.9 |Description = Wiki-syntax like <nowiki>{{template|...}}</nowiki> whithin <nowiki>- and <pre>-tags is inc...) |
|||
Line 32: | Line 32: | ||
Sorry for my lack of English, best regards, --[[User:WiMu|WiMu]] 22:26, 4 July 2010 (UTC) | Sorry for my lack of English, best regards, --[[User:WiMu|WiMu]] 22:26, 4 July 2010 (UTC) | ||
+ | |||
+ | p.s.: the same problem occurs with <includeonly>-tags --[[User:WiMu|WiMu]] 10:08, 5 July 2010 (UTC) | ||
== Reply == | == Reply == |
Latest revision as of 12:08, 5 July 2010
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
, notTemplate: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)