Related to article (example): Difference between revisions

remove tempnote as openreferences was fixed in v3.5.0, and fix examples
imported>FrozenPlum
imported>FrozenPlum
(remove tempnote as openreferences was fixed in v3.5.0, and fix examples)
 
(3 intermediate revisions by the same user not shown)
Line 1:
{{DPL manual|section=Examples|subsection=Related to article}}
 
==List pages linked from DPL3/Manualarticle==
<pre>
The following example
{{#dpl:
 
|linksfrom=Apple
<pre><nowiki>{{#dpl:
|openreferences=yes
format=,[[%PAGE%]],<br/>
|ordermethod=none
|count=5
|linksfrom=Extension:DPL3/Manual
}}
}}</nowiki></pre>
</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>.
Would produce a list of pages linked from [[Extension:DPL3/Manual]]:
 
'''Result:'''<br>
{{#dpl:
|linksfrom=Apple
format=,[[%PAGE%]],<br/>
|openreferences=yes
|ordermethod=none
|count=5
|linksfrom=Extension:DPL3/Manual
}}
 
==List templates are used by the Extension:DPL3/Manualan article==
=== Notes ===
<pre>
*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.
{{#dpl:
|usedby=Apple
|count=5
}}
</pre>
Would produceProduces a list of templates that are used by DPL:Manualthe [[Apple]] article.
 
'''Result:'''<br>
==List templates are used by the Extension:DPL3/Manual article==
{{#dpl:
The following example
|usedby=Apple
 
|count=5
<pre><nowiki>{{#dpl:
}}
format=,[[%PAGE%]],<br/>
|usedby=Extension:DPL3/Manual
}}</nowiki></pre>
 
Would produce a list of templates that are used by DPL:Manual
 
==IGNORE - DEBUG TESTING BY DEVELOPERS. THIS PAGE HAS AN ISSUE.==
 
== ==
Produces a list of articles whose title contains the word "Main" and includes the categories for each page.
<pre>
{{#dpl:
|titlematch=Extension:DPL3/Manual%Main%
|addcategories=true
|format=,²{#replace:Category:%CATNAMES%¦²{comma}²¦<br/>Category:}²,<br/>
}}
</pre>
 
'''Result:'''<br>
{{#dpl:
|titlematch=%Main%
mode=userformat
|addcategories=true
|format=,[[%PAGE%]],<br/>
|count=5
|escapelinks=true
|imagecontainer=Extension:DPL3/Manual
}}
 
[[Category:Miscellaneous examples]]
<!-- 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