Content deleted Content added
Undid revision 1263623150 by 2001:1670:18:2288:284A:9C05:EFBF:FB32 (talk) - rvv |
Reverted 1 edit by 2804:29B8:5161:2E33:BD3A:7743:CD0:AF9C (talk): Unexplained blanking |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 2:
{{high-risk|all=pages=yes}}
{{Module rating|protected}}
{{lua|Module:Template invocation|noprotcat=yes}}
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.
Line 8 ⟶ 9:
=== Usage ===
To turn a template into a self-substituting template, wrap the existing template code with:
<pre>
{{
[ ... existing template code ... ]
Line 25:
<pre>
{{
[ ... existing template code ... ]
Line 45:
Consider a template Template:Example containing the following code:
<pre>
{{
[ ... Template code goes here ... ]
Line 53:
{| class="wikitable"
|-
! Original !! Result
|-
|