Search:

Tararua Tramping Club

Te rōpū hikoi o te pae maunga o Tararua   -   Celebrating 100 years of tramping

Site 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 youth 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
March
Sat 7-Sun 8"Love our huts" Field Hut spit and polishAll multiPaul McCredie021 477 617
Fri 20-Sun 22Lodge work party - Tararua Lodge, Mt RuapehuAll multiVivienne Radcliffe -> mailto:radcliffe [snail] xtra [period] co [period] nz021 948 634
Sat 28Titahi Bay Rock ClimbingYouthCraig Morrison021 132 1507
2-8Dusky Track, FiordlandSF multiHoward Symmes -> mailto:wanderinggnome54 [snail] gmail [period] com
7-15Club meet - Taranaki MaungaAllPeggy Munn027 533 1564
20-2 AprHollyford and Gertrude SaddleSF multiLynne White027 631 1160
25 - 1 AprRees/Dart circuitM multiGerald Leather021 239 1946
 
April
22Tapokopoko (overnight)MCathy Wylie021 022 77796
 
May
tbaNorth EgmontM multiRob Handyside021 620 064
tbaGranity Pass/Mt OwenM multiRussell Cooke027 244 8603
 
June
tbaWaikaremoana+side tripsSF multiJanette Roberts027 269 1222
 

Example

These variables are used in the markup example above

(:endday:07:)
(:columnname:[[TararuaLodge/VisitingTheLodge|Bookings]]:)
(:pattern:'^(?!.*(Weekend trips in|Saturday and Sunday trips in|Multi-day trips in).*)\|\|.*(?:ski|climb|lodge|bike|biking|cycle|cycling|mtb|[^!]multi|[2-9] day|overnight|weekend|week|expedition).*$':)

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

Category
Template

Page last modified on 2026 Mar 19 03:49

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=