Jump to content

Template talk:Italic title

From MTRNord's Wiki
Revision as of 21:20, 21 April 2026 by MTRNord (talk | contribs) (1 revision imported: Import missing Modules)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Latest comment: 22 days ago by NguoiDungKhongDinhDanh in topic "Template:It" listed at Redirects for discussion

Template:Permanently protected User:MiszaBot/config Template:Archives

Whitespace generation

When this template is on a new line and is followed (or preceded) by a blank line, it creates a visible blank line. ([1]) Is this possible to fix? I often see this create accidental whitespace above article text when the template is placed grouped with the tags at the top of an article. — Goszei (talk) 06:42, 8 May 2021 (UTC)Reply

It's not a fault of this template, but in the way that it is being used. If you use it in accordance with its documentation, there is no problem. --Redrose64 🌹 (talk) 11:16, 8 May 2021 (UTC)Reply
It's not the template which causes it but the newlines around the template call. The template has no rendered output at its location so your example effectively has two consecutive blank lines. That gives extra whitespace. Removing the template without removing the newline at the end of its line would give the same result. PrimeHunter (talk) 12:25, 8 May 2021 (UTC)Reply
Would adding some kind of invisible character to "trick" the parser into not treating it like a blank line fix it? I understand situations where a blank line is created are improper uses per the documentation (as Redrose64 said), but making this problem self-solvable would save many edits and entries in page history in the future that remove the whitespace when the template is used improperly. — Goszei (talk) 20:28, 8 May 2021 (UTC)Reply
No, that would exacerbate it. --Redrose64 🌹 (talk) 21:21, 8 May 2021 (UTC)Reply
This issue was also encountered with Template:Tlp and I did some testing with it. It appears to be solved by adding <nowiki /> which shouldn't have any unintended consequences. --Trialpears (talk) 20:17, 9 May 2021 (UTC)Reply
If Line1 and Line2 are pure text then they would be displayed on the same line with this:
Line1
{{italic title}}
Line2
PrimeHunter (talk) 08:45, 10 May 2021 (UTC)Reply
Template:Replyto We should not be introducing fudges like <nowiki /> simply to handle cases where people didn't follow the documentation. This goes for {{short description}}, {{italic title}} and anything else which doesn't display text in place. --Redrose64 🌹 (talk) 21:21, 10 May 2021 (UTC)Reply
Are there any negatives associated with doing so? It is common practice to have one template a line for the top matter and we can't expect every editor to be aware of an obscure detail in the documentation. Changing user behavior on a large scale is basically the hardest thing you can do and adding a <nowiki /> is a simple fix that can solve the issue for good everywhere. --Trialpears (talk) 21:32, 10 May 2021 (UTC)Reply
Yes there are. If used between two boxes - such as {{proposed deletion/dated}} and {{notability}} - it will cause a gap between the two where none would otherwise have appeared. It defeats the border-collapse: CSS property. This is pretty much the same argument as Wikipedia talk:Manual of Style/Layout/Archive 13#Where to put {{short description}}. See also Wikipedia talk:Manual of Style/Layout/Archive 13#Nothing should go between navboxes and authority control and Wikipedia talk:Manual of Style/Layout/Archive 14#DISPLAYTITLE. --Redrose64 🌹 (talk) 15:06, 11 May 2021 (UTC)Reply

We need a technical solution for making this template behave like adjacent hatnotes; expecting users to read the documentation is not realistic. fgnievinski (talk) 05:09, 15 November 2022 (UTC)Reply

Should italic title be used on redirects?

I'm leaning no, since the user would never really see it. But figured I'd check. Example.Novem Linguae (talk) 22:35, 29 May 2022 (UTC)Reply

I'd lean towards yes. Minor benefit and no harm as far as I can tell. Readers won't see it but editors will. --Jameboy (talk) 16:54, 22 December 2025 (UTC)Reply
If it should, then it should probably be added via {{R from species to genus}} so there won't be a need to manually add it. Gonnym (talk) 17:08, 22 December 2025 (UTC)Reply

The Judd Legum article should not have its title in italics

Can someone fix this? Thanks. Nightscream (talk) 03:38, 31 May 2024 (UTC)Reply

Appears to have already been fixed in Template:Diff. --Redrose64 🌹 (talk) 07:49, 31 May 2024 (UTC)Reply

"Template:It" listed at Redirects for discussion

The redirect Template:It 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/2026 April 8 § Template:It until a consensus is reached. NguoiDungKhongDinhDanh 12:04, 8 April 2026 (UTC)Reply