Difference between revisions of "Test matrix"
From FollowTheScore
Line 13: | Line 13: | ||
four | four | ||
aha | aha | ||
− | uhui | + | uhui ~~ UHU |
Output is: | Output is: | ||
{|class=wikitable | {|class=wikitable | ||
Line 20: | Line 20: | ||
|-- | |-- | ||
| | | | ||
− | {{#dplmatrix:a simple demo matrix||| | + | {{#dplmatrix:a simple demo matrix|||| |
one | one | ||
oho | oho | ||
Line 29: | Line 29: | ||
four | four | ||
aha | aha | ||
− | uhui | + | uhui ~~ UHU |
}} | }} | ||
| | | | ||
− | {{#dplmatrix:a simple demo matrix|||| | + | {{#dplmatrix:a simple demo matrix|||flip| |
one | one | ||
oho | oho | ||
Line 41: | Line 41: | ||
four | four | ||
aha | aha | ||
− | uhui | + | uhui ~~ UHU |
}} | }} | ||
|} | |} | ||
− | + | * "from" items ("source") start in col 1 | |
+ | * "to" items ("target") are indented by at least one space | ||
+ | * source appears in input sequence | ||
+ | * target is sorted by alphabet | ||
+ | * items are treated as pages and shown as a link | ||
+ | * the label can be defined by adding it after the iterm, separated by "~~" | ||
+ | |||
===Links to DPL Manual pages=== | ===Links to DPL Manual pages=== |
Revision as of 19:13, 17 December 2007
generating a matrix from an indented list
Input is:
one oho aha two ehem three four aha uhui ~~ UHU
Output is:
normal | flipped | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
- "from" items ("source") start in col 1
- "to" items ("target") are indented by at least one space
- source appears in input sequence
- target is sorted by alphabet
- items are treated as pages and shown as a link
- the label can be defined by adding it after the iterm, separated by "~~"
Links to DPL Manual pages
Now we use two nested DPL queries to generate the indented list: