Template talk:Box-header

message: Change: Add the ability to customise colours for each border around the box.
Description: This is seen (by use of editing a copy of this template) on this page Portal:Canada/Wikiprojects/box-header/2 and uses a different coloured border for under the title. Also see Portal:Daddy Yankee/box-header/2 for another box-header that cannot be created from this template for the same reasons. I tried to accomplish this using this template, but from my testing, it is not at the moment possible. Dreamy Jazz (talk) 15:04, 4 June 2018 (UTC)
replies: text: This should already be possible by using  for the title border colour, and  for other borders' colour, or all borders if  isn't specified. (Though the documentation here could do with some improvement, I had to look at the source code to find that out) Evad37 [talk] 01:14, 5 June 2018 (UTC)

text: Here are some examples of the effects that can be achieved with these parameters - Evad37 [talk] 01:32, 5 June 2018 (UTC)
replies: text:  Thanks for the explanation. Dreamy Jazz (talk) 07:23, 5 June 2018 (UTC)
thread_title:  Template-protected edit request on 4 June 2018 

message: The line:
padding-top: .3em;
needs to be changed to:
padding-top: .3em;
this ensures the semi-colon is always included. At the moment it not being included will cause errors when a custom padding-top is provided. 
See example:


produces in the source:
... padding-top: 1em-moz-border-radius: 0; ...
Thanks,
Dreamy Jazz (talk) 21:15, 5 June 2018 (UTC)
replies: text: Done Cabayi (talk) 07:04, 6 June 2018 (UTC)
thread_title:  Template-protected edit request on 5 June 2018 

message: In this version of the Earth sciences portal, a couple of things aren't working. The edit link at the top of the box reads [ edit], and in the first news item there is the string . RockMagnetist(talk) 15:18, 6 June 2018 (UTC)
replies: text: One of the problems is fixed (the In the News section did not have an edit link). The other problem is best asked at the talk page for , as this is the template that included the news onto the portal. Thanks Dreamy Jazz talk | contribs 20:44, 6 June 2018 (UTC)
replies: text: The broken edit link is something to do with these edits by . --Redrose64 🌹 (talk) 21:12, 6 June 2018 (UTC)
replies: text: Nah, nothing to do with those edits, which were only to the numbered subpages of Template:Box-header (which in turn call Template:Box-header with specific style values). Portal:Earth sciences uses Portal:Earth sciences/box-header, which calls Box-header directly, not a numbered subpage. The problem came from this edit which added a   without a second parameter – so the  in Portal:Earth sciences/box-header became the literal text  which was then passed into Template:Box-header's  parameter. These 2 edits  fixed it by allowing  to be passed on to Template:Box-header for portal components not using subpages - Evad37 [talk] 00:12, 7 June 2018 (UTC)

text:   Fixed the  template, or rather its module, which now properly expands any templates found in the items it transcludes - Evad37 [talk] 02:40, 7 June 2018 (UTC)
replies: text:   Thanks for fixing the problems! RockMagnetist(talk) 04:19, 7 June 2018 (UTC)
thread_title:  Template and edit link not working properly 

message: Should this template be switched to use Module:Box-header (i.e. the code currently at Template:Box-header/lua)? It would take the same parameters and produce the same output, but would have the advantage of checking colour combinations for accessibility, per MOS:COLOUR, and reporting uses of inaccessible colours in :Category:Box-header with insufficient title contrast and :Category:Box-header with insufficient body contrast. It would also mean that this template and  would be using the same code, reducing redundancy and allowing any future improvements to be made to both templates. - Evad37 [talk] 07:19, 13 August 2018 (UTC)
replies: text: - Evad37 [talk] 04:34, 17 August 2018 (UTC)
thread_title:  Switch to Module:Box-header?