Difference between revisions of "Test matrix"

From FollowTheScore
Jump to: navigation, search
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|||flip|
+
{{#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
 
}}
 
}}
 
|}
 
|}
rows appear in input sequence, columns are sorted by alphabet.
+
* "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

Template:Type:Test

generating a matrix from an indented list

Input is:

one
 oho
 aha
two
 ehem
three
four
 aha
 uhui ~~ UHU

Output is:

normal flipped
a simple demo matrix aha ehem oho UHU
one x   x  
two   x    
three        
four x     x
a simple demo matrix one two three four
aha x     x
ehem   x    
oho x      
UHU       x
  • "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:

links from articles to the DPL manual Manual Manual - Authors and History Manual - Compatibility Manual - DPL Bug Reporting and Feature Requests Manual - DPL parameters: Controlling output format Manual - DPL parameters: Controlling output volume Manual - DPL parameters: Other parameters Manual - DPL Special Page with Parameters Manual - DPL with PostgreSQL Manual - dplmatrix Manual - dplnum Manual - dplreplace Manual - dplvar Manual - General Usage and Invocation Syntax Manual - DPL parameters: Controlling output order Manual - DPL parameters: Criteria for page selection Manual - dplchapter Manual - Source and Installation
Manual - x x x x x x x x x x x x x x x x x
Manual - Authors and History x - - - - - - - - x - - - - - - - -
Manual - Compatibility x x - - - - - - - - - - - - - - - x
Manual - DPL Bug Reporting and Feature Requests x - - - - - - - - x - - - - - - - -
Manual - DPL Special Page with Parameters - - - - - - - - - x - - - - - - - -
Manual - DPL parameters: Controlling output format x - - - - - - - - x - - - x x - - -
Manual - DPL parameters: Controlling output order x - - - x - - - - x - - - - - - - -
Manual - DPL parameters: Controlling output volume x - - - x - - - - x - - - - - x - -
Manual - DPL parameters: Criteria for page selection x - - - - x - - - x - - - - - - - x
Manual - DPL parameters: Other parameters x - - - - - - - - x - - - - - - - -
Manual - DPL with PostgreSQL - - - - - - - - - x - - - - - - - x
Manual - General Usage and Invocation Syntax x - - - - - - - - x - - - - - x - -
Manual - Source and Installation x - - - - - - - - x - - - - - x - -
Manual - dplchapter - - - - - - - - - x - - - - - - - -