Template talk:quote-song
Suggestions
editI think this template should also have a song writer field and/or a writing credits field (this sometimes differs, see for example this song, which was written by Richard Ashcroft, but later credited to Jagger/Richards). Also, I think "composer" is not a good term, rather it should be "artist". --The Evil IP address 11:05, 25 September 2011 (UTC)
What am I doing wrong?
edit{{|quote-song |year=1961 |composer=พิพัฒน์ บริบูรณ์ (Pipat Boriboon) |title=ผู้ใหญ่ลี (Village Chief Lee) |url=http://www.hawaii.edu/thai/thaisongs/villMain.htm |album=ศักดิ์ศรี ศรีอักษร (Saksri Sriaksorn ) |passage=พ.ศ. 2504 ผู้ใหญ่ลี ตี กลอง ประชุม (A.D. 1961, Village Chief Lee beat the meeting gong }} --Pawyilee 09:44, 17 October 2011 (UTC)
{{quote-song |year=1961 |composer=พิพัฒน์ บริบูรณ์ (Pipat Boriboon) |title=ผู้ใหญ่ลี (Village Chief Lee) |url=http://www.hawaii.edu/thai/thaisongs/villMain.htm |album=ศักดิ์ศรี ศรีอักษร (Saksri Sriaksorn ) |passage=พ.ศ. 2504 ผู้ใหญ่ลี ตี กลอง ประชุม (A.D. 1961, Village Chief Lee beat the meeting gong }} (ie, without first "|") yields:
- Lua error in Module:quote at line 2959: Parameter 1 is required.
Edits to the template
editHi, @Fumiko Take. I noticed you made some edits to this template, but reverted them. Is there anything I can help you with? — SMUconlaw (talk) 15:35, 26 March 2016 (UTC)
Album should not be mandatory
editNot all songs are released on albums. Some songs predate albums as a technology. Some songs are released as singles, where the title of the "album" is just the title of the song. Some songs are only performed live and never "released" on an album. Some songs are released on many albums, and there is no point in arbitrarily choosing one to list when it is entirely irrelevant. --WikiTiki89 18:39, 14 July 2016 (UTC)
- Good point. Let me look into this. — SMUconlaw (talk) 18:49, 14 July 2016 (UTC)
- @Wikitiki89: OK, try the template and see if it works properly. — SMUconlaw (talk) 15:57, 15 July 2016 (UTC)
- Seems to work fine (see мало). Thanks! --WikiTiki89 16:00, 15 July 2016 (UTC)
quote-poem
editDoes this exist anywhere? If not might make sense to create a template for it. – Jberkel (talk) 11:51, 24 August 2016 (UTC)
- What special features does a poem require that are not already present in existing templates like
{{quote-book}}
? For instance, it is possible to use{{quote-book}}
and indicate where the line breaks are using obliques: "I wandered lonely as a cloud / That floats on high o'er vales and hills, / When all at once I saw a crowd, / A host, of golden daffodils; […]". — SMUconlaw (talk) 13:08, 24 August 2016 (UTC)- Yes, that's what I've been using so far. There's nothing missing, but the metadata does not match exactly. For instance the title of the poem is usually not the title of the book. But maybe that's not a huge problem. – Jberkel (talk) 16:33, 24 August 2016 (UTC)
- I usually put the title of the poem in the
|chapter=
parameter, and the book title in|title=
. — SMUconlaw (talk) 19:28, 24 August 2016 (UTC)
- I usually put the title of the poem in the
- Yes, that's what I've been using so far. There's nothing missing, but the metadata does not match exactly. For instance the title of the poem is usually not the title of the book. But maybe that's not a huge problem. – Jberkel (talk) 16:33, 24 August 2016 (UTC)
Song titles with numbers
editCurrently get formatted as "chapter <number>" (e.g. baffo). – Jberkel 22:21, 1 March 2018 (UTC)
- Hmmm, oh dear, this could be tricky to fix because
{{quote-song}}
works off the same backend ({{quote-meta/source}}
) as all the other quote templates. One workaround would be to indicate the title as "1940 [title]", because the backend would then not interpret this as a chapter number. — SGconlaw (talk) 08:34, 2 March 2018 (UTC)
- Discussion moved from User talk:Sgconlaw.
Then please provide a version of the markup which is appropriate and doesn't create a "stripped" tag or misnesting in the parent template then. ShakespeareFan00 (talk) 17:32, 23 December 2018 (UTC)
- That particular line explains to editors how to use "nowiki" tags. Obviously the opening tag cannot possibly have a slash in front. The whole sample line is already surrounded by
<nowiki>
tags; I have no idea why it is generating an error. — SGconlaw (talk) 17:36, 23 December 2018 (UTC)
Automated transliteration
editPlease add automated transliteration fro non-Roman based languages like most templates do. --Anatoli T. (обсудить/вклад) 08:22, 29 December 2018 (UTC)
- @Atitarev I implemented this for all quote-* templates. Benwing2 (talk) 06:13, 9 February 2019 (UTC)
Song from a film
editSee ось. I put the film name in |album=
along with |format=film
, which more or less works, but is there a better way? Benwing2 (talk) 06:12, 9 February 2019 (UTC)
- @Sgconlaw Benwing2 (talk) 06:12, 9 February 2019 (UTC)
- Quote from the original soundtrack album instead. — SGconlaw (talk) 15:45, 9 February 2019 (UTC)
- @Sgconlaw For old, non-US films this may not exist. Benwing2 (talk) 06:13, 10 February 2019 (UTC)
- I would think that these days pretty much any film score is available in an album. However, if it is really the case that there is no album, then your suggested solution seems like a good one. — SGconlaw (talk) 09:44, 10 February 2019 (UTC)
- @Sgconlaw For old, non-US films this may not exist. Benwing2 (talk) 06:13, 10 February 2019 (UTC)
- Quote from the original soundtrack album instead. — SGconlaw (talk) 15:45, 9 February 2019 (UTC)
Broken authorlink parameter
editIt seems like some change was just made that broke the authorlink parameter, seemingly in revision #69077202. Compare the w:Alanis Morissette link on sixty-nine (yes, the first two digits of the revision number I just mentioned) previously with how it is now (as of typing). Pinging Sgconlaw. -BRAINULATOR9 (TALK) 02:43, 10 September 2022 (UTC)
- @Brainulator9: it wouldn’t have been the most recent edit that introduced the issue but some underlying change to Module:quote. Anyway, I’ve addressed it. — Sgconlaw (talk) 05:23, 10 September 2022 (UTC)
Needs a way to accommodate songs where the month of release is known but the day isn't
editWith some songs, such as this one, the year and month of release are known (in this case, December 1966), but the precise day isn't. Currently, if you put a year and month, but no day, into date=
, it defaults to the first day of the month, which is unlikely to be correct (for instance, in the present case, it's one of the few days when it couldn't've been released, as the song wasn't even recorded until 5 December). In order to accommodate songs where the month, but not the day, of release is known, the template should simply display the year and month (without adding in any guess at the day) if date=
is provided with a year and month without specifying a day. Whoop whoop pull up Bitching Betty ⚧️ Averted crashes 00:54, 1 February 2023 (UTC)
- You can use
|year=1966|month=December
to accomplish this, even though that's not in the documentation. That said, I agree that|date=1966-12
should default to just displaying the year and month without the day. The same applies to all the quotation templates based on Module:quote (the relevant code is actually in Module:time). 70.172.194.25 01:03, 1 February 2023 (UTC)- This is because the quote templates use {{#time}}, and it is the default behaviour of that function to add the first of the month of the to a date like “1966-2”. It’s not something we can (or perhaps ought to) change. As has been mentioned, use
|month=
and|year=
. I’ll add it to the documentation. — Sgconlaw (talk) 01:35, 1 February 2023 (UTC)- We can change the output in such cases if we want, by editing the Lua module. But if you think we shouldn't, fair enough.
- I guess one reason not to is that it would necessarily be an ad hoc solution. Even if we wrote some pattern matching code to handle the specific case of
|date=1966-12
correctly,|date=December 1966
and|date=1966 December
would still not be handled properly. Of course we could manually write code to handle those cases too. But in the end the complexity of the code would be increased and we may not even end up handling all possible cases properly. 70.172.194.25 03:59, 1 February 2023 (UTC)- I recall @Benwing2, who is one of our Lua experts, mentioning before that it is best to rely on the built-in functions where these exist, and not to create ad hoc “solutions” which then have to be constantly maintained. — Sgconlaw (talk) 04:55, 1 February 2023 (UTC)
- @Sgconlaw, Whoop whoop pull up I agree in this case with User:Sgconlaw. In general I'm not opposed to adding extra logic to make things more DWIM ("do what I mean"), but dates are notoriously hairy to handle properly, and in a case like this where we're using a built-in function to allow lots of different date formats, it just seems like asking for trouble to try and hack around its default behavior. Benwing2 (talk) 05:32, 1 February 2023 (UTC)
- I recall @Benwing2, who is one of our Lua experts, mentioning before that it is best to rely on the built-in functions where these exist, and not to create ad hoc “solutions” which then have to be constantly maintained. — Sgconlaw (talk) 04:55, 1 February 2023 (UTC)
- This is because the quote templates use {{#time}}, and it is the default behaviour of that function to add the first of the month of the to a date like “1966-2”. It’s not something we can (or perhaps ought to) change. As has been mentioned, use
Links to YouTube
edit@Ioaxxere: is this, while cool, advisable? Unlike the Wikimedia Commons, I’m concerned that we won’t be able to distinguish between content that is legitimately on the site and content that has been uploaded in breach of copyright. — Sgconlaw (talk) 05:16, 5 February 2024 (UTC)
- @Sgconlaw when possible, I try to link to a video on the artist's official channel. Ioaxxere (talk) 13:41, 5 February 2024 (UTC)
- @Ioaxxere: OK, great. Do the edits you made ensure that the template doesn't automatically link to content which has been uploaded in breach of copyright? I can't quite tell what the edits do. — Sgconlaw (talk) 13:46, 5 February 2024 (UTC)
- @Sgconlaw: no, all it does is add
&t=
to a YouTube URL which automatically starts the video at a certain time. For example, if the template is called with|time=1:03:20
, this is converted into&t=1h03m20s
which is appended onto the URL. The user still decides whether a YouTube URL should be added in the first place. Ioaxxere (talk) 18:56, 5 February 2024 (UTC)- @Ioaxxere: OK, thanks for clarifying! — Sgconlaw (talk) 19:01, 5 February 2024 (UTC)
- @Sgconlaw: no, all it does is add
- @Ioaxxere: OK, great. Do the edits you made ensure that the template doesn't automatically link to content which has been uploaded in breach of copyright? I can't quite tell what the edits do. — Sgconlaw (talk) 13:46, 5 February 2024 (UTC)
Missing comma
editIf both |url=
and |artist=
are given, a comma is missing between the link and "performed by", see e.g. the quotes in cronem. Einstein2 (talk) 11:07, 28 July 2024 (UTC)