Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
This module is within the scope of WikiProject Weather, which collaborates on weather and related subjects on Misplaced Pages. To participate, help improve this article or visit the project page for details.
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 or (nullIfMissing and nil or ); these lines attempt to output nil if nullIfMissing is truthy and otherwise , but because nil is falsy, the or will always trigger, and as such the expression simply short-circuits to or . {{Lemondoge|Talk|Contributions}} 22:20, 12 April 2023 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Please update the current template with the version currently in the sandbox (compare). Please be careful not to copy over the top and the demo function of the module, which imports sandbox modules; only the relevant parts changed under the first few lines.
Three significant changes were made to the template:
An isEqual function was introduced to check if two categories are equal (while also checking aliases),
nullIfMissing was renamed to nilIfMissing in all relevant functions.
_name was fixed to respect the nilIfMissing parameter, which it previously did not.