TTC Home Introduction to TTCTTC ActivitiesTTC Club NightTTC Fixture CardFacilitiesTTC ContactsPictures
What's NewClub HutsHow to Join TTCTTC Trip ReportsTTC PublicationsSite Links
TTC email contacts
Recent Changes - Search:
Site /

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 /
All Group Header  
Auth Form  
Auth User  
Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Image Template  Thumblist image template

#grouptrail

Use the parameter TrailPage 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
TrailPage={*$Groupspaced} :)
(:template each:)
%comment%-< [-- {*$FullName}
{=$FullName} --]
(:if equal {*$FullName} {=$FullName}:)
%wikitrail%[[ {<$FullName} |
{<$Namespaced} ]] |
[[{$$TrailPage}]] | [[{>$FullName}|
{>$Namespaced} ]]
(:ifend:)
[[#grouptrailend]]
>>smaller<<

(:pagelist group={*$Group}
fmt=#grouptrail:)

(:template default wrap=inline TrailPage=Site :) (:template each:) -< Site.LocalTemplates {=$FullName}

-< Site.LocalTemplates Site.AllGroupHeader -< Site.LocalTemplates Site.AllRecentChanges -< Site.LocalTemplates Site.AuthForm -< Site.LocalTemplates Site.AuthUser -< Site.LocalTemplates Site.EditForm -< Site.LocalTemplates Site.EditQuickReference -< Site.LocalTemplates Site.Footer -< Site.LocalTemplates Site.GroupAttributes -< Site.LocalTemplates Site.ImageTemplate -< Site.LocalTemplates Site.InterMap -< Site.LocalTemplates Site.LastChanged -< Site.LocalTemplates Site.LocalTemplates Last Changed | Site | Other -< Site.LocalTemplates Site.Other -< Site.LocalTemplates Site.PageActions -< Site.LocalTemplates Site.PageListTemplates -< Site.LocalTemplates Site.PageNotFound -< Site.LocalTemplates Site.Preferences -< Site.LocalTemplates Site.RecentChanges -< Site.LocalTemplates Site.Search -< Site.LocalTemplates Site.SideBar -< Site.LocalTemplates Site.Site -< Site.LocalTemplates Site.TTCPageListTemplates -< Site.LocalTemplates Site.UploadQuickReference

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

#randomimage

Select an image randomly from all pages with images and display

>>comment<<
[[#randomimage]]
(:template default order=random count=1
if="attachments" skip="*.gif|*.png"
list=normal:)
(:template each:)
(:thumblist {=$FullName} skip={$$skip}
px={$$px} link=2 order=random count=1:)
[[#randomimageend]]
>><<

(:pagelist fmt=#randomimage list=normal
count=8 px=128:)

(:template default order=random count=1 if="attachments" skip="*.gif|*.png" list=normal:) (:template each:)

Yea1.jpg: 1072x1012, 362k (2012 Mar 22 14:42)

#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]]
>>smaller<<

(:pagelist group={*$Group}
fmt=#recentchanges count=7:)

(:template defaults order=-time name=-GroupAttributes,-Site.AllRecentChanges,-Site.LastChanged,-RecentChanges,-RecentUploads,-SiteAdmin.Blocklist-*:) (:template first:)

PageTimeByChange

(:template each:)

{=$Groupspaced}.{=$Namespaced}?{=$LastModified}{=$LastModifiedBy}?{=$LastModifiedSummary}


#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}/{=$Namespaced}]]
[-&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:)

{=$Namespaced}?  {=$:Summary}

Site (19 pages)  Site Configuration

Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Image Template  Thumblist image template
Inter Map  Custom InterMap link definition to other wikis, directories, and protocols
Other  

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

#titlesummarylist

A simple list of page title and summary.

>>comment<<
[[#titlesummarylist]]
(:template each:)
(:if equal "{=$Title}" "Home Page":)
-< [[{=$FullName} |
{=$Groupspaced}]]
[-&nbsp;{=$:Summary}-]
(:else:)
-< [[{=$FullName} |
{=$Titlespaced}]]
[-&nbsp;{=$:Summary}-]
(:ifend:)
[[#titlesummarylistend]]
>>smaller<<

(:pagelist group=Site
fmt=#titlesummarylist list=normal
count=8:)

(:template each:)

{=$Titlespaced}?  {=$:Summary}

Edit Form  contains the edit page layout form
Edit Quick Reference  quick reference for editing pages
Footer  Website page footer
Image Template - - -::::  Thumblist image template
Inter Map  Custom InterMap link definition to other wikis, directories, and protocols

Based on original at http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Administration/ Please make changes to the original

Edit - History - Recent Changes - WikiHelp - Search
Hosted by Wellington Community Net
Page last modified on 2011 Sep 14 17:26