Recent Changes - Search:

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.

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

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.06 00.05 MarkupToHTML begin
 3: 00.06 00.05 MarkupToHTML begin
 4: 00.07 00.06 MarkupToHTML end
 5: 00.07 00.06 MarkupToHTML begin
 6: 00.08 00.07 MarkupToHTML end
 7: 00.08 00.07 MarkupToHTML begin
 8: 00.08 00.07 MarkupToHTML end
 9: 00.11 00.10 MarkupToHTML end
10: 00.11 00.11 MarkupToHTML begin
11: 00.14 00.13 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.15 00.14 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.16 00.16 MarkupToHTML end
14: 00.16 00.16 MarkupToHTML begin
15: 00.18 00.17 MarkupToHTML end
16: 00.18 00.17 now