Hi, @Benwing2, these parameters just stopped working. — SGconlaw (talk) 19:29, 9 March 2019 (UTC)
OK, think you've fixed it. Thanks. — SGconlaw (talk) 19:33, 9 March 2019 (UTC)
@Sgconlaw Last night I turned off the test code that was using the old implementation in Template:quote-meta/source; now, the output of the Lua code is being used. I'm thinking of turning some maintenance messages into errors to make it more likely that people will notice the problems. I think I fixed all the existing pages that would trigger these issues. In particular, I'm thinking of making the following cases be errors:
|lang=
.|date=
and |year=
.|archiveurl=
without |archivedate=
.|archiveurl=
without |url=
.Thoughts? Benwing2 (talk) 19:41, 9 March 2019 (UTC)
|author=Пётр Ильич Чайковский (Pyotr Ilyich Tchaikovsky)
where it might be better to write |author=Пётр Ильич Чайковский
+ |trans-author=Pyotr Ilyich Tchaikovsky
. Note that the transliteration of Russian names into English is often idiosyncratic, e.g. "Tchaikovsky" is the standard transliteration but isn't terribly faithful to the Russian; our standard system would render it as Čajkovskij, and a less scientific system might use Chaykovskiy. (Rachmaninoff is even less accurate.) Benwing2 (talk) 20:40, 9 March 2019 (UTC)
Hi, @Benwing2, in {{quote-newsgroup}}
the message-id is appearing twice: see the template documentation and scouthouse (1994 quotation). — SGconlaw (talk) 16:53, 14 March 2019 (UTC)
|id=
parameter, and Template:quote-newsgroup also passes the |id=
parameter as part of the |section=
parameter. This probably "worked" before because Template:quote-newsgroup wasn't explicitly passing |id=
to Template:quote-meta/source, but the Lua implementation passes all parameters through automatically unless explicitly overridden. Benwing2 (talk) 23:38, 14 March 2019 (UTC)
|section=
to |id=
. But is there some reason why we want it to appear in a smaller typeface? — SGconlaw (talk) 10:57, 15 March 2019 (UTC)
Odd error in oligomorph. — Eru·tuon 01:09, 16 March 2019 (UTC)
|1=
was supplied, which is passed to |year=
by the template. Benwing2 (talk) 17:01, 17 March 2019 (UTC)@Benwing2: I noticed an issue with {{quote-song}}
when |author=
and |authorlink=
are used: see jar (2010 quotation). — SGconlaw (talk) 16:20, 17 March 2019 (UTC)
{{quote-newsgroup}}
; |authorlink=
is automatically passed through, but the template also passes |authorlink=
as part of |author=
. What might be best is for me to implement a way of having the outer template disable passing a given param through. This would also work for {{quote-newsgroup}}
. Benwing2 (talk) 17:05, 17 March 2019 (UTC)
{{quote-book}}
or {{quote-journal}}
? — SGconlaw (talk) 17:41, 17 March 2019 (UTC)
{{quote-book}}
and {{quote-journal}}
don't squash |authorlink=
into |author=
. Benwing2 (talk) 20:07, 17 March 2019 (UTC)
{{quote-song}}
and {{quote-newsgroup}}
. Benwing2 (talk) 20:30, 17 March 2019 (UTC)|quotee=
does not appear unless |author=
is present{{quote-book|mul|editor=EDITOR|quotee=QUOTEE|title=TITLE|year=1900}}
{{quote-book|mul|author=AUTHOR|quotee=QUOTEE|title=TITLE|year=1900}}
{{quote-book|mul|author=AUTHOR|editor=EDITOR|quotee=QUOTEE|title=TITLE|year=1900}}
produces
This does not seem to be desirable (extra comma and no QUOTEE). @Benwing2 Can this be fixed? —Suzukaze-c◇◇ 03:44, 12 January 2020 (UTC)
Hi, @Benwing2. Hi, if you have time could you look into the following issue, which seems to be related to this module? If |year=
is preceded by a., c., or p., the module automatically creates a tooltip and a link to entries in "Wiktionary:Glossary" explaining that these abbreviations mean ante, circa, and post.
However, I've found that if anything is added after the year, for some reason it gets truncated. Thus, when I added to {{RQ:Beaumont Fletcher Comedies and Tragedies}}
the following line under the |year=
parameter:
| Bonduca|The Tragedie of Bonduca = c. 1613''' (first performance)'''​
what gets displayed (for example, at doubt) is "c. 1613 (", and everything else is truncated. (​
inserts a zero-width space, and is needed so that the bold markup doesn't choke.) I "fixed" this by changing this to "''c.''
" in the quotation template, but this is not ideal as the abbreviation now appears bold, and the tooltip and link are gone. Any idea what is causing the problem? Thanks. — SGconlaw (talk) 08:56, 5 March 2020 (UTC)
|2ndauthor=
@Sgconlaw |2ndauthor=
(or |2ndfirst=
and |2ndlast=
) and |2ndauthorlink=
are equivalent to |author=
(or |first=
and |last=
) and |authorlink=
for a new version; what are the equivalent parameters of |author2=
(or |first2=
and |last2=
) and |authorlink2=
(also |author3=
, etc.) for a new version? J3133 (talk) 05:17, 26 May 2021 (UTC)
|2ndauthor=
. — SGconlaw (talk) 05:36, 26 May 2021 (UTC)@Benwing2: if the language of a work is not English, is there a way (or can you add a way) to suppress the requirement for an English translation to be added? See {{RQ:Promptorium parvulorum}}
, a Middle English–Latin dictionary. It doesn't really make sense to call for a translation for this work. — SGconlaw (talk) 18:41, 22 August 2021 (UTC)
@Sgconlaw I added an interface onto {{quote-book}}
. See {{RQ:Ascham Scholemaster}}
for an example. If you write the code the way of this example, it automatically handles |text=
, |passage=
, |page=
, |pages=
, |footer=
and |brackets=
and |authorlink=
(in the last case, not if you explicitly specify |authorlink=
), so you don't have to give them explicitly. There are a few extra arguments you can pass in:
|template=
: Name of template, instead of quote-book
.|textparam=
: Name of text
/passage
param to use if neither |text=
nor |passage=
are given. Can be a comma-separated list of params; if so, the first such param with a specified value becomes the value of the text
/passage
param. Use |textparam=-
to suppress auto-propagation of |text=
and |passage=
.|pageparam=
: Name of page
param to use if |page=
isn't given. Can be a comma-separated list of params; if so, the first such param with a specified value becomes the value of the page
param. Use |pageparam=-
to suppress auto-propagation of |page=
and |pages=
.|propagateparams=
: Comma-separated list of any additional params to propagate to the quote template, so you don't have to propagate them one-by-one.|allowparams=
: Comma-separated list of parameter to allow, in addition to the ones mentioned above (i.e. |text=
, |passage=
, |page=
, |pages=
, |footer=
and |brackets=
are automatically allowed, as are the parameters given in |textparam=
, |pageparam=
and |propagateparams=
). This allows for parameter checking; you'll get an error if unrecognized parameters are specified. If the value is *
, parameter checking is disabled.This should make it easier for you to write new quotation templates with less boilerplate, and minimize the likelihood of forgetting some boilerplate. I am going to create a similar interface to make it easier to generate quotation template documentation. Benwing2 (talk) 22:23, 11 December 2021 (UTC)
@Sgconlaw See {{quote-meta/paramdoc}}
and example usage in Template:RQ:Pope Essay on Man/documentation. This currently supports the following replaceable params:
<<page>>
Text for the |page=
/|pages=
params.<<page:PARAM>>
Text for the |page=
/|pages=
params where |PARAM=
is an additional synonym.<<chapter>>
Text for the |chapter=
param when a chapter name should be provided.<<chapter:PARAM>>
Text for the |chapter=
param when a chapter name should be provided, where |PARAM=
is an additional synonym.<<roman_chapter>>
Text for the |chapter=
param when an uppercase Roman numeral chapter number should be provided.<<roman_chapter:PARAM>>
Text for the |chapter=
param when an uppercase Roman numeral chapter number should be provided, where |PARAM=
is an additional synonym.<<arabic_chapter>>
Text for the |chapter=
param when an Arabic numeral chapter number should be provided.<<arabic_chapter:PARAM>>
Text for the |chapter=
param when an Arabic numeral chapter number should be provided, where |PARAM=
is an additional synonym.<<passage>>
Text for the |text=
/|passage=
params.<<passage:PARAM>>
Text for the |text=
/|passage=
params where |PARAM=
is an additional synonym.<<trailing_params>>
Text for additional params to mention at the end (currently |footer=
and |brackets=
).It's pretty easy to add more replaceable params; you just need to let me know what the text should be. I'm also not sure that |page_nolink=
is useful, and I'm aware that some templates have variant text of various sorts when describing the |page=
/|pages=
params; I'm not sure the best way to handle this. Benwing2 (talk) 00:25, 12 December 2021 (UTC)
{{quote-meta/paramdoc}}
. Benwing2 (talk) 00:28, 12 December 2021 (UTC)
@Benwing2: I think an edit you made to this module means that |author=
no longer permits the wikilinking of authors in the form ]
, which is sometimes needed: see this edit to {{RQ:Sylvester Du Bartas}}
. — SGconlaw (talk) 17:09, 13 December 2021 (UTC)
|authorlink=
. Alternatively, I wonder if there is a way to auto-populate if that parameter contains a bare author name and nothing else? — SGconlaw (talk) 04:42, 14 December 2021 (UTC)
|author=
param. Benwing2 (talk) 05:13, 14 December 2021 (UTC)
Hi, @Benwing2, page numbers specified using |page2=
and |pages2=
are appearing twice, once incorrectly as part of the original version of the work (which should only display page numbers specified using |page=
and |pages=
), and again correctly as part of the new version of the work: see {{RQ:Milton Collected Works}}
. — SGconlaw (talk) 17:06, 14 December 2021 (UTC)
|page=
into |page2=
and |pages=
into |pages2=
, while the module itself auto-propagates |page=
and |pages=
into the same-named underlying params. I added support for |pageparam=-
to turn off auto-propagation of |page=
and |pages=
(and similarly |textparam=-
to turn off auto-propagation of |text=
and |passage=
). With this added, the template seems to work properly. Benwing2 (talk) 03:40, 15 December 2021 (UTC)
|page=
to |page2=
in cases where the first edition of a work is not available online, and a modern reprint or republication is used in its place. — SGconlaw (talk) 04:53, 15 December 2021 (UTC)
|page=
and |pages=
; but then if you want it propagated, you have to specify this explicitly using |pageparam=
or |propagateparams=
, or directly propagating the params yourself. Benwing2 (talk) 04:55, 15 December 2021 (UTC)
|textparam=-
needed? There is only one passage quoted in each template.) — SGconlaw (talk) 05:00, 15 December 2021 (UTC)
{{#invoke:quote|call_quote_template |... |page={{{3|{{{page|}}}}}} |pages={{{pages|}}} |... }}
You can also get the same effect like this:
{{#invoke:quote|call_quote_template |... |pageparam=3,page |pages={{{pages|}}} |... }}
or like this:
{{#invoke:quote|call_quote_template |... |pageparam=3,page |propagateparams=pages |... }}
Benwing2 (talk) 05:14, 15 December 2021 (UTC)
|pageparam=
doesn’t automatically generate |pages=
? If not, I think I’ve used it wrongly in some templates. — SGconlaw (talk) 05:26, 15 December 2021 (UTC)
|pages=
but I'll make it do so if that helps you. What I can do is make |pageparam=
, if used, propagate |page=
and |pages=
, and in addition convert whichever param or params are specified into |page=
. That way, if you specify |pageparam=3
, for example, it's equivalent to specifying|page={{{3|{{{page|}}}}}} |pages={{{pages|}}}
but if you don't specify |pageparam=
, then neither |page=
nor |pages=
is auto-propagated. Does that make sense to you? BTW I added documentation on {{#invoke:quote|call_quote_template}}
to Module:quote/documentation. Benwing2 (talk) 05:30, 15 December 2021 (UTC)
date_published
@Benwing2 Can we add this to complete the cross product? We have year
, date
and year_published
. It just silently failed for me in Aufblaser. — Fytcha〈 T | L | C 〉 15:47, 10 January 2022 (UTC)
Would it be possible to make this accept eight-digit ISSNs with no hyphen by just adding it automatically? 70.172.194.25 01:36, 14 January 2022 (UTC)
@Ioaxxere: thanks for the edit which makes it unnecessary to specify |archivedate=
if the archive URL is from the Internet Archive. Can I suggest that in those situations the template need not put the entry into “Category:Quotations using archiveurl without archivedate”? I think the category should be retained in case other archive websites are used. Also, would it be possible to update {{cite-meta}}
so that it works the same way to Module:quote? However, it hasn’t been “Lua-ified” yet. — Sgconlaw (talk) 21:44, 7 January 2023 (UTC)
{{cite-meta}}
, would it be possible for you to work on an update in a sandbox, for example, a subpage of your user page? — Sgconlaw (talk) 06:49, 8 January 2023 (UTC)
@Benwing2: this parameter seems to have stopped working: see {{RQ:Hardy Dynasts}}
. — Sgconlaw (talk) 22:10, 3 August 2023 (UTC)
@Benwing2 (pinging per your edit summary "total rewrite of date formatting functionality"): |date=1 April 2023
is displaying as 2023 April
(without the day) in the last quote on breast boobily. Ioaxxere (talk) 13:31, 7 August 2023 (UTC)
@Benwing2 The superscript links on the Twitter quotes at scrunkly are targeting the original URL rather than the archive URL. Ioaxxere (talk) 17:55, 27 August 2023 (UTC)
w:LANG:
{{quote-book|ja|author=ja:尾田栄一郎}}
→ Jpan, ja
{{quote-book|ja|author=w:ja:尾田栄一郎}}
→ Hani, und
@Benwing2 —Fish bowl (talk) 23:35, 1 November 2023 (UTC)
lw:
prefix; the w:
prefix doesn't do script detection because Wikipedia codes may not be valid for Wiktionary. See Template:quote-book/documentation#Parameters. Possibly I should make this smarter so that it knows which language codes are the same in Wikipedia and Wiktionary and does automatic script detection for those. Benwing2 (talk) 00:29, 6 February 2024 (UTC)@Benwing2:
{{quote-book|en|start_month=January|start_year=2024|month=December|year=2024}} displays “2024 January – 2024 December” instead of “2024 January–December”. I was unable to find out the reason. J3133 (talk) 06:13, 4 February 2024 (UTC)
|start_date=
and |date=
works for some reason, e.g. {{quote-book|en|start_date=2022-01|date=2022-02}}
. Benwing2 (talk) 00:35, 6 February 2024 (UTC)
@Sgconlaw: Should this parameter not be used? J3133 (talk) 08:11, 18 February 2024 (UTC)
@Ioaxxere, Benwing2: this module had been updated by Ioaxxere so it is not necessary to use {{archivedate}} |url=
if |archiveurl=
contains an Internet Archive Wayback Machine URL, but this doesn't seem to be working for {{quote-journal}}
—see the noun section of transgender, where the 2004 quotation under sense 2 is throwing a Lua error. — Sgconlaw (talk) 21:20, 15 March 2024 (UTC)
|archivedate=
vs. |archiveurl=
, but this is for |archiveurl=
vs. |url=
. What should the behavior be? Benwing2 (talk) 21:34, 15 March 2024 (UTC)
|url=
. It shouldn't be necessary to use both that parameter and |archiveurl=
if the latter contains an IA Wayback Machine URL—at least that's how it works for {{quote-book}}
. — Sgconlaw (talk) 21:39, 15 March 2024 (UTC)|url=
. I suppose that in a case like this I should just specify the IA URL under |url=
. — Sgconlaw (talk) 22:28, 15 March 2024 (UTC)
@Benwing2: when |author=
is used, is there a way to prevent the module from trying to link to a Wikipedia article about an author when none exists? — Sgconlaw (talk) 19:01, 16 March 2024 (UTC)
@Benwing2: just flagging this up as an issue again—hope you can look into it when you are free. See, for example, what happens with the entry {{RQ:Guardian 1713}}
at "Wiktionary:Quotations/Templates/English S#Steele, Richard". — Sgconlaw (talk) 16:09, 15 April 2024 (UTC)
call_quote_template()
because that function automatically copies |author=
to |authorlink=
in most circumstances. I fixed it so that it won't do this if an embedded HTML-encoded left bracket ([
) is present, but in general you can disable this by adding a blank param |authorlink=
to the call to call_quote_template()
. Benwing2 (talk) 21:06, 16 April 2024 (UTC)
|authorlink=
parameter.)
|authorlink=-
to suppress the attempted linking? — Sgconlaw (talk) 21:27, 16 April 2024 (UTC)
Over at Module:User:JeffDoozan/quote, I have a fork of this module where I've added support for the citation formatting used by the cite- templates. I've tested the patched module with all of the existing quote- calls to verify that the output of is identical to this module and I've reviewed the differences between output of the original cite- templates and that produced by the new module (see User:JeffDoozan/cite-book/tests, User:JeffDoozan/cite-web/tests, User:JeffDoozan/cite-journal/tests, User:JeffDoozan/cite-av/tests, User:JeffDoozan/cite-song/tests and User:JeffDoozan/cite-newsgroup/tests for a sample of each). I'd like to merge those changes into this module and switch the existing cite- templates to use this module. I've tried to make the changes as clean as possible by adding export.cite_t() as the primary interface for cite- templates and adding a format_as_cite
flag to export.source()
and postauthor()
, but I'd appreciate any comments on the quality of the new code or differences in the old/new cite template outputs. @Benwing2 @Sgconlaw JeffDoozan (talk) 18:02, 10 April 2024 (UTC)
format_as_cite
flag rather than just forking the whole thing is definitely the right approach; otherwise we'd have to maintain two versions, which would inevitably get out of sync. You should test the code to make sure it still generates quotations correctly; I have a whole bunch of calls to {{quote-*}}
in User:Benwing2/test-quote that exercise different parts of the module, which might help. If everything checks out, I would support merging these changes into the production module (BTW the production module includes some recent optimizations by User:Theknightwho). Benwing2 (talk) 03:28, 12 April 2024 (UTC)
export.cite_t()
by wrapping everything with pcall()
and then falling back to the old template and adding a maintenance category in case of errors. Once this is in production and the categories fill up, I'll clean up the remaining invalid parameters and remove the pcall
JeffDoozan (talk) 13:57, 12 April 2024 (UTC)Hi @JeffDoozan, the switching-over of the cite templates to use Module:quote has inadvertently created line-break issues—see footnotes 4 and 5 in the "References" section of milliner. Seems like there's a redundant carriage return after the reference. (I recall that this happens with the quote templates too, but with them perhaps this behaviour is correct.) — Sgconlaw (talk) 19:09, 12 April 2024 (UTC)
{{cite-web}}
while I track down the errant carriage return (it's the only widely-used template that I've converted so far). JeffDoozan (talk) 19:18, 12 April 2024 (UTC)@JeffDoozan I noticed that the display of the external link in {{R:GDoS}}
(which uses {{cite-web}}
) recently changed and I think it might be related to your recent changes in the module (I might be wrong). I've now edited the reference template to match the earlier format but other templates may also be affected. Einstein2 (talk) 23:03, 14 April 2024 (UTC)
Hi, @JeffDoozan, in the following use of {{cite-journal}}
, I've noticed that the colon after the page numbers which introduces the quoted text is missing:
Also, dates like "May 2024" and "23 May 2024" are still being displayed in a reverse-fashion as "2024 May" and "2024 May 23" which I think is inappropriate for references. I think these should be changed back to the original format. Thanks. — Sgconlaw (talk) 17:46, 22 May 2024 (UTC)
@JeffDoozan: list of things that need to be fixed for compatibility with {{cite}} templates:
Any chance you can look into this soon? Thanks. — Sgconlaw (talk) 02:22, 21 June 2024 (UTC)
@Benwing2: The quotation category (Category:LANG terms with quotations) should not be added to references (using “cite-” templates), which is the case currently if a passage is included. I have unsuccessfully tried to remove it in three edits. J3133 (talk) 16:29, 9 June 2024 (UTC)
{{cite}}
templates, which now work off the Module:quote backend, adds the entries to “Category:Undetermined terms with quotations” when no language is specified for the references (which would usually be the case). I’m not sure this is useful. — Sgconlaw (talk) 02:25, 23 June 2024 (UTC)@Benwing2 J3133 (talk) 16:35, 21 June 2024 (UTC)
@Fenakhay Looks like you ran the code through some sort of automated formatter. In the future can you not do this until/unless you get consensus? I don't agree with many of the changes, which introduced a ton of unnecessary vertical space. Benwing2 (talk) 03:32, 9 July 2024 (UTC)
access
parameterWikipedia's main citation template features a parameter to let the reader know if a reference work is freely accessible or requires a subscription (w:Template:Citation#csdoc access level). Some reference templates in Wiktionary (i.e. {{R:OED Online}}
) have a small red lock icon, although applied in a kind of sloppy and messy way: just slapping an image in it. Could a new parameter be added to this module so that access information to a work is easier to add to templates, to help the editor and the reader? Hitsuji777 (talk) 19:55, 7 November 2024 (UTC)
When normalization uses non-Latin script (see {{RQ:cu:Mar}}
), no italics should be used, maybe indent should be removed too. Sławobóg (talk) 13:47, 4 December 2024 (UTC)
@Benwing2: see the following quotation from free rein—the module produces awkward phrasing when multiple editors are specified. Can this be fixed? It's probably best to just add ", editors" at the end of the list.