| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
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]]}}). |
with
Giant planets ({{hlist|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).
Giant planets (
).
--Redrose64 🌹 (talk) 14:21, 3 February 2024 (UTC)
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:
It's not optimal. --Redrose64 🌹 (talk) 16:04, 3 February 2024 (UTC)
- 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)
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 • 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 | ...?
with the updated version — GhostInTheMachine • Talk • All • Help ... — GhostInTheMachine talk to me 11:23, 7 February 2024 (UTC)
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)
"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)
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)
hlist: non-breaking space before •
[edit]| It is requested that an edit be made to the fully protected template at Template:Hlist. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to fully protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
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 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)
- No, it needn't (and shouldn't) be. You can use the value
\a0as used in these two rules:that is to say.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"; }
--Redrose64 🦌 (talk) 13:25, 2 January 2026 (UTC).hlist dd::after, .hlist li::after { content: "\a0· "; font-weight: bold; }
- Thank you for that. Edited. – McDutchie (talk) 16:01, 2 January 2026 (UTC)