Difference between revisions of "Template:Expand wikitext/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pppery
m (Pppery moved page Template:Preprocess/doc to Template:Expand wikitext/doc: Per RM discussion)
imported>Pppery
(Per RM discussion on talk)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{lua|Module:Preprocess}}
+
{{lua|Module:Expand wikitext}}
 
Interprets the input as wikitext using the <code>[[mw:Extension:Scribunto/Lua reference manual#frame:preprocess|frame:preprocess]]</code> function. If the entire input is in a nowiki tag, or if the optional parameter {{para|unstrip|yes}} is specified, first extracts the contents of nowiki tags before preprocessing. Any arguments passed to {{tl|preprocess}} are available in the preprocessed code, letting this be used as a rudimentary way of using variables.   
 
Interprets the input as wikitext using the <code>[[mw:Extension:Scribunto/Lua reference manual#frame:preprocess|frame:preprocess]]</code> function. If the entire input is in a nowiki tag, or if the optional parameter {{para|unstrip|yes}} is specified, first extracts the contents of nowiki tags before preprocessing. Any arguments passed to {{tl|preprocess}} are available in the preprocessed code, letting this be used as a rudimentary way of using variables.   
  
 
== Example ==
 
== Example ==
<code>{{((}}Preprocess|{{tlp|Make code|<<As of!2015>>}}{{))}}</code> → {{Preprocess|{{Make code|<<As of!2015>>}}}}
+
<code>{{((}}Expand wikitext|{{tlp|Make code|<<As of!2015>>}}{{))}}</code> → {{Expand wikitext|{{Make code|<<As of!2015>>}}}}
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
[[Category:Documentation assistance templates]]
 
[[Category:Documentation assistance templates]]
 
[[Category:Wikitext processing templates]]
 
[[Category:Wikitext processing templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 21:57, 12 March 2019

Interprets the input as wikitext using the frame:preprocess function. If the entire input is in a nowiki tag, or if the optional parameter |unstrip=yes is specified, first extracts the contents of nowiki tags before preprocessing. Any arguments passed to {{preprocess}} are available in the preprocessed code, letting this be used as a rudimentary way of using variables.

Example

{{Expand wikitext|{{Make code|<<As of!2015>>}}}}Template:MultiReplace