[Pmwiki-users] Re: include part of a page syntax, revisited

Steven Leite steven_leite
Wed Jun 16 20:32:42 CDT 2004



On Wednesday, June 16, 2004 10:29 AM [GMT+1=CET],
Patrick R. Michaud <pmichaud at pobox.com> wrote:

> On Wed, Jun 16, 2004 at 07:01:54PM -0700, Steven Leite wrote:
>>
>> How about  using 3 'dots' as the separator.  It's intuitive, and
>> easy to understand:
>> To include everything between #1 and #20, write:
>> [[include:PageName#1...20]],
>> to include everything after #1, write [[include:PageName#1...]],
>> and to include everything before #10, write
>> [[include:PageName...#10]].
>
> I don't have trouble with the dots themselves, but how would this look
> for the other items I proposed...?
>
>   Include the first paragraph of a page

[[include:PageName...p1]]

>   Include the first three paragraphs of a page

[[include:PageName...p3]]

>   Include the first paragraph after [[#someanchor]]

[[include:PageName:#someanchor...p1]]

>   Include the first ten lines after [[#someanchor]]

[[includePageName#someanchor...10]], or
[[includePageName#someanchor...l10]]

>   Include from #someanchor to the next anchor

[[include:PageName#someanchor...#]] or
[[include:PageName#someanchor]] (assuming anchors don't get nested)

>   Include from #someanchor to #otheranchor

[[include:PageName#someanchor...#otheranchor]]







More information about the pmwiki-users mailing list