Jump to content

Module talk:Labelled list hatnote

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TechnoSquirrel69 (talk | contribs) at 08:02, 8 November 2023 (Header). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Proposal to add nowrap capabability

A proposal to add nowrap capability is given initially for {{Further}}. There is a working template space mockup at Template:Further/sandbox, and a demo of it on the Talk page. Please see discussion at Template:Further#Adding nowrap. Courtesy ping: User:Nihiltres. Thanks, Mathglot (talk) 06:06, 21 March 2022 (UTC)[reply]

Boolean problem

@Nihiltres: Recent edits changed selfref to a boolean. That has given a problem demonstrated at God the Father#Judaism:

Lua error in Module:Hatnote at line 146: bad argument #1 to 'addClass' (string, number or nil expected, got boolean).

That is because line 146 of Module:Hatnote is

:addClass(options.selfref and 'selfref')

so if selfref is false, that is what is passed to addClass. Presumably it was nil before and addClass ignored that? Johnuniq (talk) 23:40, 5 June 2022 (UTC)[reply]

Yes, that was a fragile conditional in Module:Hatnote; I fixed it immediately in this edit. {{Nihiltres |talk |edits}} 04:19, 6 June 2022 (UTC)[reply]

Template-protected edit request on November 8, 2023

This module seems to be causing a comma to unnecessarily appear in lists consisting of two items when the first item is a section link. For example:

compared to

I would provide a more detailed fix in this request if I knew what I was going with Lua, but I think I'll defer that part to someone more experienced at it than me. Thanks! TechnoSquirrel69 (sigh) 08:01, 8 November 2023 (UTC)[reply]