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}

Chas Shaw
Original size: 1,328 x 1,984; 414 kB
Filename: '15 Chas Shaw' 
 1978-12-25-Aspiring National Park
2
Photo: '2024 Jul 07 11:40'
Original size: 1,515 x 838; 531 kB
Filename: '2' 
 1978-12-25-Aspiring National Park
Hugh Barr leading
Photo: '2024 May 12 15:12'
Original size: 1,259 x 872; 262 kB
Filename: '7 Hugh Barr leading' 
 1978-12-25-Aspiring National Park
Late afternoon return to French Hut
Photo: '2024 Jul 07 11:37'
Original size: 1,744 x 950; 403 kB
Filename: '12 Late afternoon return to French Hut' 
 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 J And C And Muddy Feet
Photo: '-0001 Dec 30 00:00'
Original size: 640 x 480; 58 kB
Filename: 'cwb_j_and_c_and_muddy_feet' 
 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 010
Original size: 1,024 x 1,536; 1,060 kB
Filename: 'aa_0_010' 
 2004-01-16-Whanganui River-Family
Aa  0 009
Original size: 1,536 x 1,024; 978 kB
Filename: 'aa_0_009' 
 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
Bush 1
Original size: 293 x 205; 14 kB
Filename: 'bush1' 
 2005-And Earlier
Ski learn small
Original size: 200 x 130; 3 kB
Filename: 'Ski_learn_small' 
 2005-And Earlier
Bike Otago Big
Original size: 707 x 474; 92 kB
Filename: 'bike_otago_big' 
 2005-And Earlier
F Hut 2
Original size: 600 x 450; 65 kB
Filename: 'f_hut2' 
 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-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
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
2006-10-Cobb Trip
Photos from the Cobb Valley and Tablelands
-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
-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
-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
-Collapsing Camp
2006-12-03 
Original size: 1,536 x 1,024; 639 kB
Filename: '2006-12-03-collapsing camp' 
 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.2014-08-23Somnus"; group="photos"; name=""; thumbname=""; thumbskip="*.gif|*.png|*_omit*"; order="random"; order2="name"; count="8"; thumbcount="1"

image mouse over tip
A IMG 0254
image mouse over tip
High
image mouse over tip
Near Gridiron shelter Warren White, Jenny Mason, John Dement, Lynne White

Photo: Janette

image mouse over tip
Bridge to Nowhere 014
image mouse over tip
A 00
image mouse over tip
-New Elder Hut
image mouse over tip
02 IMG 2351

#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." ]]