Template:Lst with substitution: Difference between revisions
Jump to navigation
Jump to search
Planterror (talk | contribs) No edit summary |
Planterror (talk | contribs) sigh |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:lst with substitution|main|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}}}</includeonly><noinclude>{{/doc}}</noinclude> | <includeonly>{{#invoke:lst with substitution|main|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}}}|{{{7}}}|{{{8}}}}}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Revision as of 02:33, 26 August 2026
An alternative to the LST parser function that allows one substring in the transcluded text to be substituted with another string.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page name | 1 | no description | String | required |
| Section name | 2 | no description | String | required |
| First substring to replace | 3 | no description | String | required |
| First replacement string | 4 | no description | String | required |
| Second substring to replace | 5 | no description | String | optional |
| Second replacement string | 6 | no description | String | optional |
| Third substring to replace | 7 | no description | String | optional |
| Third replacement string | 8 | no description | String | optional |
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).|{{{7}}}|{{{8}}}}}
{{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).|{{{7}}}|{{{8}}}}}