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

Boyle River Education Lodge
Photo: Philip
2013-04-20 15.54.08; '2013 Apr 20 15:54'
Original size: 4,320 x 3,240; 5,789 kB
2013-04-20 15.54.08 P1020003 Philip - Boyle River Education Lodge.jpeg
Boyle River Education Lodge

Photo: Philip

View from Lichenhearth, base village
Photo: Simon
2014-02-01 07.43.26; '2014 Feb 01 07:43'
Original size: 4,000 x 3,000; 4,578 kB
2014-02-01 07.43.26 P1000272 Simon - view from Lichenhearth, base village.jpeg
View from Lichenhearth, base village

Photo: Simon

Kane-no-naru-oka # 2 and Skyliner IV
Photo: Simon
2015-02-15 12.59.16; '2015 Feb 15 12:59'
Original size: 4,000 x 3,000; 3,703 kB
2015-02-15 12.59.16 P1010586 Simon - Kane-no-naru-oka #2 and Skyliner IV.jpeg
Kane-no-naru-oka # 2 and Skyliner IV

Photo: Simon

Jim on lower Monte Wolfe
Photo: Simon
2019-03-05 09.49.43; '2019 Mar 05 09:49'
Original size: 6,907 x 3,000; 19,072 kB; stitch
2019-03-05 09.49.43 Panorama Simon - Jim on lower Monte Wolfe_stitch.jpg
Jim on lower Monte Wolfe

Photo: Simon

Post Office Bay
Photo: Brian
2019-11-16 09.39.37; '2019 Nov 16 09:39'
Original size: 4,000 x 3,000; 4,810 kB
2019-11-16 09.39.37 P1020078 Brian - Post Office Bay.jpeg
Post Office Bay

Photo: Brian

Looking up Māori River
Photo: Philip
2023-04-20 16.00.39; '2023 Apr 20 16:00'
Original size: 4,320 x 2,880; 4,722 kB
2023-04-20 16.00.39 P1070158 Philip - looking up Māori River.jpeg
Looking up Māori River

Photo: Philip

#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
Te Reo Rangatira.Tūpātai2025 Apr 23 21:03skiwitēhea (-33)
Te Reo Rangatira.Te Wā2025 Apr 23 09:52skiwi(:table:) (:cellnr colspan="3":) !!! Ngā rā o te wiki (:cell:) !!! Days (:cellnr:)Rāhina (:cell:)Manei (:cell:)Monday (:cell:)Hi (:cellnr:)Rātu (+255)
Trips.2025-02-24 Washington, Day 022025 Apr 19 16:33skiwi(:gpxstat gpx="/2025-02-25 nzm Crystal Mountain day 1 skiing final.gpx" display='ski' timezone=PST :) (+3)
Trips.2025-02-24 Washington, Day 032025 Apr 19 15:52skiwi(:details :)Ski Crystal Mountain day 2 /2025-02-26 nzm Crystal Mountain day 2 skiing final.gpx Δ (:gpxstat gpx="/2025-02-26 nzm Crystal Mountain day 2 skiing final.gpx" display='ski' timezone= :) (+25)
Songbook.Te Hokinga Mai2025 Apr 18 21:44skiwi{ci:Kaea} [D]Rapu ana i te [A]ara tika mō [G]tātou ka[D]toa (+63)
Kidz.Morison Bush, 20172025 Apr 17 16:58skiwinew (+449)
Trips.2025-02-24 Washington2025 Apr 15 18:13skiwi(-72)
Trips.2025-02-24 Washington, Day 012025 Apr 15 17:50skiwi
* gallery Δ

(:div99999end:) (-797) ||

Trips.2025-02-24 Washington, Day 122025 Apr 15 12:22skiwi(:details class="rfloat nfloat" :)Snoqualmie Summit Central and West trail map (:div99999 :) (:details class="rfloat nfloat" :)Snoqualmie Summit East trail map (:detailsend:) >>rfloat<< (:details :)Ski Summit at Snoqualmie day 3 (+781)
Trips.2025-02-24 Washington, Day 102025 Apr 15 12:19skiwi(+540)

#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
Te Reo Rangatira.Tūpātai2025 Apr 23 21:03skiwitēhea (-33)
Te Reo Rangatira.Te Wā2025 Apr 23 09:52skiwi(:table:) (:cellnr colspan="3":) !!! Ngā rā o te wiki (:cell:) !!! Days (:cellnr:)Rāhina (:cell:)Manei (:cell:)Monday (:cell:)Hi (:cellnr:)Rātu (+255)
Trips.2025-02-24 Washington, Day 022025 Apr 19 16:33skiwi(:gpxstat gpx="/2025-02-25 nzm Crystal Mountain day 1 skiing final.gpx" display='ski' timezone=PST :) (+3)
Trips.2025-02-24 Washington, Day 032025 Apr 19 15:52skiwi(:details :)Ski Crystal Mountain day 2 /2025-02-26 nzm Crystal Mountain day 2 skiing final.gpx Δ (:gpxstat gpx="/2025-02-26 nzm Crystal Mountain day 2 skiing final.gpx" display='ski' timezone= :) (+25)
Songbook.Te Hokinga Mai2025 Apr 18 21:44skiwi{ci:Kaea} [D]Rapu ana i te [A]ara tika mō [G]tātou ka[D]toa (+63)
Kidz.Morison Bush, 20172025 Apr 17 16:58skiwinew (+449)
Kidz.Recent Uploads2025 Apr 17 16:39  
Trips.2025-02-24 Washington2025 Apr 15 18:13skiwi(-72)
Trips.Recent Uploads2025 Apr 15 17:51  
Trips.2025-02-24 Washington, Day 012025 Apr 15 17:50skiwi
* gallery Δ

(:div99999end:) (-797) ||

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