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

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.
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:
==Example==
 
This statement will show all images which are contained in the article [[Apple]] article. Setting the parameter <code>escapelinks=false</code>, however, causes the image to be seeseen 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>
Line 12:
|imagecontainer = Apple
|escapelinks = false
|mode = none
}}
</pre>
Line 18 ⟶ 19:
{{#dpl:
|imagecontainer = Apple
|mode = none
|escapelinks = false
}}
 
<noinclude>
<!--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:Uses imagecontainer parameter]]
[[Category:Uses mode parameter]]
</noinclude>
Anonymous user