Arbeiten mit DPL3: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
Manual: https://dpl3.wikitide.org/wiki/Main_Page
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'''.
Basic use of DPL3 works similar to that of Templates / Parser Functions:
 
<code>
<nowiki>
{{#dpl:
|parameter1 = xy
|parameter2 = yx
}}
</nowiki>
</code>
 
The different parameters structure '''which pages''' are included, '''what content''' from these pages is included, and '''how the output is formatted'''.


== Inclusion Criteria: Page Selection ==
== Inclusion Criteria: Page Selection ==
Line 18: Line 29:
** (uses=Template:ImageMetadata)
** (uses=Template:ImageMetadata)
* title (Select one single page by its (namespace and) title, requires additional parameters)
* title (Select one single page by its (namespace and) title, requires additional parameters)
** title=Projektseite |include=#Temporäre Hilfe-Seiten
** (title=Projektseite |include=#Temporäre Hilfe-Seiten)
* contents
* contents


Line 71: Line 82:
* (mode=none)
* (mode=none)
* (mode=inline)
* (mode=inline)
** add (inlinetext=&nbsp; &bull; &nbsp;)
** (inlinetext=&nbsp; &bull; &nbsp;)
* (mode=category) (requires "ordermethod" with one of the values: title; titlewithoutnamespace; category,title; or user,title).
* (mode=category) (requires "ordermethod" with one of the values: title; titlewithoutnamespace; category,title; or user,title).
* (mode=userformat)
* (mode=userformat)