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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Oops forgot to put back |escapelinks = false lol)
imported>FrozenPlum
m (Tweak again, since I'm inserting this into multiple pages/contexts, it needs to make sense for those also.)
Line 6: Line 6:
==Example==
==Example==


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.
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>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>

Revision as of 00:26, 16 April 2022

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 mode parameter could also be replaced by a format statement to provide greater control over formatting the output, such as |format = ,[[File:%TITLE%|40px]] to change the image size.

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

Result

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