Images used (examples): Difference between revisions
imported>FrozenPlum |
imported>FrozenPlum (remove tempnote template as openreferences was fixed in v3.5.0. Is now working as intended.) |
||
Line 49: | Line 49: | ||
</pre> |
</pre> |
||
Lists all images used in the ''Orange'' articles. <code>openreferences=true</code> lists non-existing images, including those not housed locally, such as images used from [https://meta.wikimedia.org/wiki/Wikimedia_Commons Wikimedia Commons]. Non-existing images are displayed as red links. |
Lists all images used in the ''Orange'' articles. <code>openreferences=true</code> lists non-existing images, including those not housed locally, such as images used from [https://meta.wikimedia.org/wiki/Wikimedia_Commons Wikimedia Commons]. Non-existing images are displayed as red links. |
||
{{tempnote}} |
|||
'''Result:''' |
'''Result:''' |
||
{{#dpl: |
|||
|imagecontainer = Orange |
|||
|openreferences=true |
|||
}} |
|||
==Display images used== |
==Display images used== |
||
Line 58: | Line 62: | ||
|openreferences=true |
|openreferences=true |
||
|escapelinks=false |
|escapelinks=false |
||
|format=,[[%PAGE%,{{!}}150px]]\n\n, |
|||
}} |
}} |
||
</pre> |
</pre> |
||
{{tempnote}} |
|||
Lists all images used in the |
Lists all images used in the ''Apple'' and ''Orange'' articles. <code>openreferences=true</code> lists non-existing images, including those not housed locally, such as images used from [https://meta.wikimedia.org/wiki/Wikimedia_Commons Wikimedia Commons]. Using <code>escapelinks=false</code> would display the image at full size, except formatting the output using <code>format=</code> allows control over the result, including display size. |
||
'''Result:''' |
'''Result:''' |
||
{{#dpl: |
|||
|imagecontainer = Orange |
|||
|openreferences=true |
|||
|escapelinks=false |
|||
|format=,[[%PAGE%,{{!}}150px]]\n\n, |
|||
}} |
|||
[[Category:Miscellaneous examples]] |
[[Category:Miscellaneous examples]] |
Revision as of 22:29, 16 January 2023
Page Template:Purgenote/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
|
Manual | Examples | Images used |
Gallery syntax
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}}
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:
{{#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 = Orange |openreferences=true }}
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.
Result: {{#dpl: |imagecontainer = Orange |openreferences=true }}
Display images used
{{#dpl: |imagecontainer = Orange |openreferences=true |escapelinks=false |format=,[[%PAGE%,{{!}}150px]]\n\n, }}
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.
Result:
{{#dpl: |imagecontainer = Orange |openreferences=true |escapelinks=false |format=,150px\n\n, }}