Arbeiten mit DPL3: Difference between revisions

Created page with "= Basics of DynamicPageList3 (23.07.2025)= DynamicPageList3 generates lists of pages, page properties (metadata), and/or template parameter values, for display in other articles. Manual: https://dpl3.wikitide.org/wiki/Main_Page There are different parameters to structure '''which pages''' are included, '''what content''' from these pages is included, and '''how the output is formatted'''. == Inclusion Criteria: Page Selection == DPL3 needs criteria for what to include..."
 
No edit summary
Line 58: Line 58:
|resultsheader = <i>There are %PAGES% entries.</i>
|resultsheader = <i>There are %PAGES% entries.</i>
|include={ImageMetadata}:work-title:year:%PAGE%
|include={ImageMetadata}:work-title:year:%PAGE%
}}
== Output Format ==
The Basic output format of DPL3 functions is a list. Without styling, additional text that is included via [[Arbeiten mit DPL3#Output Volume| Output Volume]] appears directly next to the page name link.
There are some predefined styling options with many options for adjustment. Basic formatting includes the "mode" parameter:
* (mode=unordered) (default)
* (mode=ordered)
* (mode=none)
* (mode=inline)
** add (inlinetext=&nbsp; &bull; &nbsp;)
* (mode=category) (requires "ordermethod" with one of the values: title; titlewithoutnamespace; category,title; or user,title).
* (mode=userformat)
OR the "table" parameter:
* (include={ImageMetadata}:work-title:year |table=class="wikitable imageTable", Image, Work Title, Year)
=== Example ===
The example can be changed to see how the different parameters work in real time (using the Preview all changes can be observed while working on the parser function). Some include statements only make sense in combination with specific page selection criteria.
'''Result of the function call:'''
{{#dpl:
|uses=Template:ImageMetadata
|include={ImageMetadata}:work-title:year
|table=class="wikitable imageTable", Image, Work Title, Year
}}
}}