Template talk:quote-web

From Wiktionary, the free dictionary
Latest comment: 30 days ago by Sgconlaw in topic “Chapter” appearing in website title
Jump to navigation Jump to search

Missing passage parameter in documentation

[edit]

The template documentation does not show a "passage" parameter to help format the cited quote. —BoBoMisiu (talk) 16:24, 25 February 2015 (UTC)Reply

Thanks, the documentation has been updated. Smuconlaw (talk) 17:22, 8 January 2016 (UTC)Reply

"Nocolon" parameter

[edit]

@Erutuon, I think the problem is that {{quote-meta}} expects a value to be stated using |passage=. For your |nocolon= parameter to work you would need to update {{quote-meta}} to turn off the passage requirement. (Alternatively, an editor could simply repeat the title as the passage, like this: {{quote-web|title=This is the title|work=Testing Website|section=website title|passage=This is the '''title'''}}.) — SMUconlaw (talk) 18:27, 20 May 2017 (UTC)Reply

@Smuconlaw: I don't know if {{quote-meta}} does expect a passage. But the template code is hard to read. I made changes in {{quote-meta/source}} to try to allow the the colon to be turned off and it messed things up. Not sure why. — Eru·tuon 18:37, 20 May 2017 (UTC)Reply
Yeah, I'm not sure why the change you made caused the problem either, which is why I suspect it has something to do with {{quote-meta}} rather than {{quote-meta/source}}. But, you're right, {{quote-meta}} is really hard to figure out due to the markup. At some stage I think we should try and sort that out ... — SMUconlaw (talk) 18:42, 20 May 2017 (UTC)Reply
I feel like this would be so much easier with Lua. But it would be a lot of work to convert it. — Eru·tuon 18:48, 20 May 2017 (UTC)Reply

Automated transliteration

[edit]

Please add automated transliteration fro non-Roman based languages like most templates do. --Anatoli T. (обсудить/вклад) 08:23, 29 December 2018 (UTC)Reply

url2 parameter

[edit]

quote-web seems to have a url2 parameter.. It's useful, as sometimes it might be useful to have multiple websites to reference one thing, but the parameter doesn't seem to be documented, so I guess it should be. I discovered it by accident. As not all parameters are documented - is there a way to see the actual code of the template, to see all available functionality? FoxyBuscuits (talk) 13:59, 4 August 2019 (UTC)Reply

I wasn't aware of this parameter. The back-end of the template is now written in Lua, and can be viewed at "Module:quote". For assistance, it would probably be best to contact either @Benwing2 or @Erutuon. By the way, for quoting audiovisual content, it's better to use {{quote-av}} rather than {{quote-web}}. Also, do ensure you aren't linking to content that has been uploaded to YouTube or other websites in breach of copyright. — SGconlaw (talk) 17:11, 4 August 2019 (UTC)Reply
@Sgconlaw, FoxyBuscuits I think you mean @Erutuon. As for params, the majority of params now have a ...2 variant. These params are intended for the "newversion" variant of a book (Sgconlaw can explain better what this is intended for), not for adding an additional URL or whatever to a single variant, although it might happen to work OK for that purpose. The full set of params of this sort is all those that are referenced using a("param") inside of (i.e. following) the local function postauthor(...) declaration. Some params have 2, 3, 4, and 5 variants; these are intended to list additional authors associated with a single work, and such params include author, last, first, authorlink, trans-author, trans-last, trans-first, trans-authorlink. Ideally, the "newversion" params should have names that are not formed just by adding "2" to the end of them, so that we can actually use url2, url3, url4, etc. to specify multiple URL's for a single work, but that would be difficult at this point because we'd have to rename all uses of these params for "newversion" purposes. Benwing2 (talk) 17:52, 4 August 2019 (UTC)Reply
Thanks! (Sorry, typing error corrected.) — SGconlaw (talk) 17:53, 4 August 2019 (UTC)Reply

