Examples/Parameter: imagecontainer (example 1): Difference between revisions

Content added Content deleted
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
m (Give an option on how to format the output right in the example text, for better understanding, and for if/when this is sandbox tested.)
Line 6: Line 6:
==Example==
==Example==


This statement will show all images which are contained in the article [[Apple]]. Setting the parameter <code>escapelinks=false</code>, however, causes the image to be see directly, rather than having the file page listed.
This statement will show images contained in the [[Apple]] article. Setting the parameter <code>escapelinks=false</code> causes the image to be seen directly, rather than having the file page link listed. Setting <code>{{DPL|mode}}=none</code> removes the default unordered bullet formatting before the item, so only the image is displayed. The <code>mode</code> parameter could also be replaced by a <code>{{DPL|format}}</code> statement to provide greater control over formatting the output, such as <code><nowiki>|format = ,[[File:%TITLE%|40px]]</nowiki></code> to change the image size.


<pre>
<pre>
Line 12: Line 12:
|imagecontainer = Apple
|imagecontainer = Apple
|escapelinks = false
|escapelinks = false
|mode = none
}}
}}
</pre>
</pre>
Line 18: Line 19:
{{#dpl:
{{#dpl:
|imagecontainer = Apple
|imagecontainer = Apple
|mode = none
|escapelinks = false
}}
}}


<noinclude>
<noinclude>
<!--Normally, we would only get the names of images that really exist. But because we have specified openreferences=true we will also see non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Non-existing images will be displayed as red links. ¦Orange -->
<!--Normally, we would only get the names of images that really exist. But because we have specified openreferences=true (currently non-working), we will also see non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Non-existing images will be displayed as red links. ¦Orange -->
[[Category:Select by link-related criteria‎]]
[[Category:Select by link-related criteria‎]]
[[Category:Uses imagecontainer parameter]]
[[Category:Uses imagecontainer parameter]]
[[Category:Uses mode parameter]]
</noinclude>
</noinclude>