Site »

Local Templates

Page list templates added to this page are available to any page on your wiki. (A number of page list templates are already provided; find them on Site/SharedTemplates and Site/PageListTemplates.)

You can also place page list templates in the {$Group}/Templates page of any group (such as Main/Templates).


fmt=#sidebar-nav-menu

[[#sidebar-nav-menu]]
(:template defaults name=-RecentChanges,-RecentUploads,-GroupHeader,-GroupFooter,-GroupAttributes,-StyleSheet class=sidebar-nav-menu:)
(:template first {=$Group}:)

(:if [ name {=$Group} or ( equal {=$Group} Main and equal {*$FullName} Main.HomePage ) ] :)
* (:if2 group {=$Group} :)%item current-group%(:if2end:) '''{=$Groupspaced}'''
(:else:)
* (:if2 group {=$Group} :)%item current-group%(:if2end:) '''[[{=$Groupspaced}/]]'''
(:ifend:)
(:template each order=-time:)
(:if2 equal 1 {$$expand} :)
(:if [ name {=$Name} and ! equal {=$DefaultName} {=$Name} and ! equal {=$Group} {=$Name} ] :)
** %block current-page%'''{=$Titlespaced}'''
(:elseif [ group {=$Group} and ! equal {=$Group} {=$Name} ] :)
** [[{=$FullName}"{=$Titlespaced}"|{=$Titlespaced}]]
(:ifend:)
(:if2end:)
[[#sidebar-nav-menuend]]

fmt=#excerpts

[[#excerpts]]
(:template each:)
:[[{=$Group}/]] / '''[[{=$FullName}|+]]''' %grey%(:if ! equal "" {=$:Summary}:)({=$:Summary})(:ifend:) (:if ! equal "" {=$Description}:)— {=$Description}(:ifend:)%%: %grey%[-(:excerpts {=$Group}.{=$Name} {$?q} :)-]%%
[[#excerptsend]]