Hi Boris,
we use this technique massively in our wikis and it is indeed very helpful, 
especially if you have repetitive parts.
The correct syntax for what you want is

  [[Include(/MySubPage,"title of the header for the include",level)]]

In this case, /MySubPage should not start with its own header and its 
subheaders should start on level+1.

See http://moinmaster.wikiwikiweb.de/HelpOnMacros/Include. This states that 
heading is optional, however that means that you need an empty parameter, e.g.
  [[Include(/MySubPage,  ,level)]]

However I recommend to use heading because then you can click on it to go to 
/MySubPage.

Kind Regards,
Robert



> -----Original Message-----
> From: Boris Callens [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 31, 2007 9:58 AM
> To: [email protected]
> Subject: [Moin-user] Add level with Include macro
> 
> 
> Hi list,
> 
> I am trying to make my pages more modular by splitting them 
> all up in  
> several subpages and using the [[Include(/SubPage)]] command on the  
> orignal page to include the subpages.
> 
> Now I would like to make the inserted pages follow the header 
> levels from  
> the page where they are inserted.\
> I googled this and found the syntax for that should be 
> [[Include(/SubPage,  
> level)]] but that just gives me a parsing error.
> 
> Example:
> <main page:>
> 
> 
> = MainPageTitle =
> [[Insert(/SubPage)]]
> 
> 
> 
> <and Subpage:>
> 
> = SubPageTitle =
> Here goes a random text
> 
> 
> <Would give me:>
> 
> = MainPageTitle =
> == SubPageTitle ==
> Here goes a random text
> 
> -- 
> Boris Callens
> FedEx
> 
> 
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to