Template:Lst with substitution/doc: Difference between revisions
Jump to navigation
Jump to search
Planterror (talk | contribs) holy shit it worked maybe I can finally stop fucking around with multiple lede sections |
Planterror (talk | contribs) wait i think it actually worked perfectly????/ |
||
| Line 25: | Line 25: | ||
"label": "Second substring to replace", | "label": "Second substring to replace", | ||
"type": "string", | "type": "string", | ||
"required": | "required": false | ||
}, | }, | ||
"6": { | "6": { | ||
"label": "Second replacement string", | "label": "Second replacement string", | ||
"type": "string", | "type": "string", | ||
"required": | "required": false | ||
} | } | ||
}, | }, | ||
Revision as of 02:02, 18 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 |
Example usage
{{lst with substitution|Rapid Reload (BTD5)|lede|BTD5|Battles}}
It reduces its attack cooldown by a flat 0.49 seconds, effectively increasing its attack speed by roughly 30% (roughly 37.4% if crosspathed with The Big One).