Anonymous user
Dplmatrix/test matrix: Difference between revisions
m
Undo revision 2014 by Lens0021 (talk) - as stated on the feedback/discussion page, the examples here are going to get separated out into pages that can be categorized and pre-loaded like the rest. For this reason, it's important to not complicate the example with extra formatting and templates (as explained on the discussion/feedback page).
imported>FrozenPlum m (Add demo classes (no license selected on the wiki) from: https://followthescore.org/dpldemo/index.php?title=MediaWiki:Common.css) |
imported>FrozenPlum m (Undo revision 2014 by Lens0021 (talk) - as stated on the feedback/discussion page, the examples here are going to get separated out into pages that can be categorized and pre-loaded like the rest. For this reason, it's important to not complicate the example with extra formatting and templates (as explained on the discussion/feedback page).) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1:
==Test Matrix==
Below is an example of a test matrix.
===
Input is:
one
two ~~ Two
three
four
two ~~ Two
Output is:
Line 92 ⟶ 89:
Now we use two nested DPL queries and what would be a separate page, Test matrix2, to generate the indented list:
<pre>
{{#dplmatrix:''links from articles to one of the
{{#dpl:
|debug=1
|category=All DPL3
|format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=All
}}
}}
Line 106 ⟶ 104:
|debug=1
|category=All DPL3
|count=5
|format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=All
}}
}}
'''Contents of Test matrix2:'''<br>
<pre>
{{#dpl:
Line 118:
|linksfrom={{{page}}}
|shownamespace=no
|count=5
|format=, %PAGE% ~~ %TITLE%\n,
}}
</pre>
▲ |debug=1
|