Include Formatting Rules
Last changed: -68.165.112.79

.

You can use the following syntax to include the contents of one topic inside another:

 {{NameOfTopicToInclude}}

This is basically as simple as it looks with one subtle addition. If you add some tabs before the include, the number of tabs you use will be used to show headings in included topics as deeper level than they would appear in the original topic. For example, two tabs before the include directive would cause a level 1 heading (i.e., preceeded by one !) as level 3. You can use this to make a WikiSpec.

Alternate Method

Using WikiTalk the following will also insert a topic:

 @@topics.<topic name>._Body@@

Q: Can this alternative method also work by including a topic in a different namespace?

For an example, see the HomePage.

Comments

I had a problem with this feature: The webserver responded with "Error: Topic is ambiguous." I resolved this problem by changing the link like this:

 {{NameSpace.NameOfTopicToInclude}}

Maybe this error appears only if you have more than one WikiNamespace. -- SimonSchmid

If the NameOfTopicToInclude is a single word, something like {{[Shakespeare]}} does not seem to work. - MichaelWaltuch

Bug

Also, if {{NameSpace1.NameOfTopicToInclude}} is specified in Namespace2 topic and Import is not present in _ContentBaseDefinition, the include doesn't work. -- MichaelWaltuch

Question
Question
Question
Answer
I was adding the Property multiple times, I assumed WikiTalk was smart enough to pull multiply defined PageProperties, but apparently not for "With:" at least (it only "loads" the last one), you need to pass it in one property with commas like:
  :With:MyLib1, MyLib2

--DoomCryer

Question

Bug:

FlexWiki hangs when you view pages that include circular references - presumably it enters an infinite loop trying to retrieve page after page. This is easy to do by accident, especially with many similarly-named topics. I would suggest that FlexWiki be patched to prevent a given topic including itself (as a bare minimum) when edits are previewed/saved, and perhaps could check an additional N levels (configurable) of includes.

Example

Type this:

 ----
 {{WikiMeansQuick}}
 ----

to get this:

Redirect

This page was automatically generated when this topic (WikiMeansQuick) was renamed to WikiMeansQuick or Poo on 8/12/2005 at 8:56 AM by 166.70.193.248.

Please update references to point to the new topic.

You can do the same with WikiTalk.

It will also work with single Words and more Namespaces.

Look There