Difference between revisions of "Test matrix"
From FollowTheScore
Line 7: | Line 7: | ||
one | one | ||
oho | oho | ||
+ | |||
+ | |||
aha | aha | ||
two ~~ Two | two ~~ Two | ||
Line 14: | Line 16: | ||
aha | aha | ||
uhui ~~ UHU | uhui ~~ UHU | ||
+ | two | ||
+ | uhui ~~ UHU | ||
Output is: | Output is: | ||
{|class=wikitable | {|class=wikitable | ||
Line 33: | Line 37: | ||
aha | aha | ||
uhui ~~ UHU | uhui ~~ UHU | ||
+ | two | ||
+ | uhui ~~ UHU | ||
}} | }} | ||
| | | | ||
Line 45: | Line 51: | ||
aha | aha | ||
uhui ~~ UHU | uhui ~~ UHU | ||
+ | two | ||
+ | uhui ~~ UHU | ||
}} | }} | ||
|} | |} |
Revision as of 20:17, 17 December 2007
generating a matrix from an indented list
Input is:
one oho aha two ~~ Two ehem three four aha uhui ~~ UHU two 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 "~~"
- symbols for "yes" and "no" can be defined
- via the stylesheet in Mediawiki:Common.css you can control the layout (class=dplmatrix)
Links to DPL Manual pages
Now we use two nested DPL queries to generate the indented list: