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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
m (formatting)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{noedit}}</noinclude><!--
<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!--
This is the example preloaded for testing, press "Show Preview" to see
This is the example preloaded for testing, press "Show Preview" to see
the example working (at the bottom of the page). If you save this page,
the example working (at the bottom of the page). If you save this page,
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 (at full-size), rather than having the file page link listed. Setting <code>{{DPL|mode}}=''none''</code> removes the default unordered list (bullet) formatting, so the image appears without a bullet in front of it. The <code>{{DPL|escapelinks}}</code> and <code>mode</code> parameters could also be replaced by a <code>{{DPL|format}}</code> statement to provide greater control over formatting the output (see [[Display images used (example)]]).


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


<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:Uses imagecontainer parameter]]
[[Category:Uses imagecontainer parameter]]
[[Category:Uses mode parameter]]
</noinclude>
</noinclude>

Latest revision as of 07:33, 1 April 2023

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

This statement will show images contained in the Apple article. Setting the parameter escapelinks=false causes the image to be seen directly (at full-size), rather than having the file page link listed. Setting mode=none removes the default unordered list (bullet) formatting, so the image appears without a bullet in front of it. The escapelinks and mode parameters could also be replaced by a format statement to provide greater control over formatting the output (see Display images used (example)).

{{#dpl:
|imagecontainer = Apple
|escapelinks = false
|mode = none
}}

Result

{{#dpl: |imagecontainer = Apple |escapelinks = false |mode = none }}