Search:

Tararua Tramping Club

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

Site Local Templates

#default

This redefines the default page list output for pmwiki.org. Basically we redefine the list to include any summary that may exist for the page.

>>comment<<
[[#default]]
(:template defaults order=$Name:)
(:template first {=$Group}:)

:[[{=$Groupspaced}/]] /:
(:template each:)
: :[[{=$Group}/{=$Namespaced}]] [-&nbsp;{=$:Summary} -]
[[#defaultend]]
>>smaller<<

(:pagelist group={$Group} fmt=#default list=normal count=7:)

(:template defaults order=$Name:) (:template first {=$Group}:)

{=$Groupspaced}? /

(:template each:)

{=$Namespaced}?  {=$:Summary}

Site /
All Group Header  Common header page for website
Auth Form  form displayed when requesting a password or username/password
Auth User  
Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Header  Website page header

#groupname

Outputs wiki group titles with spaces between the words in the group title.

>>comment<<
[[#groupname]]
(:template defaults order=$Group:)
(:template first {=$Group}:)
[[{=$FullName} | {=$Groupspaced}]]&nbsp;
(:template each:)
[[#groupnameend]]
>>smaller<<

(:pagelist name=SideBar fmt=#groupname list=normal count=8:)

(:template defaults order=$Group:) (:template first {=$Group}:) {=$Groupspaced}?  (:template each:)

#grouptrail

Use the parameter TrailPage to set the return or parent page. If not set it will default to the group of the pagelist.

>>comment<<
[[#grouptrail]]
(:template defaults wrap=inline TrailPage="{*$Groupspaced}" order="$Name":)
(:template first:)
(:template each:)
(:if equal "{*$FullName}" "{=$FullName}":)
%wikitrail%[[ {<$FullName} | {<$Namespaced} ]] < [[ {$$TrailPage} ]] > [[ {>$FullName} | {>$Namespaced} ]]
(:ifend:)
[[#grouptrailend]]
>>smaller<<

(:pagelist group="{*$Group}" fmt=#grouptrail:)

(:template defaults wrap=inline TrailPage="Site" order="$Name":) (:template first:) (:template each:)

#pages

A simple bullet list of page title and summary.

>>comment<<
[[#pages]]
(:template defaults order=$Name:)
(:template each:)
(:if equal "{=$Title}" "Home Page":)
* [[{=$FullName}|{=$Groupspaced}]] [-&nbsp;{=$:Summary}-]
(:else:)
* [[{=$FullName}|{=$Titlespaced}]] [-&nbsp;{=$:Summary}-] [--&nbsp;([[{=$Groupspaced}]])--]
(:ifend:)
[[#pagesend]]
>>smaller<<

(:pagelist group={*$Group} fmt=#pages list=normal count=8:)

(:template defaults order=$Name:) (:template each:)

#pagetrail

Use the parameter TrailPage to set the return or parent page. If not set it will default to the group of the pagelist.

>>comment<<
[[#pagetrail]]
(:template defaults wrap=inline TrailPage="{*$Groupspaced}" name=-HomePage,-RecentChanges,-RecentUploads,-SideBar,-Template,-GroupHeader,-GroupFooter,-GroupAttributes:)
(:template each:)
(:if false:)-< [-- *'{*$FullName}' ='{=$FullName}' --](:ifend:)
(:if equal "{*$FullName}" "{=$FullName}":)
%wikitrail%[[{<$FullName} | {<$Namespaced}]] < [[{$$TrailPage}]] > [[{>$FullName}| {>$Namespaced}]]
(:ifend:)
[[#pagetrailend]]
>>smaller<<

(:pagelist group={*$Group} list=all fmt=#pagetrail:)

(:template defaults wrap=inline TrailPage="Site" name=-HomePage,-RecentChanges,-RecentUploads,-SideBar,-Template,-GroupHeader,-GroupFooter,-GroupAttributes:) (:template each:)

#photosummary

A list of page photo thumbnails, title and summary.

>>comment<<
[[#photosummary]]
(:template defaults order=$Name ThumbCount=4 ThumbSize=40 wrap=inline:)
(:template first:)
||width=* style="display:inline-block; clear:left;"
(:template each:)
||[----(:thumblist {=$FullName} name="*.jpeg|*.jpg" count={$$ThumbCount} order=random height={$$ThumbSize} link=2 titlefmt="?x_ttctitle ?n {=$Titlespaced}":)----] \
||[[{=$FullName} | {=$Titlespaced}]] [[<]] [-{=$:Summary}-] ||
[[#photosummaryend]]
>>smaller<<

(:pagelist group=Photos fmt=#photosummary list=normal count=8:)

(:template defaults order=$Name ThumbCount=4 ThumbSize=40 wrap=inline:) (:template first:)

(:template each:)

{=$Titlespaced}?
{=$:Summary}

1
Photo: '2024 May 12 15:16'
Original size: 714 x 345; 64 kB
Filename: '1' 
 1978-12-25-Aspiring National Park
4
Photo: '2024 Jul 07 11:35'
Original size: 1,597 x 1,055; 415 kB
Filename: '4' 
 1978-12-25-Aspiring National Park
5
Photo: '2024 Jul 07 11:31'
Original size: 726 x 480; 64 kB
Filename: '5' 
 1978-12-25-Aspiring National Park
6
Photo: '2024 Jul 07 11:35'
Original size: 1,328 x 1,692; 452 kB
Filename: '6' 
 1978-12-25-Aspiring National Park
1978-12-25-Aspiring National Park
Photos from TTC trip to Aspiring National Park from 25 December 1978
Cwb-A And J In Canadian
Photo: '2004 Jan 17 16:29'
Original size: 640 x 480; 62 kB
Filename: 'cwb-a_and_j_in_canadian' 
 2004-01-16-Whanganui River-Family
Aa  0 001
Original size: 1,536 x 1,024; 935 kB
Filename: 'aa_0_001' 
 2004-01-16-Whanganui River-Family
Aa  0 002
Original size: 1,536 x 1,024; 821 kB
Filename: 'aa_0_002' 
 2004-01-16-Whanganui River-Family
Cwb Ramsay Nicholson At Whakahoro Campsite
Photo: '2004 Jan 16 08:33'
Original size: 640 x 480; 59 kB
Filename: 'cwb_ramsay_nicholson_at_whakahoro_campsite' 
 2004-01-16-Whanganui River-Family
2004-01-16-Whanganui River-Family
Photos from the 2004 Wellington Anniversary weekend family trip from Whakahoro to Pipiriki
Bike 1
Original size: 600 x 410; 86 kB
Filename: 'bike1' 
 2005-And Earlier
Hut
Original size: 420 x 288; 30 kB
Filename: 'hut' 
 2005-And Earlier
Tramp Hutflats Big
Original size: 704 x 474; 83 kB
Filename: 'tramp_hutflats_big' 
 2005-And Earlier
Fam Skier Small
Original size: 108 x 166; 6 kB
Filename: 'fam_skier_small' 
 2005-And Earlier
2005-And Earlier
Photos from the TTC website and family egroup from 2005 and earlier
Cool Kapiti Reflection
Original size: 734 x 542; 41 kB
Filename: 'CoolKapitiReflection' 
 2005-Photo Competition Results
Albatross Argument
Original size: 2,240 x 1,488; 290 kB
Filename: 'AlbatrossArgument' 
 2005-Photo Competition Results
Crib Goch Snowdonia
Original size: 1,426 x 1,200; 169 kB
Filename: 'CribGochSnowdonia' 
 2005-Photo Competition Results
2005-Photo Competition Results
Photographic competition and results
-Morison Bush Campsite 1
2006-03-12 
Original size: 1,536 x 722; 242 kB
Filename: '2006-03-12-MorisonBushCampsite1' 
 2006-03-11-Morison Bush
2006-03-11-Morison Bush
Family camping weekend at Morison Bush on the Ruamahanga River
-Lunch Spot
2006-04-14 
Original size: 1,536 x 1,024; 254 kB
Filename: '2006-04-14-lunch spot' 
 2006-04-13-Easter-Sixtus Lodge-Family
-Limestone Creek Exit
2006-04-15 
Original size: 768 x 512; 64 kB
Filename: '2006-04-15-limestone creek exit' 
 2006-04-13-Easter-Sixtus Lodge-Family
-Heritage Bridge
2006-04-16 
Original size: 1,536 x 728; 194 kB
Filename: '2006-04-16-heritage bridge' 
 2006-04-13-Easter-Sixtus Lodge-Family
-Limestone Creek
2006-04-15 
Original size: 512 x 768; 120 kB
Filename: '2006-04-15-limestone creek' 
 2006-04-13-Easter-Sixtus Lodge-Family
2006-04-13-Easter-Sixtus Lodge-Family
Family lodge trip at Easter to Sixtus Lodge in the Rangitikei
10-Down-To-Balloon-Hut-Small
Photo: '2006 Oct 21 17:27'
Original size: 1,200 x 801; 271 kB
Filename: '2006-10-down-to-balloon-hut-small' 
 2006-10-Cobb Trip
10-The-Climb-To-The-Tablelands
Photo: '2006 Oct 21 15:43'
Original size: 900 x 600; 247 kB
Filename: '2006-10-the-climb-to-the-tablelands' 
 2006-10-Cobb Trip
2006-10-Cobb Trip
Photos from the Cobb Valley and Tablelands
-Dinner Time
2006-12-02 
Original size: 1,536 x 1,024; 676 kB
Filename: '2006-12-02-dinner time' 
 2006-12-02-Morison Bush
-Dinner Table
2006-12-02 
Original size: 1,024 x 1,536; 231 kB
Filename: '2006-12-02-dinner table' 
 2006-12-02-Morison Bush
-Kayaking Raft
2006-12-03 
Original size: 1,536 x 1,024; 434 kB
Filename: '2006-12-03-kayaking raft' 
 2006-12-02-Morison Bush
-Kayaking Kids
2006-12-03 
Original size: 1,536 x 1,024; 440 kB
Filename: '2006-12-03-kayaking kids' 
 2006-12-02-Morison Bush
2006-12-02-Morison Bush
Photos from Morison Bush in December 2006

#randomimage

Select an image randomly from all pages with images and display

>>comment<<
[[#randomimage]]
(:template defaults order=random order2=name count=1 if="attachments" thumbskip="*.gif|*.png|*_omit*" list=normal thumblink=2 thumbcount=1 titlefmt="click to see gallery?N?N?x_ttctitle" $:omitpage=-yes:)
(:template first:)
%comment%-< ''[- First: FullName="{=$FullName}"; group="{$$group}"; name="{$$name}"; thumbname="{$$thumbname}"; thumbskip="{$$thumbskip}"; order="{$$order}"; order2="{$$order2}"; count="{$$count}"; thumbcount="{$$thumbcount}" -]''
(:template each:)
(:thumblist captionfmt="?x_ttccaption" {=$FullName} name="{$$thumbname}" skip="{$$thumbskip}" px="{$$px}" width="{$$width}" height="{$$height}" link="{$$thumblink}" order="{$$order}"  order2="{$$order2}" count="{$$thumbcount}" titlefmt="{$$titlefmt}":)
(:template none:)
-< ''[- None: FullName="{=$FullName}"; group="{$$group}"; name="{$$name}"; thumbname="{$$thumbname}"; thumbskip="{$$thumbskip}"; count="{$$count}"; thumbcount="{$$thumbcount}" -]''
[[#randomimageend]]
>><<

(:pagelist group="photos" fmt=#randomimage list=normal count=8 px=128 titlefmt="image mouse over tip":)

(:template defaults order=random order2=name count=1 if="attachments" thumbskip="*.gif|*.png|*_omit*" list=normal thumblink=2 thumbcount=1 titlefmt="click to see gallery?N?N?x_ttctitle" $:omitpage=-yes:) (:template first:) -< First: FullName="{=$FullName}"; group="{$$group}"; name="{$$name}"; thumbname="{$$thumbname}"; thumbskip="{$$thumbskip}"; order="{$$order}"; order2="{$$order2}"; count="{$$count}"; thumbcount="{$$thumbcount}" (:template each:) (:template none:)

None: FullName="{=$FullName}"; group="{$$group}"; name="{$$name}"; thumbname="{$$thumbname}"; thumbskip="{$$thumbskip}"; count="{$$count}"; thumbcount="{$$thumbcount}"

-< First: FullName="Photos.2024-04-05MilfordTrack"; group="photos"; name=""; thumbname=""; thumbskip="*.gif|*.png|*_omit*"; order="random"; order2="name"; count="8"; thumbcount="1"

image mouse over tip
Mac Kinnon Pass

Photo: Peggy

image mouse over tip
Christine Jacobson Kaweka Alpine Meadow

Photo: Christine

image mouse over tip
a IMG 1926
image mouse over tip
 
image mouse over tip
Steep ugly moraine to access Copland Ridge from Hooker Valley
image mouse over tip
TTC
image mouse over tip
 

Photo: Simon

#recentchanges

>>comment<<
[[#recentchanges]]
(:template defaults order=-time name=-GroupAttributes,-Site.AllRecentChanges,-Site.LastChanged,-RecentChanges,-RecentUploads,-SiteAdmin.Blocklist-*:)
(:template first:)
||width=* style="font-size:smaller;"
||!Page ||!Time ||!By ||!Change ||
(:template each:)
||''[[{=$FullName} | {=$Groupspaced}.{=$Namespaced}]]'' ||[-[[{=$FullName}?action=diff | {=$LastModified}]]-] ||(:if !equal {=$LastModifiedBy}:)[[~{=$LastModifiedBy}]](:ifend:) ||{=$LastModifiedSummary} ||
[[#recentchangesend]]
>>smaller<<

(:pagelist group={*$Group} fmt=#recentchanges count=7:)

(:template defaults order=-time name=-GroupAttributes,-Site.AllRecentChanges,-Site.LastChanged,-RecentChanges,-RecentUploads,-SiteAdmin.Blocklist-*:) (:template first:)

PageTimeByChange

(:template each:)

{=$Groupspaced}.{=$Namespaced}?{=$LastModified}{=$LastModifiedBy}?{=$LastModifiedSummary}

PageTimeByChange
Site.Inter Map2026 Apr 16 20:38simonadd DoC (+112)
Site.Template Fixture Card Include2026 Mar 19 03:49simonadd parameter (+261)
Site.Template Fixture Card Include Next2026 Feb 24 07:58simonreduce by a day (+8)
Site.Local Templates2025 Jan 30 04:59simon-< First: FullName="{=$FullName}"; group=""; name=""; thumbname=""; thumbskip=""; order=""; order2=""; count=""; thumbcount="" -< None: FullName="{=$FullName}"; group=""; name=""; thumbname=""; thumbskip=""; count=""; thumbcount="" (+268)
Site.Edit Form2024 Aug 19 07:34Petko 
Site.Side Bar2024 Jun 14 04:13  
Site.Auth Form2024 Apr 05 04:17simonadd more password protected pages (+25)

#simplename

Simple bullet list of spaced page names, without the Group name.

>>comment<<
[[#simplename]]
(:template defaults order=$Name:)
* [[({=$Group}/){=$Namespaced}]]
[[#simplenameend]]
>>smaller<<

(:pagelist group=Site fmt=#simplename list=normal count=8:)

(:template defaults order=$Name:)

#simpletitle

Simple bullet list of page titles, without the Group name.

>>comment<<
[[#simpletitle]]
(:template defaults order=$Name:)
(:if equal "{=$Title}" "Home Page":)
* [[{=$FullName}|{=$Groupspaced}]]
(:else:)
* [[{=$FullName}|{=$Titlespaced}]]
(:ifend:)
[[#simpletitleend]]
>>smaller<<

(:pagelist group=Site fmt=#simpletitle list=normal count=8:)

(:template defaults order=$Name:)

#sitemap

Site map? showing number of pages

>>comment<<
[[#sitemap]]
(:template first {=$Group}:)
[[#{=$Group}]]
!!! [[{=$Groupspaced}/]] [--((:pagelist fmt=count group={=$Group} list=normal:) pages)--] [-&nbsp;{{=$Group}/$:Summary} -]
(:template each:)
(:if ! equal {=$Name} {$DefaultName} :)
-< [[{=$Group}/{=$Namespaced}]] [-&nbsp;{=$:Summary} -]
(:ifend:)
[[#sitemapend]]
>>smaller<<

(:pagelist group={$Group} fmt=#sitemap list=normal count=12:)

(:template first {=$Group}:) #{=$Group}

{=$Groupspaced}? (0 pages)  {{=$Group}/$:Summary}

(:template each:)

{=$Namespaced}?  {=$:Summary}

Site (25 pages)  redirects to Site.Site

All Group Header  Common header page for website
Auth Form  form displayed when requesting a password or username/password
Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Header  Website page header
Image Template  Thumblist image template
Include Page  An error message for when an include fails
Inter Map  Custom InterMap link definition to other wikis, directories, and protocols

#titlename

Outputs wiki page titles with spaces between the words in the title.

>>comment<<
[[#titlename]]
(:template defaults order=$Name:)
(:if equal "{=$Title}" "Home Page":)
[[{=$FullName} | {=$Groupspaced}]]
(:else:)
[[{=$FullName} | {=$Titlespaced}]]
(:ifend:)
[[#titlenameend]]
>>smaller<<

(:pagelist group=Site fmt=#titlename list=normal count=8:)

(:template defaults order=$Name:) {=$Titlespaced}?

#titlespacedlist

Outputs wiki page titles with spaces between the words in the title.

>>comment<<
[[#titlespacedlist]]
(:template defaults Indent=-< order=$Name:)
{$$Indent} [[{=$FullName} | {=$Titlespaced}]]
[[#titlespacedlistend]]
>>smaller<<

(:pagelist group=Site fmt=#titlespacedlist list=normal count=8:)

(:template defaults Indent=-< order=$Name:) {$$Indent} {=$Titlespaced}?

#titlesummary

A simple bullet list of page title and summary.

>>comment<<
[[#titlesummary]]
(:template defaults order=$Name:)
(:template each:)
(:if equal "{=$Title}" "Home Page":)
* [[{=$FullName} | {=$Groupspaced}]] [-&nbsp;{=$:Summary}-]
(:else:)
* [[{=$FullName} | {=$Titlespaced}]] [-&nbsp;{=$:Summary}-]
(:ifend:)
[[#titlesummaryend]]
>>smaller<<

(:pagelist group=Site fmt=#titlesummary list=normal count=8:)

(:template defaults order=$Name:) (:template each:)

#titlesummarylist

A simple list of page title and summary.

>>comment<<
[[#titlesummarylist]]
(:template defaults order=$Name:)
(:template each:)
(:if equal "{=$Title}" "Home Page":)
-< [[{=$FullName} | {=$Groupspaced}]] [-&nbsp;{=$:Summary}-]
(:else:)
-< [[{=$FullName} | {=$Titlespaced}]] [-&nbsp;{=$:Summary}-]
(:ifend:)
[[#titlesummarylistend]]
>>smaller<<

(:pagelist group=Site fmt=#titlesummarylist list=normal count=8:)

(:template defaults order=$Name:) (:template each:)

{=$Titlespaced}?  {=$:Summary}

All Group Header  Common header page for website
Auth Form  form displayed when requesting a password or username/password
Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Header  Website page header
Site  redirects to Site.Site

Based on original at https://kiwiwiki.nz/pmwiki/pmwiki.php/Administration/

Page last modified on 2025 Jan 30 04:59

Edit - History - Recent changes - Wiki help - Search     About TTC     Contact us     About the website     Site map     email page as link -> mailto:?Subject="TTC: Local Templates"&Body="From the TTC website: Local Templates (https://ttc [period] org [period] nz/Site/LocalTemplates) Add to or override PmWiki's [[PmWiki/page list templates." ]]