<br><br><div><span class="gmail_quote">On 4/5/06, <b class="gmail_sendername">Octocias</b> &lt;<a href="mailto:octocias@googlemail.com">octocias@googlemail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">Hi,<br><br>I would like to be able to use ONE wiki page to display EITHER a summary or the detail. <br><br>Like this:<br><br>in the wikipage, I want to say:<br><br><span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">


if ( page name ends with &quot;summary&quot; )</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;"><span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">{</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;">


<span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">&nbsp; &nbsp; display this: &quot;blah blah blah&quot;</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;"><span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">


}</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;"><span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">else</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;">


<span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">{</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;"><span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">


&nbsp;&nbsp;&nbsp; display this chunk of content.</span><br style="color: rgb(153, 0, 0); font-family: courier new,monospace;"><span style="color: rgb(153, 0, 0); font-family: courier new,monospace;">}</span><br><br>The problem is... I will be INCLUDING those wiki pages, so that means the file names will be the HOST's file name, not the included filename. 
<br><br>Any suggestions of how I can get around this? Seems it would be cool if I could pass a variable to the page.</div></blockquote><div><br>Try (:if name *summary:)<br>(:include summarysource:)(:if ! name *summary:)<br>
(:include fulltext:)(:ifend:)<br><br>Maybe?<br></div></div><br>