Making pagelists more useful
Requirements, be able to test in a pagelist a change in the order of something other than the pagename.
For example, say I have a number of pages with page text variables, and I wish to list those pages grouped by page text value grouping, eg
>>comment<<
[[#PagelistSortVariableORIGINAL]]
(:template default group=Test $:Maintainer=- order=$:Maintainer,name:)
(:template first {=$:Maintainer} :)
!! Maintained by {=$:Maintainer}
(:template each:)
* [[{=$FullName}]]
[[#PagelistSortVariableEndORIGINAL]]
>><<
|
(:template default group=Test $:Maintainer=- order=$:Maintainer,name:)
(:template first {=$:Maintainer} :)
Maintained by {=$:Maintainer}
(:template each:)
|
>>comment<<
[[#PagelistSortVariable]]
(:template default group=Test $:Maintainer=?* order=$:Maintainer,$Name:)
(:template first {=$:Maintainer} :)
!! Maintained by {=$:Maintainer}
(:template each:)
* [[{=$FullName}]] by [-({=$:Maintainer})-]
[[#PagelistSortVariableEnd]]
>><<
|
(:template default group=Test $:Maintainer=?* order=$:Maintainer,$Name:)
(:template first {=$:Maintainer} :)
Maintained by {=$:Maintainer}
(:template each:)
|
- note default is to select pages with a "Maintainer" page text variable, and output pages grouped by (ie in order by) maintainer
Original proposal by Simon
(:pagelist fmt=#PagelistSortVariableORIGINAL count=16:)
|
Maintained by Dfaure
Maintained by [~Simon]
Maintained by Aaron
Maintained by Petko
Maintained by Simon
Maintained by Zachary
Maintained by Simon
|
With some modifications to the pagelist template definition
(:pagelist fmt=#PagelistSortVariable count=16:)
|
Maintained by Dfaure
Maintained by [~Simon]
Maintained by Aaron
Maintained by Petko
Maintained by Simon
Maintained by Zachary
Maintained by Simon
|
Testing including the order=$:Maintainer explicitly
(:pagelist fmt=#PagelistSortVariable count=16 group=Test $:Maintainer=?* order=$:Maintainer,$Name:)
|
Maintained by Dfaure
Maintained by [~Simon]
Maintained by Aaron
Maintained by Petko
Maintained by Simon
Maintained by Zachary
Maintained by Simon
|
Maintainer:Simon