Related to article (example): Difference between revisions

remove tempnote as openreferences was fixed in v3.5.0, and fix examples
imported>FrozenPlum
m (update to working examples for now)
imported>FrozenPlum
(remove tempnote as openreferences was fixed in v3.5.0, and fix examples)
 
(One intermediate revision by the same user not shown)
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
}}
 
[[Category:Miscellaneous examples]]
Anonymous user