#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}]] [- {=$:Summary} -]
[[#defaultend]]
>>smaller<<
(:pagelist group={$Group} fmt=#default list=normal count=7:)
|
|
#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}]] [- {=$:Summary}-]
(:else:)
* [[{=$FullName}|{=$Titlespaced}]] [- {=$:Summary}-] [-- ([[{=$Groupspaced}]])--]
(:ifend:)
[[#pagesend]]
>>smaller<<
(:pagelist group=Site fmt=#pages list=normal count=8:)
|
|
#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:)
Day01-030-Dsc00407-Jrs
Sunset from Coronet Peak
Photo: Simon
Camp at Stag Flat
Photo: Simon
|
#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:)
(:template each:)
Page | Time | By | Change |
Trips.2023-04-16 Moeraki Haast Paringa Cattle Track, Maps | 2024 Apr 18 21:28 | skiwi | (:details :)Driving Christchurch to Fox Glacier; Fox Glacier to Moeraki River Trips/2023-04-16MoerakiHaastParingaCattleTrack,Maps/2023-04-15 nzm driving Chch to Fox Glacier final.gpx Trips/2023-04-16MoerakiHaastParingaCattleTrack,Maps/2023-04-16 nzm driving Fox Glacier to Moeraki river final.gpx (:gpxstat gpx="Trips/2023-04-16MoerakiHaastParingaCattleTrack,Maps/2023-04-16%20nzm%20driving%20Fox%20Glacier%20to%20Moeraki%20river%20final.gpx" display='drive' timezone= :) (+732) |
Trips.2024-03-01 Shiga Kōgen And Ōsaka, Day 06 | 2024 Apr 14 20:47 | skiwi | Site.LocalTemplates,Maps/2024-03-06 nzm Snow Monkeys final.gpx Δ Site.LocalTemplates,Maps/2024-03-06 nzm Yamanoeki to Snow Monkey final.gpx Δ Site.LocalTemplates,Maps/2024-03-06 nzm Snow Monkey to Yamanoeki final.gpx Δ (+2134) |
Site.Local Templates | 2024 Apr 14 20:34 | skiwi | format (+8) |
Cookbook.Debug Messages | 2024 Apr 11 22:30 | skiwi | Prerequisites: PmWiki 2.3.32; PHP 8 (+123) |
Test.TL Question Vars | 2024 Apr 11 21:24 | skiwi | new (+358) |
Te Reo Rangatira.Ko Hea | 2024 Apr 10 21:36 | skiwi | add a few Pāpaka-`-Māui tāone (+128) |
Test.Embed Facebook | 2024 Apr 09 13:20 | skiwi | layout (+1) |
Trips.2013-04-20 Hope-Tutaekuri-Waiheke-Doubtful-Nina | 2024 Apr 08 08:42 | skiwi | layout (+84) |
Trips.2013-04-20 Hope-Tutaekuri-Waiheke-Doubtful-Nina, Day 7 | 2024 Apr 08 08:40 | skiwi | layout (+30) |
Trips.2013-04-20 Hope-Tutaekuri-Waiheke-Doubtful-Nina, Day 5 | 2024 Apr 08 08:39 | skiwi | layout (+30) |
|
#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:)
(:template each:)
|
#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)--] [- {{=$Group}/$:Summary} -]
(:template each:)
(:if ! equal {=$Name} {$DefaultName} :)
-< [[{=$Group}/{=$Name}|{=$Titlespaced}]] [- {=$:Summary} -]
(:ifend:)
[[#sitemapend]]
>>smaller<<
(:pagelist group={$Group} fmt=#sitemap list=normal count=12:)
|
(:template first {=$Group}:)
#{=$Group}
(:template each:)
Site (24 pages) Website configuration
Header Wiki website page header
|
#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}]] [- {=$:Summary}-]
(:else:)
* [[{=$FullName} | {=$Titlespaced}]] [- {=$:Summary}-]
(:ifend:)
[[#titlesummaryend]]
>>smaller<<
(:pagelist group=Site fmt=#titlesummary list=normal count=8:)
|
|