INCLUDE a specified section of another topic

  • Tip Category - Developing Wiki Applications
  • Tip Added By - RichMorin - 29 Sep 2009 - 19:03
  • Extensions Used - None
  • Useful To - Beginners
  • Tip Status - New
  • Related Topics -

Problem

You want to INCLUDE a specified section of another topic, rather than the entire topic.

Context

Another topic has one or more sections which are useful to other topices. This may be a valid topic on its own or simply a repository for useful snippets.

Solution

Use STARTSECTION and ENDSECTION to delimit the sections:

%STARTSECTION{"Section 1"}%
This is Section 1...
%ENDSECTION{"Section 1"}%

Then request them by name:

%INCLUDE{"FooTopic"  section="Section 1"}%

Known Uses

  • boilerplate text
  • bibliographic entries

Known Limitations

See Also

BestPracticeTipsForm edit

Category Developing Wiki Applications
Topic revision: r1 - 29 Sep 2009, RichMorin
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy