Content deleted Content added
Correct the examples' output based on my real testing at https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&diff=prev&oldid=1234444513 |
Reverted 1 edit by 2804:29B8:5161:2E33:BD3A:7743:CD0:AF9C (talk): Unexplained blanking |
||
(6 intermediate revisions by 6 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
|-
|