Difference between revisions of "Template:Expand wikitext/doc"
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: | + | {{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>{{((}} | + | <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
| This is a documentation subpage for Template:Expand wikitext. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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