Recent Changes - Search:

add Site page

hide Site

Site


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.3.33

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 first {=$Group}:)
* [[{=$Groupspaced}/]]
[[#groupspacedend]]
>><<

(:pagelist name={$DefaultName} fmt=#groupspaced list=normal count=7:)

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

Hakuba view from Han-no-ki course
Photo: Simon
2015-02-16 09.40.15; '2015 Feb 16 09:40'
Original size: 4,000 x 3,000; 5,035 kB
Hakuba view from Han-no-ki course

Photo: Simon

View from Yurikamome train, no driver
Photo: Anne
2017-01-13 14.53.12; '2017 Jan 13 14:53'
Original size: 3,456 x 4,608; 4,438 kB
View from Yurikamome train, no driver

Photo: Anne

Norikura vista stitch
Photo: Simon
2015-02-14 12.03.00; '2015 Feb 14 12:03'
Original size: 9,972 x 2,723; 3,595 kB
Norikura vista stitch

Photo: Simon

Kiwi Road carpark start of Wakamarina Track
Photo: Brian
2017-12-02 08.57.22; '2017 Dec 02 08:57'
Original size: 4,000 x 3,000; 5,014 kB
Kiwi Road carpark start of Wakamarina Track

Photo: Brian

Palmer Hut from hill above
Photo: Brian
2013-11-16 16.51.11; '2013 Nov 16 16:51'
Original size: 2,304 x 3,072; 1,263 kB
Palmer Hut from hill above

Photo: Brian

Day02-010-Dsc00418-Jrs
Photo: Match: None #^(adrian|alan|anne|brian|bruce|jim|mike|philip|paul Bagshaw|pc|siân|sian|simon|susie)[\s-]+#i
match: none /^([12][0-9]{3}[-]?[01][0-9][-]?[0-3][0-9])[\s_]+/ match: none /^([012][0-9][.]?[0-5][0-9][.]?[0-5][0-9])(?:_HDR|-PANO|-EFFECTS|_Burst[\d]{1,3})?[\s]+/
Original size: 1,536 x 2,048; 650 kB
Day02-010-Dsc00418-Jrs

Photo: Match: None #^(adrian|alan|anne|brian|bruce|jim|mike|philip|paul Bagshaw|pc|siân|sian|simon|susie)[\s-]+#i

Granlibakken Road intersection with West Lake Boulevard CA 89
Photo: Jim
2019-02-26 09.30.21; '2019 Feb 26 09:30'
Original size: 4,032 x 3,024; 2,758 kB
Granlibakken Road intersection with West Lake Boulevard CA 89

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
Trips.Day Template2024 May 12 17:32skiwidate display (+27)
Trips.2024-03-01 Shiga Kōgen And Ōsaka, Day 072024 May 12 17:29skiwinew (+1123)
Test.NZ Do C-Huts2024 May 11 15:25skiwi!! Hideaway Hut !!! Winchcombe Biv detail !!! Hideaway Hut detail !!! Frew Hut detail (+98)
Test.Attachments2024 May 08 20:30skiwiadd caption (+66)
Test.Attachlist Enhanced2024 May 08 20:27skiwiadd markup directive (+50)
Test.Testtest2024 May 08 20:23skiwi[deleted] (:markup caption="example":) (:markupend:) ---- !! Messages
(+0)
Test.TL Question Vars2024 May 07 17:24skiwi[deleted] (+231)
Songbook.Te Hokowhitu Toa2024 May 07 12:33skiwinew (+1539)
Te Reo Rangatira.Rauemi Ipurangi2024 May 07 11:11skiwilink to waiata (+22)
Cookbook.Messages Replacement2024 May 07 10:09skiwi* $MessagesFmt ['sourcename'] = $string; # concatenated lines * $MessagesFmt ['sourcename'][] = $string; # multiple lines (+426)

#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.Day Template2024 May 12 17:32skiwidate display (+27)
Trips.2024-03-01 Shiga Kōgen And Ōsaka, Day 072024 May 12 17:29skiwinew (+1123)
Test.NZ Do C-Huts2024 May 11 15:25skiwi!! Hideaway Hut !!! Winchcombe Biv detail !!! Hideaway Hut detail !!! Frew Hut detail (+98)
Test.Attachments2024 May 08 20:30skiwiadd caption (+66)
Test.Attachlist Enhanced2024 May 08 20:27skiwiadd markup directive (+50)
Test.Testtest2024 May 08 20:23skiwi[deleted] (:markup caption="example":) (:markupend:) ---- !! Messages
(+0)
Test.TL Question Vars2024 May 07 17:24skiwi[deleted] (+231)
Songbook.Te Hokowhitu Toa2024 May 07 12:33skiwinew (+1539)
Te Reo Rangatira.Rauemi Ipurangi2024 May 07 11:11skiwilink to waiata (+22)
Cookbook.Messages Replacement2024 May 07 10:09skiwi* $MessagesFmt ['sourcename'] = $string; # concatenated lines * $MessagesFmt ['sourcename'][] = $string; # multiple lines (+426)

#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 Apr 14 20:34

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