Examples/Parameter: mode (example 1)

From DynamicPageList3 Manual
Revision as of 23:52, 31 March 2023 by imported>FrozenPlum (FrozenPlum moved page Controlling output format/Parameter: mode (example 1) to Examples/Parameter: mode (example 1): Simplifying how things are structured)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

These create abbreviated lists of articles in Category:Fruit examples, each formatted either using an ordered list (numbered), and unordered list (bulleted), or the none list style (no list item markers):

{{#dpl:
|category      = Fruit examples
|titlematch    = %a%
|nottitlematch = %pl%¦%go%
|mode          = ordered
}}
{{#dpl:
|category      = Fruit examples
|titlematch    = %a%
|nottitlematch = %pl%¦%go%
|mode          = unordered
|count         = 3
}}
{{#dpl:
|category      = Fruit examples
|titlematch    = %a%
|nottitlematch = %pl%¦%go%
|mode          = none
|count         = 3
}}

Result

{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = ordered |count = 3 }}

{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = unordered |count = 3 }}

{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = none |count = 3 }}