Template talk:Colored box

(Redirected from Template talk:Colored box/doc)
Latest comment: 30 days ago by Alien333 in topic Pre on multi-line content

Need (?) and lint error

edit

Tomybrz, Elias Ziade, Danidamiobi: I suspect that this template is not needed and that other templates already do what this template does. If that is the case, pages that use it should use other templates and this template should be deleted. If this template really offers something new, it needs to be fixed to avoid causing div-span-flip lint errors whenever the title parameter is centered. Perhaps all <span>...</span> tags can be replaced with <div>...</div> tags. I don't want to get involved beyond that. I came here because of the lint errors in Draft:Portal:African cinema; if anyone fixes the lint errors there without modifying this template, the specific version I saw is the version of 15:22, 7 October 2022 (UTC). —Anomalocaris (talk) 07:03, 9 October 2022 (UTC)Reply

Hi @Anomalocaris,
Thanks a lot for paying attention. I did not even notice there were errors and trust me, I would not have created a new template if there was any that suited what I was trying to achieve. Danidamiobi (talk) 07:16, 9 October 2022 (UTC)Reply
Danidamiobi: Kindly fix this problem; there are only two pages in all of English Wikipedia with div-span-flip lint errors, one of them is Draft:Portal:African cinema, caused by this template. –Anomalocaris (talk) 18:22, 12 October 2022 (UTC)Reply
I'll work on it and feed you back shortly. Danidamiobi (talk) 19:10, 14 October 2022 (UTC)Reply

Pre on multi-line content

edit

When |content= spans multiple line, the template breaks down and puts the first one in a pre. Seen from WP:CVU. I fixed the Questions and Discussions boxes by putting it on a single line, but it can't be done for mediawiki lists or wikitables. — Alien333 (what I did & why I did it wrong) 19:04, 27 May 2024 (UTC)Reply

Answering myself: it's fixed. It was due to a space before the content that was there for indentation, but the newline before had to be there for wikitables to work. — Alien333 (what I did & why I did it wrong) 19:07, 27 May 2024 (UTC)Reply