Jump to content

Examples/Parameter: multisecseparators (example 3)

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 whose page title does nottitlematch "volume" OR "page selection". A selected page also uses Template:DPL Parameter and the results include an empty parameter from the {{DPL manual}} template (as none exist, creates the first column with page name automatically unless suppressed), and all contents and parameters of the {{DPL parameter}} surrogate (also known as phantom) template to format the second and third column of results. The mode is set to userformat, with listseparators specifying the table's opening wikitext and headers, and closing table code. secseparators specifies formatting for the first parameter name in the table, then uses the surrogate formatting template for additional rows in the same column. The multisecseparators parameter sets a dark blue background between multiple transcluded parts.

This example is advanced, for more simple examples of surrogate template use see include examples as related to including contents from templates, see the table and tablerow parameters for straightforward table examples.

Code
{{#dpl:
|category           = Primary Module
|nottitlematch	    = %volume%¦%page selection%
|uses               = Template:DPL Parameter
|include            = {DPL manual}:,{DPL parameter}.surrogateexample
|mode               = userformat
|listseparators     = ¶{¦class="wikitable sortable" ¶!colspan=3¦Includes a surrogate (phantom) template¶¦-¶!Page ¶!Name ¶!Purpose,¶¦-¶¦[[%PAGE%]]¶,¶¦-¶¦class="dpl-dark-background" colspan=3¦,¶¦}
|secseparators      = ,¶¦class="dpl-orange-background"¦,
|multisecseparators = ,¶¦-¶¦¶¦class="dpl-blue-background"¦
}}
Result


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