Related to article (example): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (flag for later cleanup)
imported>FrozenPlum
(remove tempnote as openreferences was fixed in v3.5.0, and fix examples)
 
Line 1:
{{DPL manual|section=Examples|subsection=Related to article}}
 
==List pages linked from Manual article==
The following example would produce a list of pages linked from [[Manual]] article.
 
<pre>
{{#dpl:
|linksfrom=ManualApple
|openreferences=yes
|ordermethod=none
|linksfrom=Manual
|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=ManualApple
|openreferences=yes
|ordermethod=none
|linksfrom=Manual
|count=5
}}
 
==List templates used by the Manualan article==
=== Notes ===
*Use <code>|openreferences=yes</code> to include links to non-existing pages (red links). In the example above, if <code>|openreferences=yes</code> were specified, any red links that might appear on [[Extension:DPL3/Manual]] would be listed in the output along with existing pages.
{{tempnote}}
 
==List templates used by the Manual article==
The following example would produce a list of templates that are used by the Manual article.
 
<pre>
{{#dpl:
|usedby=ManualApple
|count=5
}}
</pre>
The following example would produceProduces a list of templates that are used by the Manual[[Apple]] article.
 
'''Result:'''<br>
{{#dpl:
|usedby=ManualApple
|count=5
}}
 
== ==
The following example will produceProduces a list of articles names whose title contains the word "ManualMain" and includes the categories for each page.
<pre>
{{#dpl:
|titlematch=%ManualMain%
|addcategories=true
}}
Line 50 ⟶ 46:
'''Result:'''<br>
{{#dpl:
|titlematch=%ManualMain%
|addcategories=true
|count=5

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 }}