Module:Unsubst/doc: Difference between revisions

Content deleted Content added
Fix
Reverted 1 edit by 2804:29B8:5161:2E33:BD3A:7743:CD0:AF9C (talk): Unexplained blanking
 
(2 intermediate revisions by 2 users not shown)
Line 9:
 
=== Usage ===
 
To turn a template into a self-substituting template, wrap the existing template code with:
<pre>
{{SAFESUBSTsafesubst:<noinclude />#invoke: Unsubst||$B=
 
[ ... existing template code ... ]
Line 26 ⟶ 25:
 
<pre>
{{SAFESUBSTsafesubst:<noinclude />#invoke: Unsubst||$params=[ parameters ]|$aliases=[ aliases ]|$flags=[ flags ]|$B=
 
[ ... existing template code ... ]
Line 46 ⟶ 45:
Consider a template Template:Example containing the following code:
<pre>
{{SAFESUBSTsafesubst:<noinclude />#invoke: Unsubst||foo=bar |date=__DATE__ |$B=
 
[ ... Template code goes here ... ]
Line 54 ⟶ 53:
 
{| class="wikitable"
|-
! Original !! Result
|-