Jump to content

Examples/Parameter: multisecseparators (example 1)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This lists pages in category Primary Module (manual pages) that don't have "volume" or "page selection" in the title (nottitlematch), and each uses Template:DPL parameter. The include statement includes content from two templates from the pages, the page name of the page using the {DPL manual} template, and the {dpl parameter} parameter template's "name" and "purpose" parameter values, with the latter truncated to 50 characters.

format=Startall,Start,End,Endall where Startall, Start, End and Endall are wiki tags used to separate the list items:
  • Startall before all — e.g., may specify wikitext to begin a table (including headers).
  • Start before each — e.g., may specify wikitext to begin row, its cell and cell content.
  • End after each — e.g., may specify content to end a cell or row.
  • Endall after all — e.g., may specify content to end a table.
Note: |debug = 5 can be added to view any resultant wikitext given, and should always be put at the top of the statement, a value of 0 disables it.


Since the "DPL parameter" template is used multiple times on the same article, it lists the first and then each subsequent template use with its corresponding values. The listseparators parameter (an alias for format) sets the table wikitext along with an extra row between separate articles colored dark (navy), secseparators adds more columns for each section found and colors the first instance of template use orange, and since multisecseparators puts a tag between multiple transcluded parts which refer to (use) the same template or chapter, it colors the rest of of the "dpl parameter" template values, after the first, light blue.

Code
{{#dpl:
|category           = Primary Module
|nottitlematch      = %volume%¦%page selection%
|uses               = Template:DPL Parameter
|include            = {DPL manual}:[[%PAGE%]],{dpl parameter}:name:purpose[50]
|mode               = userformat
|listseparators     = ¶{¦class="wikitable sortable" ¶!colspan=3¦Fields cannot be formatted within the include¶¦-¶!Page ¶!Name ¶!Purpose,¶¦-,¶¦-¶¦class="dpl-dark-background" colspan=3¦¶¦-,¶¦}
|secseparators      = ¶¦,,¶¦class="dpl-orange-background"¦
|multisecseparators = ,¶¦-¶¦¶¦class="dpl-blue-background"¦
}}
Result


Fields cannot be formatted within the include
Page Name Purpose
Other parameters debug Sets debugging level.
allowcachedresults Cache query results to improve performance, keep
cacheperiod Defines the expiration period for the DPL3 cache.
goal Set the goal for DPL3 to either show pages
eliminate Suppress references to pages, templates, images,
reset Suppress references to pages, templates, images,
fixcategory Assign the article containing a DPL3 statement to
execandexit Process the command given as an argument and then
updaterules Define a set of rules which are executed to
deleterules Allow the mass deletion of wiki pages
Controlling output order ordermethod Sets the criteria used to order the list by;
order Controls the sort direction of the list;
ordercollation Defines the collating sequence for ordering.
tablesortmethod Improves DPL's sorting behavior for table columns
Cookies help us deliver our services. By using our services, you agree to our use of cookies.