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

Content added Content deleted
No edit summary
Line 1: Line 1:
{{DPL Manual|section=Examples|subsection=Show Templates Parameters from an Article}}
{{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 argument passed into a template used in an article.
The include parameter can be used to display the output value of a specific argument passed into a template used in an article.


Using the format of <code>{Template}:argument</code> this example will show the subsection given to Template:DPL Manual used in the DPL:Parameters:_Criteria_for_Page_Selection article.
Using the format of <code>{Template}:argument</code> this example will show the subsection given to Template:DPL manual used in the Extension:DPL3/Parameters: Criteria for page selection article.


This example:
This example:


<pre><nowiki>{{#dpl:
<pre><nowiki>{{#dpl:
title=DPL:Parameters:_Criteria_for_Page_Selection
title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL Manual}:subsection
|include={DPL manual}:subsection
}}</nowiki></pre>
}}</nowiki></pre>


Line 15: Line 15:


<code>{{#dpl:
<code>{{#dpl:
title=DPL:Parameters:_Criteria_for_Page_Selection
title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL Manual}:subsection
|include={DPL manual}:subsection
}}</code>
}}</code>