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: Line 1:
{{DPL manual|section=Examples|subsection=Related to article}}
{{DPL manual|section=Examples|subsection=Related to article}}


==List pages linked from DPL3/Manual==
==List pages linked from Manual article==
The following example
The following example would produce a list of pages linked from [[Manual]] article.


<pre><nowiki>{{#dpl:
<pre>
{{#dpl:
format=,[[%PAGE%]],<br/>
|ordermethod=none
|ordermethod=none
|linksfrom=Extension:DPL3/Manual
|linksfrom=Manual
|count=5
}}</nowiki></pre>
}}

</pre>
Would produce a list of pages linked from [[Extension:DPL3/Manual]]:


'''Result:'''<br>
{{#dpl:
{{#dpl:
format=,[[%PAGE%]],<br/>
|ordermethod=none
|ordermethod=none
|linksfrom=Extension:DPL3/Manual
|linksfrom=Manual
|count=5
}}
}}


=== Notes ===
=== 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.
*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 are used by the Extension:DPL3/Manual article==
==List templates used by the Manual article==
The following example
The following example would produce a list of templates that are used by the Manual article.


<pre><nowiki>{{#dpl:
<pre>
{{#dpl:
format=,[[%PAGE%]],<br/>
|usedby=Extension:DPL3/Manual
|usedby=Manual
|count=5
}}</nowiki></pre>
}}
</pre>


'''Result:'''<br>
Would produce a list of templates that are used by DPL:Manual
{{#dpl:

|usedby=Manual
==IGNORE - DEBUG TESTING BY DEVELOPERS. THIS PAGE HAS AN ISSUE.==
|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:
{{#dpl:
titlematch=Extension:DPL3/Manual
|titlematch=%Manual%
|addcategories=true
|addcategories=true
|format=,²{#replace:Category:%CATNAMES%¦²{comma}²¦<br/>Category:}²,<br/>
}}
}}
</pre>


'''Result:'''<br>
{{#dpl:
{{#dpl:
|titlematch=%Manual%
mode=userformat
|addcategories=true
|format=,[[%PAGE%]],<br/>
|count=5
|escapelinks=true
|imagecontainer=Extension:DPL3/Manual
}}
}}

<!-- Extension prefix in other languages:

[[de:Erweiterung:{{subst:BASEPAGENAME}}]]
[[es:Extensión:{{subst:BASEPAGENAME}}]]
[[fr:Extension:{{subst:BASEPAGENAME}}]]
[[it:Estensione:{{subst:BASEPAGENAME}}]]
[[nl:Uitbreiding:{{subst:BASEPAGENAME}}]]
[[pl:Rozszerzenie:{{subst:BASEPAGENAME}}]]
[[pt:Extensão:{{subst:BASEPAGENAME}}]]
[[ru:Расширение:{{subst:BASEPAGENAME}}]]
[[zh:扩展:{{subst:BASEPAGENAME}}]]
-->