Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24370208dbb52f1

Jump to content

Template talk:Hlist

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 5 months ago by Slovborg in topic class=inline not working outside demo

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

MarkupRenders 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
I've been trying and wondering why it doesn't work, having checked the documentation & played in the sandbox and everything. Came here to report it, and I'm not the only one. Yeah, it should be added to the documentation, it would've saved me time. Slovborg (talk) 21:01, 14 February 2026 (UTC)Reply

"Template:Hlist1" listed at Redirects for discussion

[edit]

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

Template for list of alternatives?

[edit]

Is there a template for creating a list of alternatives separated by the Or ("pipe") character, e.g., {{alternatives|foo|bar|baz}} rendering as [[foo|bar|baz]] or {{foo|bar|baz}}? -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 15:55, 4 November 2025 (UTC)Reply

I'm confused by what you mean with the [[]] and {{}} notations. Are you saying it should output uninterpreted wikitext along the lines of {{template}}? Arlo James Barnes 04:48, 11 January 2026 (UTC)Reply

hlist: non-breaking space before •

[edit]

In Template:Hlist/styles.css on line 74 (content: " · ";), I would like to request that the space before the ‘·’ be changed to a non-breaking space, for a more consistent look in which word-wrapped horizontal lists don't end up with some lines ending in a dot and some beginning with one. That is the traditional behaviour from back when we faked horizontal lists using {{·}} or {{}}; those templates start with a non-breaking space, and I see no reason why it shouldn't carry over to hlist. (Note, though, that a HTML entity like &nbsp; won't work in CSS, so it needs to be a literal non-breaking space: “ ” \a0, as recommended below.) – McDutchie (talk) 05:55, 2 January 2026 (UTC)Reply

No, it needn't (and shouldn't) be. You can use the value \a0 as used in these two rules:
.hlist ol > li::before {
	content: " " counter(listitem) "\a0";
}

.hlist dd ol > li:first-child::before,
.hlist dt ol > li:first-child::before,
.hlist li ol > li:first-child::before {
	content: " (" counter(listitem) "\a0";
}
that is to say
.hlist dd::after,
.hlist li::after {
	content: "\a0· ";
	font-weight: bold;
}
--Redrose64 🦌 (talk) 13:25, 2 January 2026 (UTC)Reply
Thank you for that. Edited. – McDutchie (talk) 16:01, 2 January 2026 (UTC)Reply
 Done * Pppery * it has begun... 00:36, 6 January 2026 (UTC)Reply

param for alternate separator

[edit]

Some of the threads above get at this topic, but instead of doing it with the style parameter, couldn't it be supplied with a dedicated param? Arlo James Barnes 04:53, 11 January 2026 (UTC)Reply