Recent Changes - Search:

add Site page

hide Site

Site


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.4.5

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

Village Inn room
Photo: Simon
2025-02-24 21.19.00; '2025 Feb 24 21:19'
Original size: 12,644 x 8,664; 5,884 kB; stitch
2025-02-24 21.19.00 S20+ Simon - Village Inn room_stitch.jpg
Village Inn room

Photo: Simon

At Minchin Biv
Photo: Simon
2021-03-18 11.46.27; '2021 Mar 18 11:46'
Original size: 4,160 x 2,080; 4,225 kB
2021-03-18 11.46.27 Simon - at Minchin Biv.jpeg
At Minchin Biv

Photo: Simon

View towards our accommodation from Happo-one
Photo: Simon
2015-02-17 08.49.58; '2015 Feb 17 08:49'
Original size: 4,000 x 3,000; 6,060 kB
2015-02-17 08.49.58 P1010678 Simon - view towards our accommodation from Happo-one.jpeg
View towards our accommodation from Happo-one

Photo: Simon

Day05-020-Dsc00447-Jrs
; '2006 Dec 13 09:51'
Original size: 2,048 x 1,536; 795 kB
day05-020-dsc00447-jrs.jpeg
Day05-020-Dsc00447-Jrs
Anne at Dormy Inn breakfast
Photo: Simon
2017-01-11 09.01.06; '2017 Jan 11 09:01'
Original size: 3,456 x 4,608; 5,333 kB
2017-01-11 09.01.06 P1010182 Simon - Anne at Dormy Inn breakfast.jpeg
Anne at Dormy Inn breakfast

Photo: Simon

Adrian at the Ace Family Pair Lift ready for his first run
Photo: Simon
2016-02-23 09.42.22; '2016 Feb 23 09:42'
Original size: 4,608 x 3,456; 6,045 kB
2016-02-23 09.42.22 P1000406 Simon - Adrian at the Ace Family Pair Lift ready for his first run.jpeg
Adrian at the Ace Family Pair Lift ready for his first run

Photo: Simon

Hurunui River flats down to the head of Hokakura
Photo: Alan
2022-08-04 09.08.35; '2022 Aug 04 09:08'
Original size: 3,648 x 2,392; 2,459 kB; cr
2022-08-04 09.08.35 DSC02911 Alan -  Hurunui River flats down to the head of Hokakura_cr.jpeg
Hurunui River flats down to the head of Hokakura

Photo: Alan

#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
Kidz.Tramping List2025 Jul 01 22:26skiwi* pack, pack liner, pack cover, closed cell foam mat * first aid kit (bandaids, small roll of leucoplast, paracetamol) * socks, hut footwear (eg something that can be worn with socks on, crocs, light sandals, boat shoes) (-164)
Category.Tramp2025 Jul 01 21:39  
Recipes.Icecream Cake2025 Jun 28 20:22Adrian?400g marshmallows (optional) Adrian isn't a fan (+19)
Recipes.Ambrosia2025 Jun 28 20:20Adrian?[deleted] (+0)
Songbook.Te Aroha2025 Jun 14 14:05skiwi* Taringa Ep 300 (@ wā 36:40) (-1)
Songbook.Nei Rā Te Kaupapa2025 Jun 13 11:08skiwititle (+33)
Songbook.E Minaka Ana2025 Jun 13 10:35skiwiadd links (+145)
Te Reo Rangatira.Ako Ana I Te Reo Maori2025 May 22 21:14skiwi* Te Aka Māori dictionary (+105)
Te Reo Rangatira.Rauemi Ipurangi2025 May 22 21:13skiwilayout (+7)
Pm Wiki.Links2025 May 16 03:59Petkomake a link that prompts the user to download (+316)

#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.Recent Uploads2025 Jul 10 19:34  
Kidz.Tramping List2025 Jul 01 22:26skiwi* pack, pack liner, pack cover, closed cell foam mat * first aid kit (bandaids, small roll of leucoplast, paracetamol) * socks, hut footwear (eg something that can be worn with socks on, crocs, light sandals, boat shoes) (-164)
Kidz.Recent Uploads2025 Jul 01 21:55  
Recipes.Icecream Cake2025 Jun 28 20:22Adrian?400g marshmallows (optional) Adrian isn't a fan (+19)
Recipes.Ambrosia2025 Jun 28 20:20Adrian?[deleted] (+0)
Songbook.Te Aroha2025 Jun 14 14:05skiwi* Taringa Ep 300 (@ wā 36:40) (-1)
Songbook.Nei Rā Te Kaupapa2025 Jun 13 11:08skiwititle (+33)
Songbook.E Minaka Ana2025 Jun 13 10:35skiwiadd links (+145)
Te Reo Rangatira.Ako Ana I Te Reo Maori2025 May 22 21:14skiwi* Te Aka Māori dictionary (+105)
Te Reo Rangatira.Rauemi Ipurangi2025 May 22 21:13skiwilayout (+7)

#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=