Difference between revisions of "Test transclusion bug 2"

From FollowTheScore
Jump to: navigation, search
(New page: __NOEDITSECTION__{{:Test transclusion bug}})
 
(No difference)

Latest revision as of 20:30, 16 February 2009

This page tests the transclusion of nested headings. Unless you make a small patch to the source of MW you will get an error when calling this page.


First we include the whole content from Test transclusion bug data .. 
Now we include Heading head2 from that page
Now we include Heading head1.1 from that page 
Now we include Heading head1 from that page.
This is the crucial test: We want to see chapters 1.1. and 1.2 and nothing else.
And of course we do not want to get a MW exception ...
Note, however, that we will get two mis-leading "edit section links" !!
  • Test transclusion bug data here is some content of chapter 1. This chapter contains a sub-chapter on level two, named head1.1.

    head1.1

    This is chapter 1.1

    head1.2

    This is chapter 1.2

Now look at  Test transclusion bug 2 ..
It includes the current page but puts the NOEDISTSECTION pragma at the beginning.
The mis-leading links are now gone.