Related to article (example): Difference between revisions

remove tempnote as openreferences was fixed in v3.5.0, and fix examples
(Created page with "{{DPL Manual|section=Examples|subsection=Related to Article}} =List articles that link to DPL:Manual article from themselves= The following example <pre><nowiki>{{#dpl: form...")
 
imported>FrozenPlum
(remove tempnote as openreferences was fixed in v3.5.0, and fix examples)
 
(13 intermediate revisions by 5 users not shown)
Line 1:
{{DPL Manualmanual|section=Examples|subsection=Related to Articlearticle}}
 
==List articlespages thatlinked link to DPL:Manualfrom article from themselves==
<pre>
The following example
{{#dpl:
 
|linksfrom=DPL:ManualApple
<pre><nowiki>{{#dpl:
format=,[[%PAGE%]],<br/>
|openreferences=yes
|ordermethod=none
|count=5
|linksfrom=DPL:Manual
}}
}}</nowiki></pre>
</pre>
 
Produces a list of pages linked from the [[Apple]] article, limited to 5 results, including links to non-existing pages (if any) due to the use of <code>openreferences=yes</code>.
Would produce a list of articles that link to DPL:Manual
 
'''Result:'''<br>
{{#dpl:
|linksfrom=DPL:ManualApple
format=,[[%PAGE%]],<br/>
|openreferences=yes
|ordermethod=none
|count=5
|linksfrom=DPL:Manual
}}
 
==List templates are used by the DPL:Manualan article==
<pre>
The following example
{{#dpl:
|usedby=Apple
|count=5
}}
</pre>
Would produceProduces a list of templates that are used by DPL:Manualthe [[Apple]] article.
 
'''Result:'''<br>
<pre><nowiki>{{#dpl:
{{#dpl:
format=,[[%PAGE%]],<br/>
|usedby=DPL:ManualApple
|count=5
}}</nowiki></pre>
}}
 
Would produce a list of templates that are used by DPL:Manual
 
=IGNORE - DEBUG TESTING BY DEVELOPERS. THIS PAGE HAS AN ISSUE.=
 
== ==
Produces a list of articles whose title contains the word "Main" and includes the categories for each page.
<pre>
{{#dpl:
|titlematch=DPL:Manual%Main%
|addcategories=true
|format=,²{#replace:Category:%CATNAMES%¦²{comma}²¦<br/>Category:}²,<br/>
}}
</pre>
 
'''Result:'''<br>
{{#dpl:
|titlematch=%Main%
mode=userformat
|addcategories=true
|format=,[[%PAGE%]],<br/>
|count=5
|escapelinks=true
|imagecontainer=DPL:Manual
}}
 
[[Category:Miscellaneous examples]]
Anonymous user