Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

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).
No edit summary
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).)
 
(10 intermediate revisions by 4 users not shown)
Line 1:
==Test Matrix==
{{PAGENAME}} has been vandalized. {|border=1 width=100% cellspacing=0
Below is an example of a test matrix.
|style=padding-left:5px width=120px id=n-Test | '''Test'''
|style=padding-left:5px | matrix
|-
|}
 
===generatingGenerating a matrix from an indented list ===
Input is:
one
ohoapple
ahaapricot
two ~~ Two
ehembanana
three
four
ahagrape
uhuimango ~~ UHUMANGO
two ~~ Two
uhuimango ~~ UHUMANGO
 
Output is:
Line 26 ⟶ 23:
|<pre>{{#dplmatrix:a simple demo matrix||||
one
apple
oho
apricot
aha
two ~~ Two
banana
ehem
three
four
grape
aha
uhuimango ~~ UHUMANGO
two ~~ Two
uhuimango ~~ UHUMANGO
}}</pre>
|<pre>{{#dplmatrix:a simple demo matrix|<big>&bull;</big>|.|flip|
one
apple
oho
apricot
aha
two ~~ Two
banana
ehem
three
four
grape
aha
uhuimango ~~ UHUMANGO
two ~~ Two
uhuimango ~~ UHUMANGO
}}</pre>
|--
Line 54 ⟶ 51:
{{#dplmatrix:a simple demo matrix||||
one
apple
oho
apricot
aha
two ~~ Two
banana
ehem
three
four
grape
aha
uhuimango ~~ UHUMANGO
two ~~ Two
uhuimango ~~ UHUMANGO
}}
|
{{#dplmatrix:a simple demo matrix|<big>&bull;</big>|.|flip|
one
apple
oho
apricot
aha
two ~~ Two
banana
ehem
three
four
grape
aha
uhuimango ~~ UHUMANGO
two ~~ Two
uhuimango ~~ UHUMANGO
}}
|}
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 DPLPrimary Module manualpages''|'''x'''|-|flip|
{{#dpl:
|debug=1
|category=DPLAll ManualDPL3
|debugcount=15
|format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=DPLAll ManualDPL3¦namespace=}²,
}}
}}
</pre>
 
Contents of Test matrix2:
'''Result:'''<br>
{{#dplmatrix:''links from articles to the DPL manual''|'''x'''|-|flip|
{{#dpl:
|debug=1
|category=DPLAll ManualDPL3
|count=5
|format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=DPLAll ManualDPL3¦namespace=}²,
}}
|}}
 
 
'''Contents of Test matrix2:'''<br>
<pre>
{{#dpl:
Line 108 ⟶ 118:
|linksfrom={{{page}}}
|shownamespace=no
|count=5
|format=, %PAGE% ~~ %TITLE%\n,
}}
</pre>
 
{{#dplmatrix:''links from articles to the DPL manual''|'''x'''|-|flip|
{{#dpl:
|debug=1
|category=DPL Manual
|format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=DPL Manual¦namespace=}²,
}}
}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.