Template:Expand wikitext
(Redirected from Template:Preprocess)
{{{1}}}
This template's <nowiki>-stripping feature does not work in the Visual Editor (Phab:T203293) or Special:ExpandTemplates (see Phab:T199852). |
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 {{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>>}}}}
→ 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}}
→ Lua error in package.lua at line 80: module 'Module:Table empty cell' not found.
{{Expand wikitext|<nowiki>{{2x|x}} -</nowiki>}}
→ Template:2x -
The above documentation is transcluded from Template:Expand wikitext/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |