Jump to content

Template talk:Hlist

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

class=inline not working outside demo

[edit]

Using |class=inline works on the doc page, but doesn't in real life. The difference is whether {{markup}} is used - compare

Markup Renders as
Giant planets ({{hlist|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).
Giant planets ().

with

Giant planets ({{hlist|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).

Giant planets (

).

--Redrose64 🌹 (talk) 14:21, 3 February 2024 (UTC)[reply]

Got it. You need to wrap the whole line in a block element ({{markup}} uses <td>...</td>) in order to "kill" the implicit <p>...</p>, such as:

Giant planets ().

It's not optimal. --Redrose64 🌹 (talk) 16:04, 3 February 2024 (UTC)[reply]

Shouldn't the documentation mention the work-around unless and until it is fixed? -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 14:05, 30 April 2025 (UTC)[reply]

Bull?

[edit]

I find the mid dots rather small for some displays and so I would like them to be changed to the slightly larger &bull; character. However, I expect that such a global change might not go down too well. Could we instead add some CSS so that we can say something like {{hlist |class=inline,bull | ...?

See the difference by comparing my old userpage navbar

with the updated versionGhostInTheMachineTalkAllHelp ... — GhostInTheMachine talk to me 11:23, 7 February 2024 (UTC)[reply]

No interest? Fixed it for me by adding: mw.util.addCSS('.hlist li::after {content: " • " !important;} .hlist li:last-child::after {content: none !important;}'); to my local user script — GhostInTheMachine talk to me 17:39, 17 February 2024 (UTC)[reply]

The redirect Template:Hlist1 has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2024 April 18 § Template:Hlist1 until a consensus is reached. HouseBlaster (talk · he/him) 02:02, 18 April 2024 (UTC)[reply]