Search:
Recent Changes


Wellington Community Network
The NZ School of Business and Government - Practical Knowledge, Applied Wisdom

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.

(:if false:)
[[#default]]
(:template first {=$Group}:)

:[[{=$Groupspaced}/]] /:
(:template each:)
: :[[{=$Group}/{=$Namespaced}]]
[- {=$:Summary} -]
[[#defaultend]]
(:ifend:)

(:pagelist group={$DefaultGroup}
fmt=#default list=normal count=7:)
HVDA /
50th Anniversary  Brief page description
About Us  About the Hutt Valley branch of the New Zealand Deerstalkers Association
Contact Us  Contact the Hutt Valley Branch of the New Zealand Deerstalkers Association
Home Page  New Zealand Deerstalkers' Association (Hutt Valley Branch) Inc
Hunter Liaison Group  Government liaison with hunters
Hunts Course  Hunter Understanding National Training Scheme
Links  related to gear, equipment, outdoors, places, organisations

#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}
name=-HomePage,-RecentChanges,-RecentUploads,-Template,-GroupHeader,-GroupFooter,-GroupAttributes:)
(:template each:)
%comment%-< [-- *'{*$FullName}'
='{=$FullName}' --]
(:if equal {*$FullName} {=$FullName}:)
%wikitrail%[[{<$FullName} |
{<$Namespaced}]] <
[[{$$TrailPage}]] >
[[{>$FullName}| {>$Namespaced}]]
(:ifend:)
[[#grouptrailend]]
>>smaller<<

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

(:template default wrap=inline TrailPage=Site name=-HomePage,-RecentChanges,-RecentUploads,-Template,-GroupHeader,-GroupFooter,-GroupAttributes:) (:template each:) -< *'Site.LocalTemplates' ='{=$FullName}'

-< *'Site.LocalTemplates' ='Site.AllGroupFooter' -< *'Site.LocalTemplates' ='Site.AllGroupHeader' -< *'Site.LocalTemplates' ='Site.AllRecentChanges' -< *'Site.LocalTemplates' ='Site.ApprovedUrls' -< *'Site.LocalTemplates' ='Site.AuthForm' -< *'Site.LocalTemplates' ='Site.AuthUser' -< *'Site.LocalTemplates' ='Site.EditForm' -< *'Site.LocalTemplates' ='Site.EditQuickReference' -< *'Site.LocalTemplates' ='Site.Footer' -< *'Site.LocalTemplates' ='Site.ImageTemplate' -< *'Site.LocalTemplates' ='Site.InterMap' -< *'Site.LocalTemplates' ='Site.LastChanged' -< *'Site.LocalTemplates' ='Site.LocalTemplates' Last Changed < Site > Page Actions -< *'Site.LocalTemplates' ='Site.PageActions' -< *'Site.LocalTemplates' ='Site.PageListTemplates' -< *'Site.LocalTemplates' ='Site.PageNotFound' -< *'Site.LocalTemplates' ='Site.PmFormTemplates' -< *'Site.LocalTemplates' ='Site.Preferences' -< *'Site.LocalTemplates' ='Site.Search' -< *'Site.LocalTemplates' ='Site.SideBar' -< *'Site.LocalTemplates' ='Site.Site' -< *'Site.LocalTemplates' ='Site.TemplateUpload' -< *'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

display a random image

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

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

(:template default order=random count=1 group=Trips if="attachments" list=normal:) (:template each:)

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

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

#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 (21 pages)  Site Configuration

All Group Footer  (bottom)
Auth Form  form displayed when requesting a password or username/password
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

#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 http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Administration/ Please make changes to the original


HVDA templates

#sidebar

Level 2 page list for sidebar

>>comment<<
[[#sidebar]]
(:template default $:SideBar=-no:)
(:template first {=$Group}:)
(:template each:)
* [[{=$FullName} | {=$Titlespaced}]]
[[#sidebarend]]
>>smaller<<

(:pagelist group={$DefaultGroup}
fmt=#sidebar list=normal count=7:)

(:template default $:SideBar=-no:) (:template first {=$Group}:) (:template each:)

#sidebarmenu

>>comment<<
[[#sidebarmenu]]
(:template default
group=-PmWiki*,-Site*,-Main,-Profiles,-HVDA,-Administration,-Category
$:SideBar=-no:)
(:template first {=$Group}:)
-< [[{=$Groupspaced}/]]
(:if equal {*$Group} {=$Group} :)
(:div767 class="MenuL2" :)
(:pagelist group={=$Group}
name=-Template*,-HomePage list=normal
fmt=#sidebar :)
(:div767end:)
(:ifend:)
(:template last:)
(:if auth edit:)
-< [[Administration/]]
(:ifend:)
(:if expr auth edit and equal {*$Group}
Administration :)
(:div787 class="MenuL2" :)
(:pagelist group=Administration
name=-Template*,-HomePage list=normal
fmt=#sidebar :)
(:div787end:)
(:ifend:)
(:ifend:)
[[#sidebarmenuend]]
>>smaller<<

(:pagelist fmt=#sidebarmenu list=normal
count=7:)

(:template default group=-PmWiki*,-Site*,-Main,-Profiles,-HVDA,-Administration,-Category $:SideBar=-no:) (:template first {=$Group}:)

(:template last:)

#footermenu

>>comment<<
[[#footermenu]]
(:template default wrap=inline
group=-PmWiki*,-Site*,-Main,-Profiles,-HVDA,-Administration,-Category :)
(:template first {=$Group}:)
[[{=$Groupspaced}/]] &nbsp; 
(:template last:)
(:if auth edit:)
[[Administration/]] &nbsp; 
(:ifend:)
[[#footermenuend]]
>>smaller<<

(:pagelist fmt=#footermenu list=normal :)

(:template default wrap=inline group=-PmWiki*,-Site*,-Main,-Profiles,-HVDA,-Administration,-Category :) (:template first {=$Group}:) {=$Groupspaced}?   (:template last:)


N.Z.D.A Hutt Valley Branch
Page last modified on 2009 Sep 29 14:56