Images used (examples): Difference between revisions

Content added Content deleted
imported>FrozenPlum
(Remove {{purgenote}} (no longer needed))
imported>FrozenPlum
(Add a random image example)
Line 19: Line 19:


==Images contained in article==
==Images contained in article==
'''Example:'''<br><br><!-- transclude example from subpage-->{{#lsth:Criteria for page selection/Parameter: imagecontainer (example 1)|Example}}
'''Example:'''<br><!-- transclude example from subpage-->{{#lsth:Criteria for page selection/Parameter: imagecontainer (example 1)|Example}}
{{example|base=Criteria for page selection|imagecontainer|eg=1}}
{{example|base=Criteria for page selection|imagecontainer|eg=1}}


Line 41: Line 41:


==List images used (existing or not)==
==List images used (existing or not)==
'''Example''':<br>
Lists all images used in the ''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.

<pre>
<pre>
{{#dpl:
{{#dpl:
Line 47: Line 50:
}}
}}
</pre>
</pre>

Lists all images used in the ''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.


'''Result:'''
'''Result:'''
Line 56: Line 59:


==Display images used==
==Display images used==
'''Example:'''<br>
Lists all images used in the ''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]. Using <code>escapelinks=false</code> would display the image at full size, except formatting the output using <code>format=</code> allows control over the result, including display size.

<pre>
<pre>
{{#dpl:
{{#dpl:
Line 61: Line 67:
|openreferences=true
|openreferences=true
|escapelinks=false
|escapelinks=false
|format=,[[%PAGE%,{{!}}150px]]\n\n,
|format=,[[%PAGE%,{{!}}50px]],
}}
}}
</pre>
</pre>


Lists all images used in the ''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]. Using <code>escapelinks=false</code> would display the image at full size, except formatting the output using <code>format=</code> allows control over the result, including display size.


'''Result:'''
'''Result:'''
Line 73: Line 78:
|openreferences=true
|openreferences=true
|escapelinks=false
|escapelinks=false
|format=,[[%PAGE%,{{!}}150px]]\n\n,
|format=,[[%PAGE%,{{!}}50px]],
}}
}}

==Random image==
'''Example:'''<br>
Displays one random image from the given category, formatted to display the image itself. Note that if only a small number of images exist, the likelihood of repeats on page refresh is much, much higher.
<pre>
{{#dpl:
|category=Images:Fruit
|randomcount=1
|format=,[[File:%TITLE%,{{!}}30px]]
}}
</pre>

'''Result:'''
{{#dpl:
|category=Images:Fruit
|randomcount=1
|format=,[[File:%TITLE%,{{!}}30px]]
}}

[[Category:Miscellaneous examples]]
[[Category:Miscellaneous examples]]