Search:

⚙️

Tararua Tramping Club

Te rōpū hīkoi o te pae maunga o Tararua   -   100 years of tramping

Home Page Template Fixture Card Include

Page heading

This templated markup is used in the following pages to transclude selected trips from the main monthly fixture card pages to interest specific fixture card pages.

The markup uses a page text variable defined on the specific page as (:pattern:regex:) and used as {$:pattern} to select the specific lines to be displayed.
The "regex" contains the 'keywords' from the trip type (or in fact anywhere on the tip's line) that enable that tip to be transcluded into the specific fixture card page. Regex is an abbreviation for regular expressions.

Copy this text

(:include Site.TemplateFixtureCardInclude#include#includeend basepage='':)

to create a new fixture card page for a specific trip type. Define (:pattern:regex:) and if necessary (:columnname:text:) on the specific trip type page. (:endday:number:) defaults to 7. The parameter 'month="all"' is supplied for the YouthProgramme, mulit-day, and snow pages.

[[#include]]
||class=fixturetable width=* max-width=80pct
||!Date ||!Location ||![[TripInformation/TripGrading|Grade]] ||![[TripInformation/LeadershipKit|Leader]] ||![[TTC/Contacts|Contact]] ||!{$:columnname} ||
(:if044 date {$ThisYear}-01-01..{$ThisYear}-02-{$:endday}:)
||![[FixtureCard/January]]   ||||||||||||
(:grep FixtureCard/{$ThisYear}January pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if044end:)
(:if045 date {$ThisYear}-01-01..{$ThisYear}-03-{$:endday}:)
||![[FixtureCard/February]]  ||||||||||||
(:grep FixtureCard/{$ThisYear}February pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if045end:)
(:if046 date {$ThisYear}-01-01..{$ThisYear}-04-{$:endday}:)
||![[FixtureCard/March]]     ||||||||||||
(:grep FixtureCard/{$ThisYear}March pat={$:pattern} mod=im match=1:)
||! ||||||||||||
(:if046end:)
(:if047 date {$ThisYear}-01-01..{$ThisYear}-05-{$:endday}:)
||![[FixtureCard/April]]     ||||||||||||
(:grep FixtureCard/{$ThisYear}April pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if047end:)
(:if048 date {$ThisYear}-01-01..{$ThisYear}-06-{$:endday}:)
||![[FixtureCard/May]]       ||||||||||||
(:grep FixtureCard/{$ThisYear}May pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if048end:)
(:if049 date {$ThisYear}-01-01..{$ThisYear}-07-{$:endday}:)
||![[FixtureCard/June]]      ||||||||||||
(:grep FixtureCard/{$ThisYear}June pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if049end:)
(:if050 expr equal "{$$month}" "all" OR date {$ThisYear}-06-01..{$ThisYear}-07-{$:endday}:)
||![[FixtureCard/July]]      ||||||||||||
(:grep FixtureCard/{$ThisYear}July pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if050end:)
(:if051 expr equal "{$$month}" "all" OR date {$ThisYear}-06-01..{$ThisYear}-08-{$:endday}:)
||![[FixtureCard/August]]    ||||||||||||
(:grep FixtureCard/{$ThisYear}August pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if051end:)
(:if052 expr equal "{$$month}" "all" OR  date {$ThisYear}-06-01..{$ThisYear}-09-{$:endday}:)
||![[FixtureCard/September]] ||||||||||||
(:grep FixtureCard/{$ThisYear}September pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if052end:)
(:if053 expr equal "{$$month}" "all" OR  date {$ThisYear}-06-01..{$ThisYear}-10-{$:endday}:)
||![[FixtureCard/October]]   ||||||||||||
(:grep FixtureCard/{$ThisYear}October pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if053end:)
(:if054 expr equal "{$$month}" "all" OR  date {$ThisYear}-06-01..{$ThisYear}-11-{$:endday}:)
||![[FixtureCard/November]]  ||||||||||||
(:grep FixtureCard/{$ThisYear}November pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if054end:)
(:if055 expr equal "{$$month}" "all" OR  date {$ThisYear}-06-01..{$ThisYear}-12-{$:endday}:)
||![[FixtureCard/December]]  ||||||||||||
(:grep FixtureCard/{$ThisYear}December pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if055end:)
(:if057 date {$ThisYear}-11-14..{$ThisYear}-12-31:)
||![[FixtureCard/{$NextYear} January]] {$NextYear} ||||||||||||
(:grep FixtureCard/{$NextYear}January pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
||![[FixtureCard/{$NextYear} February]] {$NextYear} ||||||||||||
(:grep FixtureCard/{$NextYear}February pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
||![[FixtureCard/{$NextYear} March]] {$NextYear} ||||||||||||
(:grep FixtureCard/{$NextYear}March pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
||![[FixtureCard/{$NextYear} April]] {$NextYear} ||||||||||||
(:grep FixtureCard/{$NextYear}April pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
||![[FixtureCard/{$NextYear} May]] {$NextYear} ||||||||||||
(:grep FixtureCard/{$NextYear}May pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
||![[FixtureCard/{$NextYear} June]] {$NextYear} ||||||||||||
(:grep FixtureCard/{$NextYear}June pat={$:pattern} mod=im match=1:)
||!                          ||||||||||||
(:if057end:)
[[#includeend]]

DateLocationGradeLeaderContactBookings
December
Fri 11-Sun 13Mitre Flats Hut and Mitre PeakMSarah White022 165 0258
Fri 11-Sun 13Mitre Flats Hut and Mitre Peak via South Mitre StreamFPaul McCredie021 477 617|
5-13Kahurangi: Lake Stanley circuitMPeggy Munn027 533 1564
02-03Two nights. Mitre Flats, and Mitre CANCELLEDMRob Handyside021 620 064
 
2027 January 2027
20-25Extended Wellington Anniversary Weekend Tararua Lodge - walk,climb,relaxAllVivienne Radcliffe -> mailto:radcliffe [snail] xtra [period] co [period] nz021 948 634Book Now
---- replace this line with Weekend trips ----
13-14Overnight camp near Sayer Hut, sidetrip to WaiohineMRob Handyside021 620 064
 
2027 February 2027
Sat 20-Sun 21Roaring Stag Hut overnighterEMGraham Morley021 782 508
Sat 27-Sun 28Interclub weekend at Ōtaki ForksAllSarah White022 165 0258
3-11Aspiring NP: Five PassesMFLynne White027 631 1160‬
13-21Hurunui: Three Mile Stream figure 8MPeggy Munn027 533 1564
10-11Penn Creek via Gorge Track (overnight)MFAnthony Hill021 0255 1924
 
2027 March 2027
Sat 6-Sun 7Burn Hut overnighterMPaul McCredie021 477 617
Sat 13-Sun 14Wellington RockclimbYouth MultiCraig Morrison021 1321507
27 Feb-7 MarOhakune Club Meetexpedition allPeggy Munn027 533 1564
17-18Tapokopoko (overnight at Waerenga Hut)MCathy Wylie021 022 77796
 
2027 April 2027
tbaKahurangi: Lower Matiri/Poor PetesM MultiCathy Wylie021 022 77796‬
 
2027 May 2027
tbaAbel Tasman: Inland Pack TrackM MultiCathy Wylie021 022 77796‬
---- replace this line with Weekend trips ----
 
2027 June 2027
tbaGreenstone CaplesM MultiJanette Roberts‭027 269 1222‬
---- replace this line with Weekend trips ----
 

Example

These variables are used in the markup example above

(:endday:07:)
(:columnname:[[TararuaLodge/VisitingTararuaLodge|Bookings]]:)
(:pattern:'^(?!.*(Weekend trips in|Saturday and Sunday trips in|Multi-day trips in|Grandparent trips))\|\|.*(?:multi|[2-9]\s* day|expedition|week|weekend|overnight|(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)?\s*\d{1,2}\s*-\s*(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)?\s*\d{1,2}).*$':)

This pattern excludes lines with the texts "Weekend trips in", "Saturday and Sunday trips in", "Multi-day trips in", "Grandparent trips", and includes the lines with the other strings, e.g. "cycling", "weekend", "2 day", etc.

Category
Template

Page last modified on 2026 May 26 05:51

Edit - History - Recent changes - Wiki help - Search     About TTC     Contact us     About the website     Site map     email page as link -> mailto:?Subject="TTC: Template Fixture Card Include"&Body=