Difference between revisions of "Test transclusion bug"
From FollowTheScore
(New page: 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...) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
− | + | First we include the whole content from [[Test transclusion bug data]] .. | |
{{#dpl: | {{#dpl: | ||
|titlematch = Test transclusion bug data | |titlematch = Test transclusion bug data | ||
Line 8: | Line 8: | ||
}} | }} | ||
− | + | Now we include Heading head2 from that page | |
{{#dpl: | {{#dpl: | ||
Line 14: | Line 14: | ||
|include=#head2 | |include=#head2 | ||
}} | }} | ||
+ | |||
+ | Now we include Heading head1.1 from that page | ||
+ | |||
+ | {{#dpl: | ||
+ | |titlematch = Test transclusion bug data | ||
+ | |include=#head1.1 | ||
+ | }} | ||
+ | |||
+ | 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" !! | ||
+ | |||
+ | {{#dpl: | ||
+ | |titlematch = Test transclusion bug data | ||
+ | |include=#head1 | ||
+ | }} | ||
+ | |||
+ | 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. |
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 ..
- 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
- Test transclusion bug data This is chapter 2
Now we include Heading head1.1 from that page
- Test transclusion bug data This is chapter 1.1
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.