Testing trails with anchors
Testing trails with anchors
The following bullets define the wiki trail
[[#XYTrail1]]
* [[XYTrail1]]
[[#XYTrail2]]
* [[Test.XYTrail2]]
[[#XYTrail3]]
* [[Test/XYTrail3]]
[[#XYTrail4]]
* [[XYTrail4 | '''page''' ''four'']]
[[#XYTrail5]]
* [[Test/XYTrail5 | 5'^th^' page of trail]]
[[#XYTrail6]]
* [[Test.XYTrail5 | sixth page of trail]]
[[#XYTrailLoop]]
* [[XYTrail1 | loop trail]] %item comment%
|
|
Follow a wiki trail to view the tests ...
The following trails are based on the bulleted list on page Test.XYTrail, they work fine.
-> <<|[[XYTrail]]|>>
-> <<|Test.XYTrail|>>
-> <<|[[Test.XYTrail]]|>>
-> <<|[[Test.XYTrail | trail]]|>>
-> <<|[[Test.XYTrail | +]]|>>
|
|
Trails with anchors - is the syntax the same as Include Other Pages?
These trails work oddly if at all ...
Variables
-> {*$Name} / {*$FullName}
Trail using ''from'' anchor
-> <<|[[Test.XYTrail#XYTrail4# | +]]|>>
-> <<|[[Test.XYTrail#{*$Name}# | +]]|>>
-> <<|[[Test.XYTrail#{*$FullName}# | +]]|>>
Trail using ''to'' anchor
-> <<|[[Test.XYTrail##XYTrail4 | +]]|>>
-> <<|[[Test.XYTrail##{*$Name} | +]]|>>
-> <<|[[Test.XYTrail##{*$FullName} | +]]|>>
Trail using ''from'' and ''to'' anchor
-> <<|[[Test.XYTrail#XYTrail4#XYTrail6 | +]]|>>
|
Variables
Trail using from anchor
Trail using to anchor
Trail using from and to anchor
|
Test ontrail conditional
* (:if ontrail XYTrail {*$Name} :) {*$Name} is on trail [[XYTrail]] (:else:) {*$Name} (:ifend:)
* (:if ontrail XYTrail {*$FullName} :) {*$FullName} is on trail [[XYTrail]] (:else:) {*$FullName} (:ifend:)
* (:if ontrail XYTrail XYTrail4 :) [[XYTrail4]] is on trail [[XYTrail]] (:else:) XYTrail4 (:ifend:)
|
|
Note that the special * reference is used because all tests are included from the XYTrail page.