Examples/Parameter: title (example 2): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== This example will take all invocations of template "Color" in article '...")
 
imported>FrozenPlum
m (Fix this example now that there's a surrogate to use it with (created for another example))
Line 6: Line 6:
==Example==
==Example==


This example will take all invocations of template "Color" in article '''[[Apple]]''' and will include and apply "Template:Color". The output will be separated, at the top of each page, by horizontal lines.
This example will take all invocations of template "Color" in article '''[[Apple]]''' and will include and apply "Template:Color.templatevalues". The output will be separated, at the top of each page, by horizontal lines.


<pre>
<pre>
{{#dpl:
{{#dpl:
|title=Apple
|title=Apple
|include={Color}
|include={Color}.templatevalues
|mode = userformat
|mode = userformat
|secseparators=\n----\n
|secseparators=\n----\n
Line 21: Line 21:
{{#dpl:
{{#dpl:
|title=Apple
|title=Apple
|include={Color}
|include={Color}.templatevalues
|mode = userformat
|mode = userformat
|secseparators=\n----\n
|secseparators=\n----\n
Line 32: Line 32:
[[Category:Uses mode parameter]]
[[Category:Uses mode parameter]]
[[Category:Uses secseparators parameter]]
[[Category:Uses secseparators parameter]]
[[Category:Category:Uses a surrogate template]]
</noinclude>
</noinclude>

Revision as of 01:11, 16 April 2022

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

Example

This example will take all invocations of template "Color" in article Apple and will include and apply "Template:Color.templatevalues". The output will be separated, at the top of each page, by horizontal lines.

{{#dpl:
|title=Apple
|include={Color}.templatevalues
|mode = userformat
|secseparators=\n----\n
}}

Result

{{#dpl: |title=Apple |include={Color}.templatevalues |mode = userformat |secseparators=\n----\n }}