Images used (examples): Difference between revisions
imported>FrozenPlum m (Add some of the working examples here, the others may be parcelled out to separate/sandbox pages later) |
imported>FrozenPlum m (Another) |
||
Line 1:
{{DPL manual|section=Examples|subsection=Display images used}}
==Gallery creation using 'format'==
'''Example:'''<br><br><!-- transclude example from subpage-->{{#lsth:Controlling output format/Parameter: format (example 4)|Example}}
{{example|base=Controlling output format|format|eg=4}}
'''Result:'''<br><!-- transclude example from subpage-->{{#lsth:Controlling output format/Parameter: format (example 4)|Result}}
==Images contained in article==
'''Example:'''<br><br><!-- transclude example from subpage-->{{#lsth:Criteria for page selection/Parameter: imagecontainer (example 1)|Example}}
{{example|base=Criteria for page selection|imagecontainer|eg=1}}
'''Result:'''<br><!-- transclude example from subpage-->{{#lsth:Criteria for page selection/Parameter: imagecontainer (example 1)|Result}}
|
Revision as of 03:49, 16 April 2022
|
Manual | Examples | Display images used |
Gallery creation using 'format'
Example:
{{#lsth:Controlling output format/Parameter: format (example 4)|Example}}
Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
Result:
{{#lsth:Controlling output format/Parameter: format (example 4)|Result}}
Images contained in article
Example:
{{#lsth:Criteria for page selection/Parameter: imagecontainer (example 1)|Example}}
Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
Result:
{{#lsth:Criteria for page selection/Parameter: imagecontainer (example 1)|Result}}
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]] }}
Result:
{{#dpl:
|imagecontainer = Apple
|format = ,File:%TITLE%
}}
List images used existing or not
{{#dpl: |imagecontainer = Apple¦Orange |openreferences=true }}
Lists all images used in the two Apple and 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.
Result:
Display images used
{{#dpl: |imagecontainer = Apple¦Orange |openreferences=true |escapelinks=false }}
Lists all images used in the two Apple and Orange articles. openreferences=true
lists non-existing images, including those not housed locally, such as images used from Wikimedia Commons. Setting the parameter escapelinks to false, causes the display of existing images directly, rather than listing their names.
Result: