Content deleted Content added
→Error message enhancing: done what I can now |
|||
Line 67:
:I hope to give a substantive reply later (RL issues are interfering now), but meanwhile I have dumped a reasonably complete list of all messages that the module can display [[User:Johnuniq/Convert messages|here]]. That may be useful while considering what should happen. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 03:03, 20 September 2013 (UTC)
::It's later, and I'm not likely to get any quality time to spend on this, so I'll just add it to my long todo list. I like the links produced by CS1, but there's a fair bit of work getting that all organized. I don't even have a good doc page, although I made a start [[User:Johnuniq/Convert documentation|here]]. I prefer your lighter orange, will do soon if no one offers an alternative suggestion. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 10:43, 20 September 2013 (UTC)
----
{{ping|DePiep}} I have implemented as much of your above suggestion as I can at the moment. I would like to include links to a help page as above, and have thought about how to implement that. However, it will have to wait for a decent help page, and a bit of time to do the work. I used [[Special:ExpandTemplates]] to capture the following:
*<code><nowiki>{{convert/sandboxlua|12|m|kg}}</nowiki></code> → {{convert/sandboxlua|12|m|kg}}
*:<code><nowiki><span class="noprint" style="background:#ffcc69;">[[Module talk:Convert|Conversion error]]: Cannot convert "length" to "mass"</span></nowiki></code>
*<code><nowiki>{{convert/sandboxlua2|12|m|ft|abr=off}}</nowiki></code> → {{convert/sandboxlua2|12|m|ft|abr=off}}
*:<code><nowiki>12 metres (39&nbsp;ft)<span class="noprint" style="background:peachpuff;">[[Module talk:Convert|Conversion warning]]: Ignored invalid option "abr=off"</span></nowiki></code>
The second example uses the new template {{tl|convert/sandboxlua2}} which includes "warnings = on" (that parameter has to be in the template, not the convert).
I also implemented WOSlinker's suggestion on my talk so tracking categories are only included in the error or warning if the current page is in a wanted namespace (default "0,10", that is, main and template, per your suggestion). In case you missed it, I'll mention here that I updated a reply on my talk to say that some testing shows that 31 warnings were generated in 7,540 converts scraped from various articles. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 09:54, 21 September 2013 (UTC)
== parameter warnings=true ==
|