Images used (examples): Difference between revisions

Content added Content deleted
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: Line 1:
{{DPL manual|section=Examples|subsection=Display images used}}
{{DPL manual|section=Examples|subsection=Display images used}}


==List images used==
The following example:

<pre><nowiki>{{#dpl:
<pre><nowiki>{{#dpl:
imagecontainer=Watchlist
|imagecontainer=Apple
|format=,\n*[[%PAGE%]]\n,
|format=,\n*[[%PAGE%]]\n,
}}</nowiki></pre>
}}</nowiki></pre>


Would display all images used on the [[Watchlist]] article page:
Lists all images used on the [[Apple]] article page.

'''Result:'''
{{#dpl:
{{#dpl:
imagecontainer=Watchlist
|imagecontainer=Apple
|format=,\n*[[%PAGE%]]\n,
|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}}]]
-->