Show templates parameters from an article (example): Difference between revisions
Content added Content deleted
m (→top: clean up, replaced: [[zh:Extension::{{subst:BASEPAGENAME}}]] → [[zh:扩展:{{subst:BASEPAGENAME}}]]) |
mNo 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 |
The include parameter can be used to display the output value of a specific parameter passed into a template used in an article, using the <code>{Template}:parameter</code> format. |
||
This example will show the subsection given to {{Tl|DPL manual}} used in the [[Extension:DPL3/Parameters: Criteria for page selection]] article: |
|||
⚫ | |||
This example: |
|||
⚫ | |||
title=Extension:DPL3/Parameters: Criteria for page selection |
title=Extension:DPL3/Parameters: Criteria for page selection |
||
|include={DPL manual}:subsection |
|include={DPL manual}:subsection |
||
}} |
}}</pre> |
||
Produces this output: |
|||
{{#dpl: |
|||
title=Extension:DPL3/Parameters: Criteria for page selection |
title=Extension:DPL3/Parameters: Criteria for page selection |
||
|include={DPL manual}:subsection |
|include={DPL manual}:subsection |
||
}} |
}} |
||
<!-- Extension prefix in other languages: |
<!-- Extension prefix in other languages: |
Revision as of 21:22, 1 August 2019
|
Manual | Examples | Show templates parameters from an article |
The include parameter can be used to display the output value of a specific parameter passed into a template used in an article, using the {Template}:parameter
format.
This example will show the subsection given to {{DPL manual}}
used in the Extension:DPL3/Parameters: Criteria for page selection article:
{{#dpl: title=Extension:DPL3/Parameters: Criteria for page selection |include={DPL manual}:subsection }}
Produces this output:
{{#dpl: title=Extension:DPL3/Parameters: Criteria for page selection |include={DPL manual}:subsection }}