Module talk:Storm categories: Difference between revisions

Content deleted Content added
Hurricane Noah (talk | contribs)
Line 109:
:::{{done}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 16:16, 25 February 2023 (UTC)
::::Thanks. [[User:Hurricane Noah|<span style="white-space:nowrap;text-shadow:#009200 0.3em 0.4em 1.0em,#009200 -0.2em -0.2em 1.0em;color:#009200"><b>Noah</b></span>]]<sup>[[User talk:Hurricane Noah|<span style="color:#ff0000"><b>Talk</b></span>]]</sup> 16:17, 25 February 2023 (UTC)
 
== Accidental short-circuit in ternary expressions at lines 51 and 73 ==
 
This module has a mistake at lines 51 and 73, in the instances of {{code|1=or (nullIfMissing and nil or [foo])|lang=lua}}; these lines attempt to output <code>nil</code> if <code>nullIfMissing</code> is truthy and otherwise <code>[foo]</code>, but because nil is falsy, the <code>or [foo]</code> will always trigger, and as such the expression simply short-circuits to <code>or [foo]</code>. {&#123;'''[[User:Lemondoge|Lemondoge]]'''&#124;[[User talk:Lemondoge|Talk]]&#124;[[Special:Contributions/Lemondoge|Contributions]]&#125;} 22:20, 12 April 2023 (UTC)