IncludeFromSelfPage

Testing to include from the same page as the location of the include statement

Also see IncludeFromSelfPage2

Now I try the directive.

(:include IncludeFromSelfPage#desc#desc-end:)

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

It doesn't work using {$Name} either. (works as of 2.2.0)

(:include {$Name}#desc#desc-end:)

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.


Below is the paragraph that will be extracted.

[[#desc]]
This is a paragraph starting with the label [@desc@] and ending with the paragraph [@desc-end@] in page [[Test/IncludeFromSelfPage]].
[[#desc-end]]

%comment% [=
[[#a]] Some text... [[#b]]
=]

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

[[#a]] Some text... [[#b]]


Comments

Rather than using include, wouldn't it make more sense to define "a macro" that was the target (not sure if this feature exists in any form in PmWiki).

So you might do something this:

  %definemacro% name = fred, content = { blah blah blah }

and then wherever you want the text to appear, just put in %fred% ...

NeilHerber January 21, 2005, at 07:41 AM

 0: 00.00 00.00 EnablePost = 1, keys=
 1: 00.00 00.00 config start
 2: 00.07 00.01 config end
 3: 00.16 00.03 MarkupToHTML begin
 4: 00.16 00.03 MarkupToHTML begin
 5: 00.19 00.04 MarkupToHTML end
 6: 00.20 00.04 MarkupToHTML begin
 7: 00.20 00.04 MarkupToHTML end
 8: 00.20 00.04 MarkupToHTML begin
 9: 00.21 00.04 MarkupToHTML end
10: 00.24 00.05 MarkupToHTML end
11: 00.26 00.06 MarkupToHTML begin
12: 00.31 00.07 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
13: 00.33 00.07 ReadApprovedUrls SiteAdmin.ApprovedUrls end
14: 00.36 00.08 MarkupToHTML end
15: 00.36 00.08 MarkupToHTML begin
16: 00.38 00.08 MarkupToHTML end
17: 00.38 00.08 now
Peak memory: 4,011,984 bytes