Related to article (example): Difference between revisions
Content added Content deleted
(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
==List
<pre>
{{#dpl:
|openreferences=yes
|ordermethod=none
|count=5
▲|linksfrom=DPL:Manual
}}
</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>.
'''Result:'''<br>
{{#dpl:
|openreferences=yes
|ordermethod=none
|count=5
▲|linksfrom=DPL:Manual
}}
==List templates
<pre>
{{#dpl:
|usedby=Apple
|count=5
}}
</pre>
'''Result:'''<br>
{{#dpl:
|usedby=
|count=5
}}
▲Would produce a list of templates that are used by DPL:Manual
== ==
Produces a list of articles whose title contains the word "Main" and includes the categories for each page.
<pre>
{{#dpl:
|titlematch=
|addcategories=true
}}
</pre>
'''Result:'''<br>
{{#dpl:
|titlematch=%Main%
|addcategories=true
|count=5
}}
[[Category:Miscellaneous examples]]
|
Latest revision as of 22:38, 16 January 2023
|
Manual | Examples | Related to article |
List pages linked from article
{{#dpl: |linksfrom=Apple |openreferences=yes |ordermethod=none |count=5 }}
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 openreferences=yes
.
Result:
{{#dpl:
|linksfrom=Apple
|openreferences=yes
|ordermethod=none
|count=5
}}
List templates used by an article
{{#dpl: |usedby=Apple |count=5 }}
Produces a list of templates that are used by the Apple article.
Result:
{{#dpl:
|usedby=Apple
|count=5
}}
Produces a list of articles whose title contains the word "Main" and includes the categories for each page.
{{#dpl: |titlematch=%Main% |addcategories=true }}
Result:
{{#dpl:
|titlematch=%Main%
|addcategories=true
|count=5
}}