Template:Expand wikitext/doc
< Template:Expand wikitext
Jump to navigation
Jump to search
Revision as of 08:44, 15 October 2021 by Wikipedia>Pppery (Tone down overblown warning, this template is not fundamentally dependent on nowiki tags)
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. 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. This feature does not work in the mobile app, visual editor, or Special:ExpandTemplates due to Phab:T203293.
Example
{{Expand wikitext|{{Make code|<<As of!2015!02>>}}}}
→ As of February 2015[update]{{Expand wikitext|<nowiki>{{Episode list/sublist | 1 = One Piece (season 15) | EpisodeNumber = {{{ep}}} | Title = An Explosive Situation! Luffy vs. Fake Luffy! | OriginalAirDate = {{Date|2011-10-02 +{{#expr:({{{ep}}})-517}} weeks }} }} </nowiki>|ep=518}}
→ 518"An Explosive Situation! Luffy vs. Fake Luffy!"9 October 2011
{{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>