I have made a change to my local include.py macro to support the same syntax as pagelist and fullsearch does in addition to the existing syntax. I am attaching a patch for those who may find some use of it.

[[attachment:Include.patch]]

----
Quick mod here to add default `to:` and `from:` search strings.
Does not affect default behavior (but you may need to change the defaults if you use similar 'tags' for something else!)
Not gonna up a patch, it's a few simple additions:

Insert ''before'' `if from_re:` (line 124):
{{{
        if not from_re:
            from_re = "##EXPORT"
}}}

Insert ''before'' `if to_re:` (line 135):
{{{
        if not to_re:
            to_re = "##END"
}}}
These do not affect the surounding indentation, they are independent clauses!

To silence returned errors if default `from:` not found, insert this ''before'' `result.append(_sysmsg % ('warning', 'Include: ' + _('Nothing found for "%s"!')) % from_re)` (line 133):
{{{
                if not from_re == "##EXPORT":
}}}
To silence returned errors if default `to:` not found, insert this ''before'' `result.append(_sysmsg % ('warning', 'Include: ' + _('Nothing found for "%s"!')) % from_re)` (line 143):
{{{
                if not to_re == "##END":
}}}
<!> Check your indentation after these last two, though!

-- BlueRabbit <<DateTime(2010-06-26T21:32:31Z)>>
----