Images used (examples): Difference between revisions

m
Start setting up examples page
imported>FrozenPlum
m (FrozenPlum moved page Example: Display images used to Display images used (example) without leaving a redirect)
imported>FrozenPlum
m (Start setting up examples page)
Line 1:
{{DPL manual|section=Examples|subsection=Display images used}}
 
==List images used==
The following example:
 
<pre><nowiki>{{#dpl:
|imagecontainer=WatchlistApple
|format=,\n*[[%PAGE%]]\n,
}}</nowiki></pre>
 
Would displayLists all images used on the [[WatchlistApple]] article page:.
 
'''Result:'''
{{#dpl:
|imagecontainer=WatchlistApple
|format=,\n*[[%PAGE%]]\n,
}}
 
==List images used even if not existing==
<!-- Extension prefix in other languages:
<pre>
{{#dpl:
|imagecontainer = Apple¦Orange
|openreferences=true
}}
</pre>
Lists all images used in the two ''Apple'' and ''Orange'' articles. <code>openreferences=true</code> lists non-existing images, including those not housed locally, such as images used from [https://meta.wikimedia.org/wiki/Wikimedia_Commons Wikimedia Commons]. Non-existing images are displayed as red links.
{{tempnote}}
'''Result:'''
 
==Display images used==
<pre>
{{#dpl:
|imagecontainer = Apple¦Orange
|openreferences=true
|escapelinks=false
}}
</pre>
{{tempnote}}
Lists all images used in the two ''Apple'' and ''Orange'' articles. <code>openreferences=true</code> lists non-existing images, including those not housed locally, such as images used from [https://meta.wikimedia.org/wiki/Wikimedia_Commons Wikimedia Commons]. Setting the parameter ''escapelinks'' to false, causes the display of existing images directly, rather than listing their names.
 
'''Result:'''
[[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