Template:Expand wikitext/doc

From blackwiki
< Template:Expand wikitext
Revision as of 07:44, 11 February 2020 by imported>Ans ({{BASEPAGENAME}})
Jump to navigation Jump to search

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 {{Expand wikitext}} 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!02>>}}}}Template:MultiReplace
  • {{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>}} → xx -

Bug

The input <nowiki>}-</nowiki> will be unstripped to &#125;- rather than }- before passed to framme:preprocess(),

  • {{Expand wikitext|<nowiki>{{2x|x}}-</nowiki>}} → {{2x|x}}-
    • {{#invoke:LuaCall|call|mw.text.nowiki|{{Expand wikitext|<nowiki>{{2x|x}}-</nowiki>}}}} → {{2x|x}&#125;-