testing pagelist using template defaults
fmt=#withdefaults
[[#withdefaults]]
(:template defaults case="???" group={$Group} name=Page*:)
(:template first:)
Test case: {$$case} (group={$$group} name={$$name})
(:template each:)
* @@[={=$FullName}=]@@="`{=$FullName}"
(:template last:)
(done)
[[#withdefaultsend]]
work as expected
(:pagelist group=Cookbook fmt=#withdefaults count=5 case="overriding group":)
(:pagelist group={$Group} name=Inc* fmt=#withdefaults count=5 case="overriding name / reusing group":)
|
Test case: overriding group (group=Cookbook name=Page*)
{=$FullName} ="Cookbook.PageAction"
{=$FullName} ="Cookbook.PageAction-IconPack?"
{=$FullName} ="Cookbook.PageAction-IconPack?-Talk"
{=$FullName} ="Cookbook.PageAction-IconPack?-Users"
{=$FullName} ="Cookbook.PageActions"
(done)
Test case: overriding name / reusing group (group=Test name=Inc*)
{=$FullName} ="`Test.Include"
{=$FullName} ="`Test.Include2"
{=$FullName} ="Test.IncludeAll"
{=$FullName} ="Test.IncludeAndAnchor"
{=$FullName} ="Test.IncludeBugA"
(done)
|
overriding name only
(:pagelist name=Inc* fmt=#withdefaults count=5 case="overriding name":)
|
Test case: overriding name (group=Test name=Inc*)
{=$FullName} ="`Test.Include"
{=$FullName} ="`Test.Include2"
{=$FullName} ="Test.IncludeAll"
{=$FullName} ="Test.IncludeAndAnchor"
{=$FullName} ="Test.IncludeBugA"
(done)
|
using all defaults
(:pagelist fmt=#withdefaults count=5 case="using defaults":)
|
Test case: using defaults (group=Test name=Page*)
{=$FullName} ="`Test.Page-name-with-hyphens"
{=$FullName} ="Test.PageCount"
{=$FullName} ="Test.PageExists"
{=$FullName} ="Test.PageIndex"
{=$FullName} ="`Test.Pagelist"
(done)
|
null name
(:pagelist name= fmt=#withdefaults count=5 case="null name":)
|
Test case: null name (group=Test name=Page*)
{=$FullName} ="Test.PageListA"
{=$FullName} ="Test.PagelistAcrossGroups"
{=$FullName} ="Test.PageListAnchors"
{=$FullName} ="Test.PageListB"
{=$FullName} ="Test.PagelistByCategory"
(done)
|
null group
(:pagelist group= fmt=#withdefaults count=5 case="null group":)
|
Test case: null group (group=Test name=Page*)
{=$FullName} ="`Test.Pagelist"
{=$FullName} ="Test.PageListA"
{=$FullName} ="Test.PagelistAcrossGroups"
{=$FullName} ="Test.PageListB"
{=$FullName} ="Test.PagelistBug1"
(done)
|
empty name
(:pagelist name="" fmt=#withdefaults count=5 case="empty name":)
|
Test case: empty name (group=Test name=)
{=$FullName} ="`Test.00962"
{=$FullName} ="`Test.01295"
{=$FullName} ="`Test.01300"
{=$FullName} ="`Test.12Over4"
{=$FullName} ="`Test.2003Titlespaced"
(done)
|
empty group
(:pagelist group="" fmt=#withdefaults count=5 case="empty group":)
|
Test case: empty group (group= name=Page*)
{=$FullName} ="Category.PageDirectives"
{=$FullName} ="Category.PageHandling"
{=$FullName} ="Category.PageList"
{=$FullName} ="`Category.Pagelist"
{=$FullName} ="Category.PageLists"
(done)
|
default pagelist
(:pagelist fmt=#withdefaults count=5:)
|
Test case: ??? (group=Test name=Page*)
{=$FullName} ="`Test.Page-name-with-hyphens"
{=$FullName} ="Test.PageCount"
{=$FullName} ="Test.PageExists"
{=$FullName} ="Test.PageIndex"
{=$FullName} ="`Test.Pagelist"
(done)
|