Jump to content

Template talk:Expand section

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

Space before period

[edit]

This template is invoked at Michael Flynn#Personal life, but for some reason that instance has a space before the period of the second section, reading as "You can help by adding to it ." There's no apparent reason why that space is there (no such issue appears on this template page), and neither purging the page nor a dummy edit fixed it. Anyone know what to do? QuietHere (talk | contributions) 08:37, 17 November 2024 (UTC)[reply]

It's something to do with Template:Protected page maintenance message. --Redrose64 🌹 (talk) 11:37, 17 November 2024 (UTC)[reply]

Dark mode problem

[edit]

See the screenshot for the Short Strand article. — Arthurfragoso (talk) 04:13, 8 January 2025 (UTC)[reply]

Bulleted list error?

[edit]

The documentation states that A bulleted list with lines beginning '*' can be given. However, unless I use <br> after the equal sign, it renders like this:

{{Expand section|1=
* Bullet
* Points
|date=July 2025}}

‍ –‍ Kilvin👾01:11, 28 July 2025 (UTC)[reply]

@Kilvin the Futz-y Enterovirus: This is not an issue specific to Template:Expand section, but occurs with any template that accepts parameters. In general, a parameter value should never begin with a list; the newline before the first asterisk is lost as part of the whitespace trimming. The workaround is to add anything that isn't counted as either the start of a list, or as whitespace.
Anyway, I don't think that A bulleted list with lines beginning '*' can be given. is intended to be read as if a list may be the entire content of the parameter, but that a list may be part of the parameter's value. The best method is to add some introductory text before the list, such as
{{Expand section|1=These areas are deficient:
* Bullet
* Points
|date=July 2025}}
If you really feel that no introductory phrase is desirable, the two next-best methods are:
{{Expand section|1=&#32;
* Bullet
* Points
|date=July 2025}}
and
{{Expand section|1=<nowiki />
* Bullet
* Points
|date=July 2025}}
both of which display nothing, but ensure that the newline isn't lost. --Redrose64 🌹 (talk) 18:48, 28 July 2025 (UTC)[reply]