Show templates parameters from an article (example): Difference between revisions

m
This may need to get merged elsewhere, or greatly expanded to be a better example, maybe with some other output formatting (for now, fix the example so it works)
imported>FrozenPlum
m (This may need to get merged elsewhere, or greatly expanded to be a better example, maybe with some other output formatting (for now, fix the example so it works))
 
(9 intermediate revisions by 5 users not shown)
Line 1:
{{DPL manual|section=Examples|subsection=Show templates parameters from an article}}
 
The include parameter can be used to display the output value of a specific argumentparameter passed into a template used in an article, using the <code>{Template}:parameter</code> format.
 
Using the format of <code>{Template}:argument</code> thisThis example will show the subsection given to Template:{{Tl|DPL manual}} used in the Extension:DPL3/Parameters: [[Criteria for page selection]] article.:
 
<pre>
This example:
<code>{{#dpl:
|title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsectionsection
}}
</pre>
 
'''Result:'''<br>
<pre><nowiki>{{#dpl:
title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsection
}}</nowiki></pre>
 
{{#dpl:
Would produce this output:
|title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsectionsection
}}
 
[[Category:Miscellaneous examples]]
<code>{{#dpl:
title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsection
}}</code>
Anonymous user