Show templates parameters from an article (example): Difference between revisions
Content added Content deleted
m (Alianin moved page DPL:Example - Show Templates Parameters from an Article to Extension:DPL3/Example: Show templates parameters from an prticle without leaving a redirect: Changing namespaces.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{DPL |
{{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 |
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= |
title=Extension:DPL3/Parameters: Criteria for page selection |
||
|include={DPL |
|include={DPL manual}:subsection |
||
}}</nowiki></pre> |
}}</nowiki></pre> |
||
Line 15: | Line 15: | ||
<code>{{#dpl: |
<code>{{#dpl: |
||
title= |
title=Extension:DPL3/Parameters: Criteria for page selection |
||
|include={DPL |
|include={DPL manual}:subsection |
||
}}</code> |
}}</code> |
Revision as of 10:35, 12 July 2019
|
Manual | Examples | 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.
Using the format of {Template}:argument
this example will show the subsection given to Template:DPL manual used in the Extension:DPL3/Parameters: Criteria for page selection article.
This example:
{{#dpl: title=Extension:DPL3/Parameters: Criteria for page selection |include={DPL manual}:subsection }}
Would produce this output:
{{#dpl:
title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsection
}}