[Pmwiki-users] including parts of a page, once again

Thomas -Balu- Walter list+pmwiki-users
Fri Jul 16 03:00:38 CDT 2004


On Thu, Jul 15, 2004 at 02:06:25PM -0600, Patrick R. Michaud wrote:
> First, we can include lines and paragraphs:
> 
> [:include SomePage:]                      include all of SomePage
> [:include SomePage lines=10 :]            lines 1-10

What about "lines=..10"? I think this is more logical compared e.g. with
"lines=5.." and "lines=5..10"

> [:include SomePage lines=5..10 :]         lines 5-10
> [:include SomePage lines=5.. :]           lines 5 to end
> [:include SomePage paras=2 :]              first two paragraphs

Same here.

> [:include SomePage paras=2..5 :]           paragraphs 2, 3, 4, 5

No "paras=5.."?

> Next, we can treat anchors as denoting "sections" to be cut from
> the page:
> 
> [:include SomePage#a :]                   from #a to next anchor ("section" #a)
> [:include SomePage #a..#b :]              from #a up to #b
> [:include SomePage ..#a :]                from beginning to #a
> [:include SomePage #a.. :]                from #a to end of page
> [:include SomePage#a#b :]                 from #a to #b

Difference to "SomePage #a..#b"? Does this one include #b?

> [:include SomePage##a :]                  from beginning to #a
> [:include SomePage#a# :]                  from #a to end of page

I really think those are confusing... didn't we have them just a few
lines above already?

> [:include SomePage fs :]                  include SomePage up to the full stop
> [:include SomePage #a fs :]               section #a up to the full stop
> [:include SomePage paras=2 fs :]          2 paragraphs up to the full stop

Why is this better than using another #b anchor?

     Balu



More information about the pmwiki-users mailing list