Recent Changes - Search:

add Site page

hide

Site


hide

Topics

show

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

A fine day for skiing - Adrian, Jim, and Kevin outside the Prince Hotel East
Photo: Simon
2024-03-03 09.20.51; '2024 Mar 03 09:20'
Original size: 13,448 x 6,966; 17,128 kB; stitch
A fine day for skiing - Adrian, Jim, and Kevin outside the Prince Hotel East

Photo: Simon

Hikage lift
Photo: Simon
2015-02-10 12.24.00; '2015 Feb 10 12:24'
Original size: 5,690 x 2,943; 1,454 kB; stitch
Hikage lift

Photo: Simon

Simon well up the Forbes
Photo: Brian
2020-09-02 09.25.58; '2020 Sept 02 09:25'
Original size: 4,000 x 3,000; 4,926 kB
Simon well up the Forbes

Photo: Brian

The Side Creek The Next Morning
Photo: Philip
2019-01-20 08.55.01; '2019 Jan 20 08:55'
Original size: 4,320 x 2,880; 4,869 kB
The Side Creek The Next Morning

Photo: Philip

Heading from Hut turnoff to the saddle
Photo: Philip
2023-04-19 08.56.23; '2023 Apr 19 08:56'
Original size: 4,320 x 2,880; 5,166 kB
Heading from Hut turnoff to the saddle

Photo: Philip


Photo: Sian
2008-07-15 10.41.14; '2008 Jul 15 10:41'
Original size: 2,304 x 3,072; 2,672 kB
 

Photo: Sian

#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.Code Mirror2024 Apr 28 15:06skiwiPage moved to Test.PmSyntax
Test.Pm Syntax2024 Apr 28 15:06skiwi[deleted] (+0)
Test.Debug Messages2024 Apr 28 08:26skiwi(:messages *debug* details='show':) (+37)
Cookbook.Debug Messages2024 Apr 28 08:16skiwi[deleted] (+393)
Cookbook.Messages Replacement2024 Apr 28 07:48skiwi-> $Debug = true; # results may vary -> $Heading = true; # shows heading level 3 for each group of messages --> default: empty (no details rollup available), values are 'hide' and 'show' (+568)
Test.Pm Wiki Info2024 Apr 27 21:51skiwi[deleted] ---- (:messages:) (+75)
Test.Group Header2024 Apr 27 21:46skiwilayout (+19)
Cookbook.Pm Wiki Info2024 Apr 27 15:19skiwi* home * output example (+476)
Test.Messages Replacement2024 Apr 27 08:47skiwilayout (+98)
Category.Extension2024 Apr 26 12:47  

#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.Code Mirror2024 Apr 28 15:06skiwiPage moved to Test.PmSyntax
Test.Pm Syntax2024 Apr 28 15:06skiwi[deleted] (+0)
Test.Debug Messages2024 Apr 28 08:26skiwi(:messages *debug* details='show':) (+37)
Cookbook.Debug Messages2024 Apr 28 08:16skiwi[deleted] (+393)
Cookbook.Messages Replacement2024 Apr 28 07:48skiwi-> $Debug = true; # results may vary -> $Heading = true; # shows heading level 3 for each group of messages --> default: empty (no details rollup available), values are 'hide' and 'show' (+568)
Test.Pm Wiki Info2024 Apr 27 21:51skiwi[deleted] ---- (:messages:) (+75)
Test.Groupheader2024 Apr 27 21:46skiwilayout (+19)
Cookbook.Pm Wiki Info2024 Apr 27 15:19skiwi* home * output example (+476)
Test.Messages Replacement2024 Apr 27 08:47skiwilayout (+98)
Trips.2024-03-01 Shiga Kōgen And Ōsaka, Day 052024 Apr 26 10:43skiwinew (+1217)

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