IncludeFromOther

This page tests including a subparagraph from another page, and include from multiple pages

Also see include from self.

The markup belows attempts to include a snippet out of another page. It works as it should.

(:include Test.IncludeFromSelf#anchor lines=1..2:)

This is a small paragraph with an anchor that has the name 'anchor' in page IncludeFromSelf.


Test that content from both pages is included

(:include IncludeFromSelf IncludeFromSelfPage :)

Also see include from other.

The markup belows attempts to include a snippet out of this page, but it doesn't work because include doesn't allow for that (yet...).

(:include Test.IncludeFromSelf#anchor lines=1..2 self=1:)

This is a small paragraph with an anchor that has the name 'anchor' in page IncludeFromSelf.

Below is the text from which include is supposed to extract the stuff to be included:

[[#anchor]]This is a small paragraph with an
anchor that has the name 'anchor' in page [[Test/IncludeFromSelf]]. 
[[#anchorend]]

This is a small paragraph with an anchor that has the name 'anchor' in page IncludeFromSelf.

It allows that, just add self=1 to allow the inclusion of the same page. --Petko February 02, 2009, at 04:33 AM


Test that content from both pages is included

(:include IncludeFromSelf#anchor#anchorend IncludeFromSelfPage#desc#desc-end  :)

This is a small paragraph with an anchor that has the name 'anchor' in page IncludeFromSelf.

Should, IMHO produce

(:include IncludeFromSelf#anchor#anchorend :)
(:include IncludeFromSelfPage#desc#desc-end  :)

This is a small paragraph with an anchor that has the name 'anchor' in page IncludeFromSelf. This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.22 00.21 MarkupToHTML end
 5: 00.22 00.21 MarkupToHTML begin
 6: 00.22 00.21 MarkupToHTML begin
 7: 00.22 00.21 MarkupToHTML end
 8: 00.22 00.21 MarkupToHTML begin
 9: 00.22 00.21 MarkupToHTML end
10: 00.22 00.21 MarkupToHTML end
11: 00.22 00.21 MarkupToHTML begin
12: 00.23 00.21 MarkupToHTML end
13: 00.23 00.21 MarkupToHTML begin
14: 00.23 00.22 MarkupToHTML end
15: 00.24 00.22 MarkupToHTML end
16: 00.24 00.23 MarkupToHTML begin
17: 00.25 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
18: 00.25 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
19: 00.26 00.24 MarkupToHTML end
20: 00.26 00.24 MarkupToHTML begin
21: 00.26 00.25 MarkupToHTML end
22: 00.27 00.25 now
Peak memory: 3,738,088 bytes