Help:Images used (examples)
From Dragon Mania Legends (DML) Wiki
|
Manual | Examples | Images used |
Gallery syntax
Example:
- Parameter: format (example 4)
The same result can be achieved with parser extension syntax, as seen below.
Example:
<dpl> namespace = File count = 3 format = <gallery mode="packed" widths="80px" heights="80px">,%PAGE%\n,,</gallery> </dpl>
Images contained in article
Example:
- Parameter: imagecontainer (example 1)
Example:
This lists images used in the Apple article and uses the format
parameter to format the resulting file link as a rendered image
{{#dpl: |imagecontainer = Apple |format = ,[[File:%TITLE%|40px]] }}
List images used (existing or not)
Example:
Lists all images used in the Orange articles. openreferences=true
lists non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Non-existing images are displayed as red links.
{{#dpl: |imagecontainer = Orange |openreferences=true }}
Display images used
Example:
Lists all images used in the Apple and Orange articles. openreferences=true
lists non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Using escapelinks=false
would display the image at full size, except formatting the output using format=
allows control over the result, including display size.
{{#dpl: |imagecontainer = Orange |openreferences=true |escapelinks=false |format=,[[%PAGE%,{{!}}50px]], }}
Random image
Example:
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 frequent repeats on page refresh is much, much higher.
{{#dpl: |category=Images:Fruit |randomcount=1 |format=,[[File:%TITLE%,{{!}}30px]] |allowcachedresults=no }}