Search:

Tararua Tramping Club

Te rōpū hikoi o te pae maunga o Tararua   -   Celebrating 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
June
20-21Tutuwai HutYouthStu Hutson027 686 5636
10-18Waikaremoana+side tripsEM multiJanette Roberts027 269 1222
 
July
10-12Matariki trip to Tararua Lodge - walking, climbing, party.AllPaul Maxim027 447 0459Book Now
6-8Matiu/Somes Island Grandparents tripfamily ages 1-7Janette Roberts027 269 1222
 
August
---- replace this line with Weekend trips ----
---- replace this line with Multi-day trips ----
Sat 1-Sun 2Waerenga HutYouthBharat Pancha027 686 5636
23 - 28Ski week to Tararua Lodge - skiing, climbing, relaxing.AllJohn Gardiner -> mailto:johncgardinernz [snail] gmail [period] com027 258 2843Book Now
Fri 28-Sun 30Ruapehu CraterYouthStu Hutson027 313 0130
30 Aug - Thurs 3rd SeptSki week to Tararua Lodge - skiing, climbing, relaxing.AllAdrian Davis -> mailto:nzskiing [snail] gmail [period] com021 145 7507Book Now
 
September
---- replace this line with Weekend trips ----
Sat 26-Sun 27Waiopehu Hut - a there and back overnighter to this hut in the Tararua near Levin. Great views over the Kapiti CoastEMJenny Olsen027 697 7550
30 Aug - Thurs 3rd SeptSki week to Tararua Lodge - ski, climb, relaxAllAdrian Davis -> mailto:nzskiing [snail] gmail [period] com021 145 7507Book Now
11-13Self cater with AIC Tararua Lodge - ski, climbAllLodge Committee -> mailto:ttc [period] tararua [period] lodge [snail] ttc [period] org [period] nz021 948 634Book Now
13-18Self cater week to Tararua Lodge - ski, climbAllLodge Committee -> mailto:ttc [period] tararua [period] lodge [snail] ttc [period] org [period] nz021 948 634Book Now
18-20SnowcraftYouthStu Hutson027 686 5636
---- replace this line with Multi-day trips ----
Thurs 3-6 SeptFamily long weekend to Tararua LodgeFamilyKristy Buchanan -> mailto:kristymbuchanan [snail] gmail [period] com027 424 3313
6-Thurs 11 SeptPreschool ski week to Tararua LodgeFamilyAnita Radcliffe -> mailto:anita [period] f.radcliffe [snail] gmail [period] com Arran Whiteford -> mailto:arranjcw [snail] gmail [period] comAR 027 464 4455 AW 022 247 4777
28-30Turere Lodge Grandparents tripfamily ages 1-7Janette Roberts027 269 1222
30-31Burn HutM, overnightSusi Lang027 564 6008
 
October
---- replace this line with Weekend trips ----
Sat 10-Sun 11Blue Range HutEMark Edwards022 430 4347
Sat 17-Sun 18Kime Hut and a climb to nearby Mt HectorMSarah White022 165 0258
---- replace this line with Multi-day trips ----
14-15Mitre FlatsM, overnightRob Handyside021 620 064
 
November
---- replace this line with Weekend trips ----
Sat 7-Sun 8Holdsworth-Waiohine Gorge. stay in Totara Flats HutMJake McLaren021 863 806
Sat 21-Sun 22Kaitoke, Marchant Ridge, Tutawai HutMRob Handyside021 620 064
Fri 27-Sun 29Wakelings, McKinnon and Crow Huts, Ruahine RangeFSarah White022 165 0258
---- replace this line with Multi-day trips ----
11-12Penn CreekMF, overnightKaren Baker027 241 2671
 
December
---- replace this line with Weekend trips ----
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|
---- replace this line with Multi-day 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=