Module:Unsubst/doc: Difference between revisions

Content deleted Content added
m Reverted edits by 47.188.206.16 (talk) to last version by Anomie
Tags: Rollback Reverted
m Reverted 1 edit by 152.36.189.167 (talk) to last revision by Pppery
(19 intermediate revisions by 14 users not shown)
Line 1:
<!-- Categories where indicated at the bottom of this page, please. -->
{{Highhigh-risk| 3841439 |all-=pages = yes}}
{{Module rating|protected}}
 
Maintenance templates, such as {{tl|Citation needed}} or {{tl|Refimprove}}, should never be substituted. A trick to avoid that is to make a template substitute to its transcluded form. This module implements that trick.
Helper module to facilitate a substituted template transform into a template transclusion.
 
Maintenance templates, such as {{tl|Citation needed}} or {{tl|Refimprove}}, should never be substituted. A trick to avoid that is to make a template substitute to its transcluded form.
 
Infoboxes should use [[Module:Unsubst-infobox]], as should any other templates with parameters listed in block format by default.
Line 41 ⟶ 39:
 
These parameters can be manipulated using parser functions to provide more complicated options (note that in the parameters any parser function, or template or module invocation, should also have <code><nowiki>SAFESUBST:<noinclude /></nowiki></code>).
 
Parameter {{para|$template-name}} will override the subst'd templates name with the template name assigned to this parameter.
 
=== Example ===