Including trips for the next week
This templated markup is used in the following pages to transclude selected trips from the main fixture card pages to the home page.
The pat(tern) is a regular expression.
Used on pages:
Copy this text
(:include Site.TemplateFixtureCardIncludeNext#include#includeend:)
to create a list of the forthcoming trips.
It uses the page text variables from config.php {$ThisYear} "2026", {$ThisMonthName} "October".
%comment% create pattern for each day to be included
%comment% transcluded line has to start "||#␢" or "||##␢", optionally with "ddd␢" immediately after the "||"
%comment% the day number can optionally have a leading zero, but no leading spaces
%comment% the day number must be followed by a space (␢) or hyphen (-) or pipe (|)
(:day0:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="today")}[ |-].*$':)
(:day1:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="tomorrow")}[ |-].*$':)
(:day2:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+2 days")}[ |-].*$':)
(:day3:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+3 days")}[ |-].*$':)
(:day4:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+4 days")}[ |-].*$':)
(:day5:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+5 days")}[ |-].*$':)
(:day6:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+6 days")}[ |-].*$':)
(:day7:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+7 days")}[ |-].*$':)
(:day8:'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?{(ftime fmt="%e" when="+8 days")}[ |-].*$':)
%comment% create FixtureCard page name for each day to be included
(:yrmn1:{(ftime fmt="%Y%B" when="tomorrow")}:)
(:yrmn2:{(ftime fmt="%Y%B" when="+2 days")}:)
(:yrmn3:{(ftime fmt="%Y%B" when="+3 days")}:)
(:yrmn4:{(ftime fmt="%Y%B" when="+4 days")}:)
(:yrmn5:{(ftime fmt="%Y%B" when="+5 days")}:)
(:yrmn6:{(ftime fmt="%Y%B" when="+6 days")}:)
(:yrmn7:{(ftime fmt="%Y%B" when="+7 days")}:)
(:yrmn8:{(ftime fmt="%Y%B" when="+8 days")}:)
|
create pattern for each day to be included
transcluded line has to start "||#␢" or "||##␢", optionally with "ddd␢" immediately after the "||"
the day number can optionally have a leading zero, but no leading spaces
the day number must be followed by a space (␢) or hyphen (-) or pipe (|)
create FixtureCard page name for each day to be included
|
%comment% include one day at a time because trips are grouped by type on the fixture card page
[[#include]]
||class=fixturetable
||!Date ||!Location ||![[TripInformation/TripGrading|Grade]] ||![[TripInformation/LeadershipKit|Leader]] ||![[TTC/Contacts|Contact]] ||
(:grep FixtureCard/{$ThisYear}{$ThisMonthName} pat={Site.TemplateFixtureCardIncludeNext$:day0} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn1} pat={Site.TemplateFixtureCardIncludeNext$:day1} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn2} pat={Site.TemplateFixtureCardIncludeNext$:day2} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn3} pat={Site.TemplateFixtureCardIncludeNext$:day3} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn4} pat={Site.TemplateFixtureCardIncludeNext$:day4} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn5} pat={Site.TemplateFixtureCardIncludeNext$:day5} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn6} pat={Site.TemplateFixtureCardIncludeNext$:day6} mod=im match=1:)
(:grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn7} pat={Site.TemplateFixtureCardIncludeNext$:day7} mod=im match=1:)
(:comment grep FixtureCard/{Site.TemplateFixtureCardIncludeNext$:yrmn8} pat={Site.TemplateFixtureCardIncludeNext$:day8} mod=im match=1:)
[[#includeend]]
|
include one day at a time because trips are grouped by type on the fixture card page
| Date | Location | Grade | Leader | Contact |
| 28 | Rangituhi/Colonial Knob via Ohariu Valley | E | Michele Dickson | 022 635 0193 |
| 28 | Rangituhi / Colonial Knob | EM | Vivienne Radcliffe | 021 948 634 |
| 28 | Bike: Brooklyn to Red Rocks | M, bike | Paul Bruce | 021 027 19370 |
| 28 | Lunch on Frith: Twin Bridges - Frith - Bucks Rd | M | Joan Basher | 027 346 7700 |
| 28 | Mangaone South Off Track Adventure | M | Bill Allcock | 027 310 0263 |
| 28 | Corner Creek - Wharekahau Stream | MF | Jenny Mason | 021 230 9211 |
| Sat 31-Sun 1 Nov | Holdsworth-Waiohine Gorge; stay in Totara Flats Hut | M | Jake McLaren | 021 863 806 |
| 04 | Sixes and Sevens | Lunch | Alan Wright | 021 170 8540 |
| 04 | Circuit of Days Bay | E | Alison Stephenson | 022 032 6303 |
| 04 | Mākara - Ōpau Bay | EM | Mary Perkins | 021 022 49134 |
| 04 | Plimmerton - Pukerua Bay via coast | M | Janet Dobbie | 029 916 7831 |
| 04 | Terawhiti Station - Outlook Hill | M | Rachel Fry | 021 022 86605 |
| 04 | Point 830 - Papatahi | MF | Mike Wespel-Rose | 027 562 6341 |
|
(:include Site.TemplateFixtureCardIncludeNext#include#includeend:)
|
| Date | Location | Grade | Leader | Contact |
| 28 | Rangituhi/Colonial Knob via Ohariu Valley | E | Michele Dickson | 022 635 0193 |
| 28 | Rangituhi / Colonial Knob | EM | Vivienne Radcliffe | 021 948 634 |
| 28 | Bike: Brooklyn to Red Rocks | M, bike | Paul Bruce | 021 027 19370 |
| 28 | Lunch on Frith: Twin Bridges - Frith - Bucks Rd | M | Joan Basher | 027 346 7700 |
| 28 | Mangaone South Off Track Adventure | M | Bill Allcock | 027 310 0263 |
| 28 | Corner Creek - Wharekahau Stream | MF | Jenny Mason | 021 230 9211 |
| Sat 31-Sun 1 Nov | Holdsworth-Waiohine Gorge; stay in Totara Flats Hut | M | Jake McLaren | 021 863 806 |
| 04 | Sixes and Sevens | Lunch | Alan Wright | 021 170 8540 |
| 04 | Circuit of Days Bay | E | Alison Stephenson | 022 032 6303 |
| 04 | Mākara - Ōpau Bay | EM | Mary Perkins | 021 022 49134 |
| 04 | Plimmerton - Pukerua Bay via coast | M | Janet Dobbie | 029 916 7831 |
| 04 | Terawhiti Station - Outlook Hill | M | Rachel Fry | 021 022 86605 |
| 04 | Point 830 - Papatahi | MF | Mike Wespel-Rose | 027 562 6341 |
|
Page variable values
{Site/TemplateFixtureCardIncludeNext$:day0} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?28[ |-].*$'";
{Site/TemplateFixtureCardIncludeNext$:day1} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?29[ |-].*$'"; yrmn1="2026October"
{Site/TemplateFixtureCardIncludeNext$:day2} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?30[ |-].*$'"; yrmn2="2026October"
{Site/TemplateFixtureCardIncludeNext$:day3} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]?31[ |-].*$'"; yrmn3="2026October"
{Site/TemplateFixtureCardIncludeNext$:day4} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]? 1[ |-].*$'"; yrmn4="2026November"
{Site/TemplateFixtureCardIncludeNext$:day5} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]? 2[ |-].*$'"; yrmn5="2026November"
{Site/TemplateFixtureCardIncludeNext$:day6} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]? 3[ |-].*$'"; yrmn6="2026November"
{Site/TemplateFixtureCardIncludeNext$:day7} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]? 4[ |-].*$'"; yrmn7="2026November"
{Site/TemplateFixtureCardIncludeNext$:day8} = "'(?x)^\|\|(?:(?:Wed|Sat|Sun)[ -])?[0]? 5[ |-].*$'"; yrmn8="2026November"
- Category
- Template