Difference between revisions of "Template:Expand wikitext"

From blackwiki
Jump to navigation Jump to search
imported>RMCD bot
(Notifying of move discussion on Template talk:Preprocess)
imported>RMCD bot
(Removing notice of move discussion)
Line 1: Line 1:
<noinclude>{{User:RMCD bot/subject notice|1=Template:Expand wikitext|2=Template talk:Preprocess#Requested move 4 March 2019 }}
+
<noinclude>{{pp-template|small=yes}}</noinclude>{{#invoke:Preprocess|main|{{{1}}}|unstrip={{{unstrip|}}}}}<noinclude>
</noinclude><noinclude>{{pp-template|small=yes}}</noinclude>{{#invoke:Preprocess|main|{{{1}}}|unstrip={{{unstrip|}}}}}<noinclude>
 
 
{{doc}}
 
{{doc}}

Revision as of 10:18, 12 March 2019

Script error: No such module "Preprocess".

50px Template documentation[view] [edit] [history] [purge]

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>>}}}}Script error: No such module "Preprocess".
  • {{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}}Script error: No such module "Preprocess".
  • {{Expand wikitext|<nowiki>{{2x|x}} -</nowiki>}}Script error: No such module "Preprocess".