Show templates parameters from an article (example): Difference between revisions
Content added Content deleted
imported>FrozenPlum m (12 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.) |
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)) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
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. |
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 [[ |
This example will show the subsection given to {{Tl|DPL manual}} used in the [[Criteria for page selection]] article: |
||
<pre> |
<pre> |
||
{{#dpl: |
|||
title= |
|title=Criteria for page selection |
||
|include={DPL manual}: |
|include={DPL manual}:section |
||
⚫ | |||
}} |
|||
⚫ | |||
'''Result:'''<br> |
|||
Produces this output: |
|||
{{#dpl: |
{{#dpl: |
||
title= |
|title=Criteria for page selection |
||
|include={DPL manual}: |
|include={DPL manual}:section |
||
}} |
}} |
||
[[Category:Miscellaneous examples]] |
|||
<!-- Extension prefix in other languages: |
|||
[[de:Erweiterung:{{subst:BASEPAGENAME}}]] |
|||
[[es:Extensión:{{subst:BASEPAGENAME}}]] |
|||
[[fr:Extension:{{subst:BASEPAGENAME}}]] |
|||
[[it:Estensione:{{subst:BASEPAGENAME}}]] |
|||
[[nl:Uitbreiding:{{subst:BASEPAGENAME}}]] |
|||
[[pl:Rozszerzenie:{{subst:BASEPAGENAME}}]] |
|||
[[pt:Extensão:{{subst:BASEPAGENAME}}]] |
|||
[[ru:Расширение:{{subst:BASEPAGENAME}}]] |
|||
[[zh:扩展:{{subst:BASEPAGENAME}}]] |
|||
--> |
Latest revision as of 05:45, 3 April 2022
|
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 Criteria for page selection article:
{{#dpl: |title=Criteria for page selection |include={DPL manual}:section }}
Result:
{{#dpl: |title=Criteria for page selection |include={DPL manual}:section }}