Examples/Parameter: include (example 5): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (To track until I know better if this new behaviour is intentional or not) |
imported>FrozenPlum m (FrozenPlum moved page Controlling output volume/Parameter: include (example 5) to Examples/Parameter: include (example 5)) |
||
(One intermediate revision by the same user not shown) | |||
Line 7:
This selects the article [[Apple]] and includes the output of a surrogate template, since [[Apple]] doesn't use the specified template, instead of displaying the content of DPL3 displays a call to a template with the additional suffix ".default" giving the user a chance to either create the missing template, or correct the include/includepage reference.
{{note|This example and the corresponding DPL3 behavior is not currently working as
<pre>
|
Latest revision as of 01:17, 1 April 2023
Example
This selects the article Apple and includes the output of a surrogate template, since Apple doesn't use the specified template, instead of displaying the content of DPL3 displays a call to a template with the additional suffix ".default" giving the user a chance to either create the missing template, or correct the include/includepage reference.
{{#dpl: |titlematch = Apple |includepage = {Details}.example |table = class="wikitable sortable",Page,Surrogate template value }}
Result
{{#dpl: |titlematch = Apple |includepage = {Details}.example |table = class="wikitable sortable",Page,Surrogate template value }}