Toggle menu
15
236
76
27.7K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Expand wikitext/doc: Difference between revisions

Template page
Created page with "{{Distinguish|Template:Eval}} {{Documentation subpage}} {{#ifeq:{{NAMESPACENUMBER}}|10|{{lua|Module:Expand wikitext}}}} Interprets the input as wikitext using the <code>frame:preprocess</code> function. Any arguments passed to {{tl|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 opti..."
 
(No difference)

Latest revision as of 03:10, 18 February 2025

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|{{Make code|<<As of!2015!02>>}}}}Template:As of
  • <table>{{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}}</table>
Template:Episode list/sublist
  • {{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