Content deleted Content added
No edit summary Tag: Reverted |
Reverted 1 edit by 2804:29B8:5161:2E33:BD3A:7743:CD0:AF9C (talk): Unexplained blanking |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1:
<!-- Categories where indicated at the bottom of this page, please. -->
{{high-risk|all=pages=
{{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>
{{
[ ...
}}
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
|-
|