Jump to content

Help:44

From DynamicPageList3 Manual

includematch

[edit source]

See: includematch (first example notes) for additional parameter use example.

Example:

This lists pages in the category Fruit examples, in the namespace Main, which contain (include) a call to the template Fruit-Infobox and with a grow parameter of that template (using includematch) to restrict results to those whose parameter value contains "Vines" or "vines" as a text string. The include parameter also includes the page name by default in the output, and the grows parameter value. The table parameter is then used to format the results into a (simple) table.

  • There is no pattern specified for the first element of the include statement. "VINES" would not match; the "i" modifier could be used with the regexp to match without case sensitivity if desired.


Code
{{#dpl:
|category     = Fruit examples
|namespace    = Main
|include      = {Fruit-Infobox}:grows
|includematch = /grows\s*=\s*[^¦]*[Vv]ines/s
|table        = class="wikitable", Page, Growth Area
}}
Result
Page Growth Area
Grape On vines

Result:

'include' all results example

[edit source]
The following
{{#dpl:
|category     = Fruit examples
|namespace    = 
|include      = {Fruit-Infobox}:grows
|table        = class="wikitable", Page, Growth Area
}}
Gives
Page Growth Area
Apple On trees
Grape On vines
Orange On trees
Plum
Banana On a tree-like plant
Mango On trees
Apricot On trees
Pear

distinct (false) no longer working

[edit source]
The following (worked in 3.6.1)
{{#dpl:
|titlematch = Controlling output format
|uses = Template:DPL parameter
|include = {DPL parameter}.dpl
|table = class="wikitable sortable", Name, Parameter, Purpose
|distinct = false
|count = 5
}}
Gives
Name Parameter Purpose
Controlling output format mode Provide basic control over the output of DPL3.
Controlling output format inlinetext To define the inline text used in [[Controll
Controlling output format gallerymode To define the mode for the gallery tag, such as tr
Controlling output format imageheight To define the heights attribute for t
Controlling output format imagewidth To define the widths attribute for th
Controlling output format format Customize the output format completely. Implicitly
Controlling output format listseparators An alias for format, see the [[Controlling o
Controlling output format secseparators Customize the output format of included sections.
Controlling output format multisecseparators Put a tag between multiple transcluded parts which
Controlling output format dominantsection Define a section with multiple occurrences as domi
Controlling output format table A simple syntax to create standard tabular output;
Controlling output format tablerow A simple syntax to precisely position tabular data
Controlling output format tablesortcol Define a column to be used as a sort key (requires
Controlling output format headingmode To control the output of the headings in a DPL3 wi
Controlling output format hlistattr Add attributes to the HTML heading/top level
Controlling output format hitemattr Add attributes all list item headings in
Controlling output format listattr Error: String exceeds 1,000 character limit.
Controlling output format itemattr Add attributes to HTML list items, depending
Controlling output format headingcount Decides, combined with [[Controlling output
Controlling output format userdateformat Define a special layout for date formatting.
Controlling output format shownamespace Restrict the appearance of the namespace name of a
Controlling output format escapelinks Determines if links are escaped as a link, or used
Controlling output format titlemaxlength To limit the number of characters of the title to
Controlling output format replaceintitle execute a string replacement operation on the <cod
Controlling output format columns Defines a column layout for the output.

<span sty

Controlling output format rows Define a row layout for the output. A "row" is a g
Controlling output format rowsize Define a row layout for the output. A "row" is a g
Controlling output format rowcolformat Defines layout properties (using allowed [[mw:Help

distinct (true)

[edit source]
The following (worked in 3.6.1)
{{#dpl:
|titlematch = Controlling output format
|uses = Template:DPL parameter
|include = {DPL parameter}.dpl
|table = class="wikitable sortable", Name, Parameter, Purpose
|distinct = true
|count = 5
}}
Gives
Name Parameter Purpose
Controlling output format mode Provide basic control over the output of DPL3.
Controlling output format inlinetext To define the inline text used in [[Controll
Controlling output format gallerymode To define the mode for the gallery tag, such as tr
Controlling output format imageheight To define the heights attribute for t
Controlling output format imagewidth To define the widths attribute for th
Controlling output format format Customize the output format completely. Implicitly
Controlling output format listseparators An alias for format, see the [[Controlling o
Controlling output format secseparators Customize the output format of included sections.
Controlling output format multisecseparators Put a tag between multiple transcluded parts which
Controlling output format dominantsection Define a section with multiple occurrences as domi
Controlling output format table A simple syntax to create standard tabular output;
Controlling output format tablerow A simple syntax to precisely position tabular data
Controlling output format tablesortcol Define a column to be used as a sort key (requires
Controlling output format headingmode To control the output of the headings in a DPL3 wi
Controlling output format hlistattr Add attributes to the HTML heading/top level
Controlling output format hitemattr Add attributes all list item headings in
Controlling output format listattr Error: String exceeds 1,000 character limit.
Controlling output format itemattr Add attributes to HTML list items, depending
Controlling output format headingcount Decides, combined with [[Controlling output
Controlling output format userdateformat Define a special layout for date formatting.
Controlling output format shownamespace Restrict the appearance of the namespace name of a
Controlling output format escapelinks Determines if links are escaped as a link, or used
Controlling output format titlemaxlength To limit the number of characters of the title to
Controlling output format replaceintitle execute a string replacement operation on the <cod
Controlling output format columns Defines a column layout for the output.

<span sty

Controlling output format rows Define a row layout for the output. A "row" is a g
Controlling output format rowsize Define a row layout for the output. A "row" is a g
Controlling output format rowcolformat Defines layout properties (using allowed [[mw:Help

titlematch (previously not working)

[edit source]
The following works
{{#dpl:
|namespace  = main
|titlematch = Controlling output format
}}
Gives
Cookies help us deliver our services. By using our services, you agree to our use of cookies.