Module talk:Convert: Difference between revisions

Content deleted Content added
Line 93:
 
-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 15:49, 19 September 2013 (UTC)
:I hoped that the comments that are in the code would help:
:: <code>-- If enabled, add a warning that will be displayed after the convert result.</code>
:: <code>-- To reduce output noise, only the first warning is displayed.</code>
:The <code>warnings</code> variable is set from the configuration:
:: <code>warnings = boolean(args.warnings) -- true if want warnings for invalid options</code>
:The line "<code>if warnings then</code>" tests if warnings are enabled.
:The line "<code>if parms.warnings == nil then</code>" means only the first warning is displayed (if there already is a warning, <code>parms.warnings</code> will be set, not nil). That is to reduce clutter that would appear in an article if malformed input was given. As I just commented above, a new list of messages is [[User:Johnuniq/Convert messages|here]], and it includes some warnings. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 03:14, 20 September 2013 (UTC)
 
== Before going live ==