Invisible Module Error at Wiktionary:Quotations/Templates/English G–L edit

Discussion moved from User talk:Sgconlaw.

I noticed this today and was able to narrow it down to {{RQ:Hall Works|I}}, which I see you just created. If it helps any, substituting any other Roman numeral gets rid of the error, as does putting a number in the third parameter. I don't have the time or expertise to track it down further. The fact that Volume I has both lowercase Roman numerals and regular numbers makes things a bit too complicated for me to mess with it. At any rate. I'm sure you'll figure it out before the template ends up in any entries. Good luck! Chuck Entz (talk) 00:37, 12 June 2021 (UTC)Reply

@Chuck Entz: this is strange indeed. The error appears only if "I" is specified as the volume (or the first parameter) and no other parameters are specified. So if a chapter and/or page number are specified, the error goes away. Similarly, as you noted, a different volume number like "II" or "X" is specified, the error does not appear. I can't see anything wrong with the template code; @Erutuon, any idea? — SGconlaw (talk) 09:56, 12 June 2021 (UTC)Reply
@Sgconlaw I would suggest figuring out where all the module invocations are, and seeing which ones occur under the conditions which cause the error. The fact that this is invisible points to a module invocation being fed to a parserfunction. If I had to guess, I would say that this comes from what I call "template guts" (raw parameter syntax) being fed to a module- maybe there's a pipe missing somewhere. Also, the code {{#if:{{{chapter|}}}{{{2|}}} | {{#invoke:string|replace|{{{chapter|{{{2|}}}}}}|'|’}}. }} looks like it has potential to create unpredictable results- having pipes as data in parameters makes me nervous. Chuck Entz (talk) 17:27, 12 June 2021 (UTC)Reply
@Sgconlaw: diff Chuck Entz (talk) 03:45, 20 June 2021 (UTC)Reply
@Chuck Entz: ah, thanks! — SGconlaw (talk) 05:24, 20 June 2021 (UTC)Reply
Return to "RQ:Hall Works" page.