Template:Lst with substitution

Revision as of 01:44, 18 August 2026 by Planterror (talk | contribs)

An alternative to the LST parser function that allows one substring in the transcluded text to be substituted with another string.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page name1

no description

Stringrequired
Section name2

no description

Stringrequired
First substring to replace3

no description

Stringrequired
First replacement string4

no description

Stringrequired
Second substring to replace5

no description

Stringoptional
Second replacement string6

no description

Stringoptional
Third substring to replace7

no description

Stringoptional
Third replacement string8

no description

Stringoptional

Example usage

{{lst with substitution|Rapid Reload (BTD5)|lede|BTD5|Battles}}

Lua error in Module:Lst_with_substitution at line 4: bad argument #1 to 'gsub' (string expected, got nil).

{{lst with substitution|Semi Automatic Rifle (BTD5)|lede|BTD5|BMC|Bloons TD 5|Bloons Monkey City}}

Lua error in Module:Lst_with_substitution at line 4: bad argument #1 to 'gsub' (string expected, got nil).