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:

  1. add an optional 2nd parameter like jazzstandardsfolder, which could be a single number, and would be assumed to be 0 when missing, or
  2. modify the jazzstandards parameter, 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...
  3. 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)