Module talk:External links
(Redirected from Module talk:External links/sandbox)
Latest comment: 3 months ago by GauchoDude in topic Link limits
This module contains several errors
editI found two errors in this module that need fixing:
- Line number 562 and line number 666 (
if not (local_value or local_value == '') then
): The "not" is extended to the whole expression via parentheses, when it looks like it was meant to benot local_value or local_value == ''
. By De Morgan's laws, it is currently equivalent tonot local_value and local_value ~= ''
, which is justnot local value
- Line number 931 (
local somedataonwikidata = (short_links and false or true)
: This was clearly meant to be a use of lua's ternary expression "syntax" (for lack of a better word). However, theor
will always trigger, as false is, well, falsy; as such, this expression will always short-circuit tolocal somedataonwikidata = true
. This should probably instead belocal somedataonwikidata = not short_links
.
{{Lemondoge|Talk|Contributions}} 22:11, 12 April 2023 (UTC)
- Update: Now done. {{Lemondoge|Talk|Contributions}} 18:44, 9 May 2023 (UTC)
Link limits
editI object to the subjective change of shown link limits implemented by @S.A. Julio:. For further discussion, please see Template talk:Sports links#Link Limits. GauchoDude (talk) 16:35, 19 August 2024 (UTC)