Template talk:Infobox song
From Angelina Jordan Wiki
jazzstandards parameter
Currently, it is assumed that the given file sits in the compositons-0 directory. However, for "When You're Smiling"/"whenyoursmiling" it's actually in compositons-2. This could be solved in two ways:
- add an optional 2nd parameter like jazzstandardsfolder, which could be a single number, and would be assumed to be 0 when missing, or
- modify the
jazzstandardsparameter, so that it is added to the path ending in "compositions-", e.g. "0/summertime" for an exisitng entry. Which could be a nice way to try the new Replace Text extension... - make it smarter, so that a "0/" is automatically added if the string doesn't start with "^[0-9][/]". That's likely best achived with a Lua function.
--Most2dot0 (talk) 20:43, 3 June 2026 (UTC)
- I now already implemented the third option, based on
match()from Module:String. --Most2dot0 (talk) 21:50, 3 June 2026 (UTC)