Difference between revisions of "Yyy"

From FollowTheScore
Jump to: navigation, search
Line 6: Line 6:
 
<nowiki>{{#dpl:title=Random|include={Template Name}:Parameter}}</nowiki>
 
<nowiki>{{#dpl:title=Random|include={Template Name}:Parameter}}</nowiki>
  
 
Which until 1.12 outputted the contents of the field, even if it contained another (nested) template.
 
 
==== '''Article ''random'' contents''' ====
 
 
<pre>{{Template Name
 
Parameter = {{Another Template|Something}}
 
}}</pre>
 
 
=== Post 1.12 behaviour ===
 
 
<nowiki>{{#dpl:title=Random|include={Template Name}:Parameter}}</nowiki>
 
 
 
Now outputs:
 
 
 
<nowiki>{{Another Template|Something}}</nowiki> (Without parsing it)
 
  
 
== Reply ==
 
== Reply ==
 
This is surprising! As far as I understand the new MW parser version will never allow the kind of constructs you mention.
 
This is surprising! As far as I understand the new MW parser version will never allow the kind of constructs you mention.
 
http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_12_0RC1/phase3/RELEASE-NOTES contains a chapter on parser changes which  states that the parsing sequence has intentionally been changed and now no longer supports the construction of template code by other templates.
 
http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_12_0RC1/phase3/RELEASE-NOTES contains a chapter on parser changes which  states that the parsing sequence has intentionally been changed and now no longer supports the construction of template code by other templates.

Revision as of 23:02, 27 August 2008

Problem

Including nested templates no longer works with MW 1.12's new parser behaviour.

Pre 1.12 behaviour

{{#dpl:title=Random|include={Template Name}:Parameter}}


Reply

This is surprising! As far as I understand the new MW parser version will never allow the kind of constructs you mention. http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_12_0RC1/phase3/RELEASE-NOTES contains a chapter on parser changes which states that the parsing sequence has intentionally been changed and now no longer supports the construction of template code by other templates.