Recent Changes - Search:

add Site page

hide Site

Site


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.4.0

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}:)
(:if equal "{=$Title}" "Home Page":)
* [[{=$Group}/ | {=$Groupspaced}]]
(:else:)
* [[{=$Group}/ | {=$Titlespaced}]]
(:ifend:)
[[#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:)-]
(:if equal "{*$FullName}" "{=$FullName}":)
%wikitrail%[[ {<$FullName} | {<$Titlespaced} ]] < '*[[{$$trail}]]*' > [[{>$FullName} | {>$Titlespaced} ]]
(:ifend:)
[[#grouptrailend]]
>>smaller<<

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

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

#pages

A simple bullet list of page title and summary.

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

(:pagelist group=Site 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:)
(:if false:)-< [-- *'{*$FullName}' ='{=$FullName}' --](:ifend:)
(:if equal "{*$FullName}" "{=$FullName}":)
%wikitrail%[[{<$FullName} | {<$Titlespaced}]] < '*[[{$$TrailPage}]]*' > [[{>$FullName}| {>$Titlespaced}]]
(:ifend:)
[[#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:)

#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:)

Lake Wanaka snowing
Photo: Simon
2020-08-07 09.01.16; '2020 Aug 07 09:01'
Original size: 4,160 x 1,859; 2,337 kB; cr
2020-08-07 09.01.16_HDR LG6 Simon - Lake Wanaka snowing_cr.jpg
Lake Wanaka snowing

Photo: Simon

View from Hotel Richemond room
Photo: Simon
2018-01-21 12.26.24; '2018 Jan 21 12:26'
Original size: 4,160 x 3,120; 3,797 kB
2018-01-21 12.26.24_HDR LG6 Simon - view from Hotel Richemond room.jpeg
View from Hotel Richemond room

Photo: Simon

Tokyo - Shinkansen Asama to Nagano - Simon
Photo: Jim
2015-02-08 10.40.04; '2015 Feb 08 10:40'
Original size: 5,312 x 2,988; 3,375 kB
2015-02-08 10.40.04 Jim - Tokyo - Shinkansen Asama to Nagano - Simon.jpeg
Tokyo - Shinkansen Asama to Nagano - Simon

Photo: Jim

Maclaren footbridge at Tekapo
Photo: Philip
2024-09-28 14.45.20; '2024 Sept 28 14:45'
Original size: 6,029 x 3,881; 3,964 kB; cr
2024-09-28 14.45.20 IMG_20240928_144520 Philip - Maclaren footbridge at Tekapo_cr.jpg
Maclaren footbridge at Tekapo

Photo: Philip

Jigoku Valley Snow Monkeys - Jigokudani Spa
Photo: Jim
2015-02-13 11.18.28; '2015 Feb 13 11:18'
Original size: 5,312 x 2,988; 6,604 kB
2015-02-13 11.18.28 Jim - Jigoku Valley Snow Monkeys - Jigokudani Spa.jpeg
Jigoku Valley Snow Monkeys - Jigokudani Spa

Photo: Jim

#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
Test Extensions.Pm Wiki Info2025 Jan 21 15:03skiwi(:div73end:) (+11)
Pm Wiki.Upgrades2025 Jan 20 04:25Petko(+12)
Pm Wiki.Security Variables2025 Jan 20 01:26Petko$PmCryptAlgo, $RehashedPassword (+480)
Pm Wiki.Layout Variables2025 Jan 20 00:48Petko$HTMLHeader1Fmt (-4)
Trips.2009-09-01 Skiing2025 Jan 19 09:26skiwi2009-08-29 08.31.44 P1000235 Simon.jpeg | Oxford 2009-08-29 10.42.33 P1000236 Simon.jpeg | First day, Mt Hutt 2009-08-30 11.26.55 P1000249 Simon.jpeg | Porters, you can't see the wind 2009-08-31 09.13.45 P1000255 Simon.jpeg | Accommodation at Geraldine 2009-08-31 11.40.06 P1000256 Simon.jpeg | Mt Dobson, can you see the wind? 2009-09-02 11.56.14 P1000258 Simon.jpeg | Treble Cone with 30cm new snow 2009-09-02 12.45.24 P1000270 Simon.jpeg | Aspiring National Park 2009-09-03 15.30.44 P1000290 Simon.jpeg | Looking at Matukituki Valley 2009-09-04 10.29.48 P1000291 Simon.jpeg | Cardrona base 2009-09-05 08.43.40 P1000316 Simon.jpeg | Kurow town centre (+37)
Pm Wiki.Basic Variables2025 Jan 19 07:12Petko$PagePathResolveFmt (+655)
Category.Skiing2025 Jan 18 22:22  
Category.Tramping2025 Jan 18 22:22  
Trips.Template2025 Jan 18 22:22skiwiadd category (+49)
Pm Wiki.Conditional Markup2025 Jan 18 14:27simon?add match example (+0)

#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
Test Extensions.Pm Wiki Info2025 Jan 21 15:03skiwi(:div73end:) (+11)
Category.Workpage?2025 Jan 22 21:12  
Trips.2009-09-01 Skiing2025 Jan 19 09:26skiwi2009-08-29 08.31.44 P1000235 Simon.jpeg | Oxford 2009-08-29 10.42.33 P1000236 Simon.jpeg | First day, Mt Hutt 2009-08-30 11.26.55 P1000249 Simon.jpeg | Porters, you can't see the wind 2009-08-31 09.13.45 P1000255 Simon.jpeg | Accommodation at Geraldine 2009-08-31 11.40.06 P1000256 Simon.jpeg | Mt Dobson, can you see the wind? 2009-09-02 11.56.14 P1000258 Simon.jpeg | Treble Cone with 30cm new snow 2009-09-02 12.45.24 P1000270 Simon.jpeg | Aspiring National Park 2009-09-03 15.30.44 P1000290 Simon.jpeg | Looking at Matukituki Valley 2009-09-04 10.29.48 P1000291 Simon.jpeg | Cardrona base 2009-09-05 08.43.40 P1000316 Simon.jpeg | Kurow town centre (+37)
Trips.Template2025 Jan 18 22:22skiwiadd category (+49)
Songbook.Side Bar2025 Jan 14 08:51skiwiadd quotes (+2)
Trips.2019-11-09 Rakiura Southern Circuit, Maps2025 Jan 08 15:36skiwiheights (+0)
Trips.2006-12-Stewart Island2025 Jan 08 15:27skiwihttps (+26)
Test.Total Counter2025 Jan 07 14:49skiwi
(+18)
Administration.Extensions2024 Dec 26 15:20skiwihttps (-192)
Te Reo Rangatira.Waiata2024 Dec 24 19:47skiwiredirect (+37)

#simplename

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

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

(:pagelist group=Site 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=Site 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:)
(:if ! equal {=$Name} {$DefaultName} :)
-< [[{=$Group}/{=$Name}|{=$Titlespaced}]] [-&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:)

{=$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]]
(:if equal "{=$Title}" "Home Page":)
[[{=$FullName} | {=$Groupspaced}]]
(:else:)
[[{=$FullName} | {=$Titlespaced}]]
(:ifend:)
[[#titlenameend]]
>>smaller<<

(:pagelist group=Site 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=Site fmt=#titlespaced list=normal count=8:)

#titlesummary

A simple bullet list of page title and summary.

>>comment<<
[[#titlesummary]]
(: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 each:)

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

tahi Page last modified on 2024 Jun 03 09:14

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