Test /

Include From Other

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Include From Other

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.

Recent Changes (All) | Edit SideBar Page last modified on February 02, 2009, at 03:42 AM Edit Page | Page History
Powered by PmWiki