Images used (examples): Difference between revisions

From DynamicPageList3 Manual
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}}]]
-->

Revision as of 02:50, 3 April 2022

Manual Examples Display images used

List images used

{{#dpl:
|imagecontainer=Apple
|format=,\n*[[%PAGE%]]\n,
}}

Lists all images used on the Apple article page.

Result: {{#dpl: |imagecontainer=Apple |format=,\n*%PAGE%\n, }}

List images used even if not existing

{{#dpl:
|imagecontainer = Apple¦Orange
|openreferences=true
}}

Lists all images used in the two Apple and Orange articles. openreferences=true lists non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Non-existing images are displayed as red links.

This example is currently non-working, it may be replaced or removed at a later date to improve the clarity of this manual. As this needs to be done at a deliberate pace, the Gamepedia DPL3 Manual can be used in the interim, keeping in mind some functions may have changed.

Result:

Display images used

{{#dpl:
|imagecontainer = Apple¦Orange
|openreferences=true
|escapelinks=false
}}
This example is currently non-working, it may be replaced or removed at a later date to improve the clarity of this manual. As this needs to be done at a deliberate pace, the Gamepedia DPL3 Manual can be used in the interim, keeping in mind some functions may have changed.

Lists all images used in the two Apple and Orange articles. openreferences=true lists non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Setting the parameter escapelinks to false, causes the display of existing images directly, rather than listing their names.

Result: