Related to article (example): Difference between revisions
Content added Content deleted
imported>FrozenPlum m (9 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.) |
imported>FrozenPlum (remove tempnote as openreferences was fixed in v3.5.0, and fix examples) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1:
{{DPL manual|section=Examples|subsection=Related to article}}
==List pages linked from
<pre>
{{#dpl:
|linksfrom=Apple
|openreferences=yes
|ordermethod=none
|count=5
}}
</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:
|linksfrom=Apple
|openreferences=yes
|ordermethod=none
|count=5
}}
<pre>
{{#dpl:
|usedby=Apple
|count=5
}}
</pre>
'''Result:'''<br>
▲==List templates are used by the Extension:DPL3/Manual article==
{{#dpl:
|usedby=Apple
|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
}}