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)
No edit summary
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))
 
(4 intermediate revisions by 2 users not shown)
Line 1:
{{PAGENAME}} has been vandalized by the pagename vandal from California.{{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 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:
 
<pre>{{#dpl:
{{#dpl:
|title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsectionsection
}}</pre>
}}
}}</pre>
 
'''Result:'''<br>
Produces this output:
 
{{#dpl:
|title=Extension:DPL3/Parameters: Criteria for page selection
|include={DPL manual}:subsectionsection
}}
 
[[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}}]]
-->
Anonymous user