Related to article (example): Difference between revisions

m
update to working examples for now
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 DPL3/Manual article==
The following example would produce a list of pages linked from [[Manual]] article.
 
<pre><nowiki>{{#dpl:
{{#dpl:
format=,[[%PAGE%]],<br/>
|ordermethod=none
|linksfrom=Extension:DPL3/Manual
|count=5
}}</nowiki></pre>
}}
 
</pre>
Would produce a list of pages linked from [[Extension:DPL3/Manual]]:
 
'''Result:'''<br>
{{#dpl:
format=,[[%PAGE%]],<br/>
|ordermethod=none
|linksfrom=Extension:DPL3/Manual
|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 are used by the Extension:DPL3/Manual article==
The following example would produce a list of templates that are used by the Manual article.
 
<pre><nowiki>{{#dpl:
{{#dpl:
format=,[[%PAGE%]],<br/>
|usedby=Extension:DPL3/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:
|titlematch=Extension:DPL3/%Manual%
|addcategories=true
|format=,²{#replace:Category:%CATNAMES%¦²{comma}²¦<br/>Category:}²,<br/>
}}
</pre>
 
'''Result:'''<br>
{{#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}}]]
-->
Anonymous user