Test transclusion bug

From FollowTheScore
Jump to: navigation, search

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 .. 
  • Test transclusion bug data
    This file is part of a bug demonstration wehn including nested headings. See Test transclusion bug. ... This is some text before the first chapter heading. Next follows head1 which is the headline of the forst chapter.

    head1

    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

    head2

    This is chapter 2
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.