Recent Changes - Search:

add Site page

hide Site

Site


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.4.3

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 first {=$Group}:)

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

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

(:template first {=$Group}:)

{=$Groupspaced}? /

(:template each:)

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

Site /
Aotearoa  Site wide PmWiki:page text variables
Auth Form  
Auth User  
Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Header  Wiki website page header

#groupspaced

A bullet list of groups (will not work with count=...).

>>comment<<
[[#groupspaced]]
(:template default order=title name={$DefaultName}:)
(:template first {=$Group}:)
(:if09 equal "{=$Title}" "Home Page":)
* [[{=$Group}/ | {=$Groupspaced}]]
(:else09:)
* [[{=$Group}/ | {=$Titlespaced}]]
(:if09end:)
[[#groupspacedend]]
>><<

(:pagelist fmt=#groupspaced list=normal count=16:)

(:template default order=title name=HomePage:) (:template first {=$Group}:)

#grouptrail

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

>>comment<<
[[#grouptrail]]
(:template default wrap=inline trail="{*$Groupspaced}" :)
(:template first:)
%comment%** [-"{$$trail}" '''{*$FullName}'''-]
(:template each:)
%comment%-> [-- {=$FullName} --] (:if equal "{*$FullName}" "{=$FullName}":)✓(:ifend:) [-(:if ontrail {$$trail} {=$FullName}:)''ontrail''(:ifend:)-]
(:if09 equal "{*$FullName}" "{=$FullName}":)
%wikitrail%[[ {<$FullName} | {<$Titlespaced} ]] < '*[[{$$trail}]]*' > [[{>$FullName} | {>$Titlespaced} ]]
(:if09end:)
(:template none:)
%wikitrail%#grouptrail: group={$$group} name={$$name} trail={$$trail}
[[#grouptrailend]]
>>smaller<<

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

(:template default wrap=inline trail="Site" :) (:template first:) ** "{$$trail}" Site.LocalTemplates (:template each:) -> {=$FullName} (:template none:) #grouptrail: group={$$group} name={$$name} trail={$$trail}

#grouptrail: group=Site name= trail=Site

#pages

A simple bullet list of page title and summary.

>>comment<<
[[#pages]]
(:template each:)
(:if09 equal "{=$Title}" "Home Page":)
* [[{=$FullName}|{=$Groupspaced}]] [-&nbsp;{=$:Summary}-]
(:else09:)
* [[{=$FullName}|{=$Titlespaced}]] [-&nbsp;{=$:Summary}-] [--&nbsp;([[{=$Groupspaced}]])--]
(:if09end:)
[[#pagesend]]
>>smaller<<

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

(: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 default wrap=inline TrailPage="{*$Groupspaced}" name=-HomePage,-RecentChanges,-RecentUploads,-SideBar,-*Template*,-GroupHeader,-GroupFooter,-GroupAttributes:)
(:template each:)
(:if00 false:)-< [-- *'{*$FullName}' ='{=$FullName}' --](:if00end:)
(:if09 equal "{*$FullName}" "{=$FullName}":)
%wikitrail%[[{<$FullName} | {<$Titlespaced}]] < '*[[{$$TrailPage}]]*' > [[{>$FullName}| {>$Titlespaced}]]
(:if09end:)
(:template none:)
%wikitrail%pagetrail: group={$$group} name={$$name} trail={$$trail} TrailPage={$$TrailPage}
[[#pagetrailend]]
>>smaller<<

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

(:template default wrap=inline TrailPage="Site" name=-HomePage,-RecentChanges,-RecentUploads,-SideBar,-*Template*,-GroupHeader,-GroupFooter,-GroupAttributes:) (:template each:) (:template none:) pagetrail: group={$$group} name={$$name} trail={$$trail} TrailPage={$$TrailPage}

#randomimage

display a random image

>>comment<<
[[#randomimage]]
(:template default order=random count=1 group=Trips if="attachments" list=normal:)
(:template each:)
(:thumblist captionfmt='?x_kwcaption' titlefmt='?x_kwtitle' {=$FullName} px={$$px} link=2 order=random count=1 skip="*.png|*.gif":)
[[#randomimageend]]
>><<

(:pagelist fmt=#randomimage list=normal count=8 px=128:)

(:template default order=random count=1 group=Trips if="attachments" list=normal:) (:template each:)

Jim at top of Silver Star lift
Photo: Simon
2020-03-02 10.01.22; '2020 Mar 02 10:01'
Original size: 4,608 x 3,456; 6,483 kB
2020-03-02 10.01.22 P1030070 Simon - Jim at top of Silver Star lift.jpeg
Jim at top of Silver Star lift

Photo: Simon

Jim in Rue du Mont-Blanc
Photo: Simon
2018-01-19 15.50.33; '2018 Jan 19 15:50'
Original size: 3,859 x 2,895; 3,359 kB; cr
2018-01-19 15.50.33_HDR LG6 Simon - Jim in Rue du Mont-Blanc_cr.jpg
Jim in Rue du Mont-Blanc

Photo: Simon

At Ferry
Photo: Simon
2011-01-22 07.41.13; '2011 Jan 22 07:41'
Original size: 4,000 x 3,000; 5,567 kB
2011-01-22 07.41.13 P1010921 Simon at ferry.jpeg
At Ferry

Photo: Simon

Cathye fixing Sian'sfinger
Photo: Simon
2011-01-27 10.15.33; '2011 Jan 27 10:15'
Original size: 4,000 x 3,000; 5,629 kB
2011-01-27 10.15.33 P1020067 Simon Cathye fixing Sian'sfinger.jpeg
Cathye fixing Sian'sfinger

Photo: Simon

Simon
2008-04-25 10.56.13; '2008 Apr 25 10:56'
Original size: 2,304 x 3,072; 2,927 kB
2008-04-25 10.56.13 P4250990 Simon.jpeg
Simon
Otamatapaio Hut
Photo: Simon
2024-10-03 07.44.21; '2024 Oct 03 07:44'
Original size: 12,540 x 6,138; 11,196 kB; stitch
2024-10-03 07.44.21 S20+ Simon - Otamatapaio Hut_stitch.jpg
Otamatapaio Hut

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]]
>><<

(:pagelist fmt=#recentchanges count=10:)

(: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
Trips.2025-02-24 Washington, Maps2025 Apr 03 21:38skiwi(:details :)Driving Crystal Mountain to White Pass (:details :)Driving White Pass to Ashford /2025-02-28 nzm White Pass to Ashford day 1 final.gpx Δ (:gpxstat gpx="/2025-02-28 nzm White Pass to Ashford day 1 final.gpx" display='drive' timezone=PST :) (:detailsend:) (:details :)Driving Ashford to Seattle /2025-03-02 nzm Ashford to Seattle final.gpx Δ (:gpxstat gpx="/2025-03-02 nzm Ashford to Seattle final.gpx" display='drive' timezone=PST :) (+2877)
Songbook.Nei Rā Te Kaupapa2025 Apr 02 14:20skiwiHere is the matter of the Māori language A treasure handed down from the ancestors It is a thing of greatest significance So as not to be like the Moa (extinct) (+122)
Trips.2025-02-24 Washington, Day 022025 Apr 02 07:08skiwinew (+1126)
Trips.2025-02-24 Washington2025 Apr 01 18:18skiwi(:div99999end:) ---- !! Wednesday 26 Feb? 2025, day 03 (:div99999end:) ---- !! Thursday 27 Feb? 2025, day 04 (+391)
Kidz.Morison Bush, 20152025 Apr 01 08:41skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20142025 Apr 01 08:40skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20132025 Apr 01 08:39skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20122025 Apr 01 08:38skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20112025 Apr 01 08:38skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20102025 Apr 01 08:37skiwi! Morison Bush? camping (+151)

#recentlychanged

>>comment<<
[[#recentlychanged]]
(:template defaults trail=Site.AllRecentChanges:)
(: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} ||
[[#recentlychangedend]]
>><<

(:pagelist fmt=#recentlychanged count=10:)

(:template defaults trail=Site.AllRecentChanges:) (:template first:)

PageTimeByChange

(:template each:)

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

PageTimeByChange
Trips.2025-02-24 Washington, Maps2025 Apr 03 21:38skiwi(:details :)Driving Crystal Mountain to White Pass (:details :)Driving White Pass to Ashford /2025-02-28 nzm White Pass to Ashford day 1 final.gpx Δ (:gpxstat gpx="/2025-02-28 nzm White Pass to Ashford day 1 final.gpx" display='drive' timezone=PST :) (:detailsend:) (:details :)Driving Ashford to Seattle /2025-03-02 nzm Ashford to Seattle final.gpx Δ (:gpxstat gpx="/2025-03-02 nzm Ashford to Seattle final.gpx" display='drive' timezone=PST :) (+2877)
Trips.Recent Uploads2025 Apr 03 21:36  
Kidz.Recent Uploads2025 Apr 02 17:31  
Songbook.Nei Rā Te Kaupapa2025 Apr 02 14:20skiwiHere is the matter of the Māori language A treasure handed down from the ancestors It is a thing of greatest significance So as not to be like the Moa (extinct) (+122)
Trips.2025-02-24 Washington, Day 022025 Apr 02 07:08skiwinew (+1126)
Trips.2025-02-24 Washington2025 Apr 01 18:18skiwi(:div99999end:) ---- !! Wednesday 26 Feb? 2025, day 03 (:div99999end:) ---- !! Thursday 27 Feb? 2025, day 04 (+391)
Kidz.Morison Bush, 20152025 Apr 01 08:41skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20142025 Apr 01 08:40skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20132025 Apr 01 08:39skiwi! Morison Bush? camping (+156)
Kidz.Morison Bush, 20122025 Apr 01 08:38skiwi! Morison Bush? camping (+156)

#simplename

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

>>comment<<
[[#simplename]]
* [[({=$Group}/){=$Namespaced}]]
[[#simplenameend]]
>>smaller<<

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

#simpletitle

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

>>comment<<
[[#simpletitle]]
* [[{=$Group}/{=$Name} | {=$Titlespaced}]]
[[#simpletitleend]]
>>smaller<<

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

#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:)
(:if09 ! equal {=$Name} {$DefaultName} :)
-< [[{=$Group}/{=$Name}|{=$Titlespaced}]] [-&nbsp;{=$:Summary} -]
(:if09end:)
[[#sitemapend]]
>>smaller<<

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

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

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

(:template each:)

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

Site (24 pages)  Website configuration

Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Header  Wiki website page header
Image Template  Thumblist image template
Inter Map  InterMap link definition to other wikis, directories, and protocols
Old Website configuration  Website configuration

#titlename

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

>>comment<<
[[#titlename]]
(:if09 equal "{=$Title}" "Home Page":)
[[{=$FullName} | {=$Groupspaced}]]
(:else09:)
[[{=$FullName} | {=$Titlespaced}]]
(:if09end:)
[[#titlenameend]]
>>smaller<<

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

#titlespaced

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

>>comment<<
[[#titlespaced]]
-< [[{=$FullName} | {=$Titlespaced}]]
[[#titlespacedend]]
>>smaller<<

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

#titlesummary

A simple bullet list of page title and summary.

>>comment<<
[[#titlesummary]]
(:template each:)
(:if09 equal "{=$Title}" "Home Page":)
* [[{=$FullName} | {=$Groupspaced}]] [-&nbsp;{=$:Summary}-]
(:else09:)
* [[{=$FullName} | {=$Titlespaced}]] [-&nbsp;{=$:Summary}-]
(:if09end:)
[[#titlesummaryend]]
>>smaller<<

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

(:template each:)

Based on original at https://kiwiwiki.nz/pmwiki/pmwiki.php/Administration/ Please make changes to the original

tahi Page last modified on 2025 Jan 28 12:52

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Local Templates"&Body=