Images used (examples): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (add purgenote)
imported>FrozenPlum
m (Adjust a few things before moving)
Line 2: Line 2:
{{DPL manual|section=Examples|subsection=Display images used}}
{{DPL manual|section=Examples|subsection=Display images used}}


==Gallery creation using 'format'==
==Gallery syntax==
'''Example:'''<br><br><!-- transclude example from subpage-->{{#lsth:Controlling output format/Parameter: format (example 4)|Example}}
'''Example:'''<br><br><!-- transclude example from subpage-->{{#lsth:Controlling output format/Parameter: format (example 4)|Example}}
{{example|base=Controlling output format|format|eg=4}}
{{example|base=Controlling output format|format|eg=4}}


'''Result:'''<br><!-- transclude example from subpage-->{{#lsth:Controlling output format/Parameter: format (example 4)|Result}}
'''Result:'''<br><!-- transclude example from subpage-->{{#lsth:Controlling output format/Parameter: format (example 4)|Result}}



==Images contained in article==
==Images contained in article==
Line 30: Line 31:




==List images used existing or not==
==List images used (existing or not)==
<pre>
<pre>
{{#dpl:
{{#dpl:
|imagecontainer = Apple¦Orange
|imagecontainer = Apple¦Grape
|openreferences=true
|openreferences=true
}}
}}
Line 44: Line 45:
<pre>
<pre>
{{#dpl:
{{#dpl:
|imagecontainer = Apple¦Orange
|imagecontainer = Apple¦Grape
|openreferences=true
|openreferences=true
|escapelinks=false
|escapelinks=false

Revision as of 03:50, 24 April 2022

Page Template:Purgenote/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

Note: If the examples don't appear embedded within the page, please purge this page.
Manual Examples Display 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}}


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

This example is currently non-working, it may be replaced or removed at a later date to improve the clarity of this manual. As this needs to be done at a deliberate pace, the Gamepedia DPL3 Manual can be used in the interim, keeping in mind some functions may have changed.

Result:

Display images used

{{#dpl:
|imagecontainer = Apple¦Grape
|openreferences=true
|escapelinks=false
}}
This example is currently non-working, it may be replaced or removed at a later date to improve the clarity of this manual. As this needs to be done at a deliberate pace, the Gamepedia DPL3 Manual can be used in the interim, keeping in mind some functions may have changed.

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: