Template:Expand wikitext/doc
Appearance
| This is a documentation subpage for Template:Expand wikitext. It may contain 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. Any arguments passed to {{Expand wikitext}} are available in the preprocessed code, letting this be used as a rudimentary way of using variables.
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.
Example
{{Expand wikitext|<nowiki>{{2x|x}}-</nowiki>}}→ {{2x|x}}-{{Expand wikitext|<nowiki>{{2x|x}} -</nowiki>}}→ xx -{{Expand wikitext|<nowiki><u>u</u><ref>text</ref></nowiki>}}→ <u>u</u><ref>text</ref>
See also
- {{Make code}}
- {{Call wikitext}} - Always unstrips nowiki tags and uses
|sourceCode=to avoid parameter overlap