Template talk:Seealso

From Valve Developer Community
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Change from {{{1|}}} to named parameter 1={{{1}}}

The edit from | {{{1|}}} to | 1 = {{{1|}}} broke lists/enumerations, see the (currently) broken doc, such as:

{{Seealso|
* one
* two
}}

This currently renders as:

See also: * one
  • two

It seems to me that the wikitext parser handles * and # in a way that they must be at the very beginning of a new line to generate an (un)ordered list in the HTML, which doesn't happen when a named parameter (1=) is used here: the first item ends up not being part of the list. I'd rather suggest staying with |{{{1|}}} to remove that one unintended space at least. I don't know a better solution that keeps lists intact and I remember that I used this approach among several templates and I am not happy about that not-so-clean solution. I yet haven't seen the trimming be a problem, but lists. And no, I didn't look through all use cases of {{Seealso}} whether there are problems on actual pages – if there are no problems, I don't mind. --popcorn (talk) 18:06, 4 November 2025 (PST)
Edit: But this is definitely a problem for {{Note}} for example, so please don't do that named parameter "optimization" unless you can be sure not to casually break any lists! --popcorn (talk) 18:18, 4 November 2025 (PST)