date format not picked up

[edit]

@Sgconlaw The quote at slog shows up as being from November 2020, but the code states date=2017, 14 November. This is probably not the only case, and a fix is in order (to the template). --Java Beauty (talk) 19:11, 5 September 2020 (UTC)Reply

@Java Beauty:  Done: fixed the quotation at slog. The date has to be stated in a standard format like "14 November 2017"; this is a requirement for all the {{quote}} templates as they rely on the {{#date}} function. — SGconlaw (talk) 19:33, 5 September 2020 (UTC)Reply
I'll bet there are lots of other examples using that template (and {{quote-book}} and others) that have the same problem though. Maybe some code like if:date LATERTHAN {{{today's date}}}...show ERROR MESSAGE is needed to hunt them down. --Java Beauty (talk) 19:46, 5 September 2020 (UTC)Reply
However, that won't pick up dates which are earlier than the current date but in the wrong format. — SGconlaw (talk) 21:38, 5 September 2020 (UTC)Reply
Then I'm filing this matter under TTT for "too technically tricky" --Java Beauty (talk) 21:44, 5 September 2020 (UTC)Reply
@Java Beauty: just fix the errors manually if you see them. — SGconlaw (talk) 03:46, 6 September 2020 (UTC)Reply
I agree we shouldn't support all possible date permutations. Identifying outliers sounds like a job for some external script, not the template itself. – Jberkel 08:34, 17 November 2020 (UTC)Reply

Brackets parameter

[edit]

Can someone with permissions add support for |brackets=on in the visual editor through the TemplateData? Thanks. —The Editor's Apprentice (talk) 06:58, 17 November 2020 (UTC)Reply

 DoneJberkel 08:30, 17 November 2020 (UTC)Reply

Template handles cases where the author and the work are one and the same poorly

[edit]

Although this is, admittedly, a rare case, the template doesn't appear to have any good way of handling quotes like the one added in this diff, where the author is an organization (in this case, a U.S. government agency) and the work/site is simply the website of said organization, without any sort of separate or distinct branding. Currently, as shown in the aforelinked diff, the template forces one to enter the name of the organization for both |author= and |work=/|site=, which generates a result that looks patently ridiculous (see, again, the provided diff). Could some way perhaps be found of handling this edge case rather more gracefully? Whoop whoop pull up Bitching Betty ⚧️ Averted crashes 15:36, 22 October 2022 (UTC)Reply

@Whoop whoop pull up: in such a case, just omit the author (which is not a mandatory parameter) and indicate the organization name under |work=. — Sgconlaw (talk) 18:28, 25 October 2022 (UTC)Reply
Thanx, will do. Whoop whoop pull up Bitching Betty ⚧️ Averted crashes 20:28, 25 October 2022 (UTC)Reply

“Chapter” appearing in website title

[edit]

In morphinum this template is invoked as this:

{{quote-web|la|author=rozalinda (uploader)|title=111111|work=w:Scribd|url=https://de.scribd.com/document/511471508/111111|date=11 June 2021|note=contains some Latin and Albanian translations|passage=Multa venēna ut coffēinum, opium, '''morphīnum''' sunt|t=There are many poisons like caffeine, opium and '''morphine'''}}

and producing this:

2021 June 11, rozalinda (uploader), chapter 111111, in Scribd[1], contains some Latin and Albanian translations:
Multa venēna ut coffēinum, opium, morphīnum sunt
There are many poisons like caffeine, opium and morphine

But "chapter" isn't part of the title.

If the title of the webpage is a numeral, the template interprets it as a chapter number. This is being looked at, but in the meantime to stop the word “chapter” from appearing you would have to add some text to it so that it isn’t just a number, like “11111 [title]”. However, this document at Scribd doesn’t look like something that should be linked to anyway. It may have been uploaded in breach of copyright. — Sgconlaw (talk) 05:02, 9 May 2024 (UTC)Reply