Related to article (example): Difference between revisions
Content added Content deleted
imported>FrozenPlum m (FrozenPlum moved page Example: Related to article to Related to article (example) without leaving a redirect) |
imported>FrozenPlum m (update to working examples for now) |
||
Line 1:
{{DPL manual|section=Examples|subsection=Related to article}}
==List pages linked from
The following example would produce a list of pages linked from [[Manual]] article.
<pre>
{{#dpl:
|ordermethod=none
|linksfrom=
|count=5
}}
</pre>
'''Result:'''<br>
{{#dpl:
|ordermethod=none
|linksfrom=
|count=5
}}
=== 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
The following example would produce a list of templates that are used by the Manual article.
<pre>
{{#dpl:
|usedby=
|count=5
}}
</pre>
'''Result:'''<br>
{{#dpl:
|usedby=Manual
|count=5
}}
== ==
The following example will produce a list of articles names whose title contains the word "Manual" and includes the categories for each page.
<pre>
{{#dpl:
|titlematch=
|addcategories=true
}}
</pre>
'''Result:'''<br>
{{#dpl:
|titlematch=%Manual%
|addcategories=true
|count=5
}}
|
Revision as of 03:24, 3 April 2022
|
Manual | Examples | Related to article |
List pages linked from Manual article
The following example would produce a list of pages linked from Manual article.
{{#dpl: |ordermethod=none |linksfrom=Manual |count=5 }}
Result:
{{#dpl:
|ordermethod=none
|linksfrom=Manual
|count=5
}}
Notes
- Use
|openreferences=yes
to include links to non-existing pages (red links). In the example above, if|openreferences=yes
were specified, any red links that might appear on Extension:DPL3/Manual would be listed in the output along with existing pages.
List templates used by the Manual article
The following example would produce a list of templates that are used by the Manual article.
{{#dpl: |usedby=Manual |count=5 }}
Result:
{{#dpl:
|usedby=Manual
|count=5
}}
The following example will produce a list of articles names whose title contains the word "Manual" and includes the categories for each page.
{{#dpl: |titlematch=%Manual% |addcategories=true }}
Result:
{{#dpl:
|titlematch=%Manual%
|addcategories=true
|count=5
}}