Examples/Module: dplmatrix (example 3)

Example
This uses the module to create a matrix, whose first parameter (matrix name) is set to "Dessert examples linking to Fruit examples". The second parameter is set to  (specifies a bold "x" as the symbol for indicating a link), the third is set to   (as the symbol for indicating no link), and the fourth is set to   (the matrix layout mode), which flips normal column position to rows instead.

The fifth parameter specifies the indented list contents, in this case it is a DPL3 statement which sets Category:Dessert examples as the link source. Since the mode is flipped, the dessert examples appear in column headers. The DPL3 statement uses the  parameter to format the page title of each of the source links. Directly thereafter, the Template:Test matrix2 is called, and the format statement passes to that template the value of , and the  value of  , which are used to create the nested part of the list (explained in examples below).

Result
As can be observed by visiting their pages, the Apple Pie article links to the Apple article, the Chocolate Cake article links to the Plum article, and the Raspberry Ice Cream article links to both of the other two articles.

Template content
Lastly, to understand the Test matrix2 template (which is a second DPL3 statement), and how it accepts the values passed to it earlier, and formats the indented part of the list, it is best to view its contents as well:

Template:Test matrix2 content:

This example sets the namespace to [blank] (the "Main" namespace), sets the  to "Fruit examples" as was passed from the other DPL3 statement, and sets the   value to   as was also passed from that statement. The count is then restricted to five, and the format line creates spaces before the linked page title.