Template talk:RQ:Hall Works
Latest comment: 4 months ago by Sgconlaw in topic Volume IV
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)
- @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)
- @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) - @Sgconlaw: diff Chuck Entz (talk) 03:45, 20 June 2021 (UTC)
- @Chuck Entz: ah, thanks! — SGconlaw (talk) 05:24, 20 June 2021 (UTC)
- @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
Volume IV
[edit]The |chapter=
and |page=
(URL) parameters do not work properly when quoting volume IV (as seen in mispassion). Einstein2 (talk) 14:40, 21 June 2024 (UTC)
- @Einstein2: yes, because this work has ten volumes I didn't create a complete template and have only been adding volumes to the template as and when required. I'll add volume IV shortly. — Sgconlaw (talk) 21:06, 21 June 2024 (UTC)
- @Einstein2: OK, done. Let me know if it works. — Sgconlaw (talk) 11:20, 22 June 2024 (UTC)
- It works perfectly, thank you very much! Einstein2 (talk) 15:00, 22 June 2024 (UTC)
- @Einstein2: cool! — Sgconlaw (talk) 15:27, 22 June 2024 (UTC)
- It works perfectly, thank you very much! Einstein2 (talk) 15:00, 22 June 2024 (UTC)