Template talk:Color box
Template:Color box is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template was considered for merging with Template:Colorbox on 23 May 2015. The result of the discussion was "no consensus". |
This template was considered for deletion on 27 July 2015. The result of the discussion was "merge to Template:Colorbox". |
Documentation
edit{{editprotected}}
Can somebody move the documentation of this template to a subpage? Thanks in advance. Tinlinkin (talk) 06:13, 7 June 2009 (UTC)
- Done — Martin (MSGJ · talk) 13:23, 7 June 2009 (UTC)
Request: Don't include color: if parameter 3 not specified
edit{{editprotected}}
Currently the code uses color:{{{3}}}, so if no third parameter is specified, the style tag contains a literal {{{3}}}. Would someone please fix that? Thanks!
- Actually, all three parameters need to be optional in my opinion. This would be done by changing "
{{{1}}}
" to "" and doing the same thing for all three parameters.--Dudemanfellabra (talk) 21:17, 20 August 2009 (UTC)
- Done. Of course, you'll still need to put the | to keep the parameters in their correct places, e.g. {{Color box||Hello|blue}} for Hello . — Martin (MSGJ · talk) 22:39, 20 August 2009 (UTC)
Cross-reference needed
editPlease add a "see also" link to the documentation, referring to the template {{colorbox}} (note no space) for an alternative version of this template using gray borders instead of black. •••Life of Riley (T–C) 01:33, 11 January 2010 (UTC)
- Done The documentation is not locked; I added in the link as you requested. --Dudemanfellabra (talk) 01:39, 11 January 2010 (UTC)
Two colours in the same box
editHi there. Is it possible to produce a box that is half one colour and half another? I would like to start using this template to help indicate rank for judoka in the article infobox, and sixth to eight degree 'black belts' actually wear a red and white belt. CanadianJudoka (talk) 23:42, 3 September 2012 (UTC)
- This is for the diagonal split. I'd been trying to find it myself! Frank12 (talk) 18:04, 14 December 2012 (UTC)
Template-protected edit request on 23 May 2015
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the newline after the TfM notice with a space. It's causing strange line breaks in a lot of places (see the infobox of California Institute of Technology. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 13:46, 23 May 2015 (UTC)
- Done --Redrose64 (talk) 13:50, 23 May 2015 (UTC)
Template-protected edit request on 25 May 2015
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone add <nowiki></nowiki> to the deletion template? It is causing the boxes in the university and university athletics infoboxes to be a mess. If there is a reason as to why this shouldn't be done, I'd be happy to learn. Thanks. Corky | Chat? 17:05, 25 May 2015 (UTC)
- Not done: The notice is there to attract attention to the TfD discussion, and for good reasons: first, if it weren't there, and the template suddenly changed its behaviour - or even was deleted - people would complain about not being pre-warned, and rightly so. Second, participation at TfD is not as great as it perhaps should be, so the more people that are made aware, the better. If a great number of different people express a convincing opinion - one way or the other - in a short period of time, the discussion will be closed and the notice removed. --Redrose64 (talk) 18:44, 25 May 2015 (UTC)
Template-protected edit request on 27 May 2015
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please noinclude the TfM notice. There have already been several complaints on the TfM page, it is completely irrelevant to readers, and it has been stuck there for several days now (enough for anyone to notice). The only comments it is attracting to the TfD nomination are complaints calling for its removal. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 11:38, 27 May 2015 (UTC)
- Done - in this case, the bad outweigh the good. If greater participation is sought, perhaps the proposal could be advertised at WP:VP/T; the general readership is uninterested in the merging of three nearly-identical colour box templates. Alakzi (talk) 12:05, 27 May 2015 (UTC)
- @Alakzi: Please revert. If people who actually use the template are denied the opportunity to participate, the only people who discuss it will be one or two of the TfD regulars, and yet another TfD will be rubberstamped through on the nod. --Redrose64 (talk) 12:10, 27 May 2015 (UTC)
- People who use the template have had six days to be made aware of the consolidation proposal. The continued defacement of thousands of articles is hard to justify, especially where it concerns a template so trivial in nature. Your portrayal of TfD "regulars" as the proverbial hive mind is uncalled for. Besides, there has been vigorous opposition to (part of) the proposal; your concern appears to be unfounded. Alakzi (talk) 12:27, 27 May 2015 (UTC)
- @Alakzi: Please revert. If people who actually use the template are denied the opportunity to participate, the only people who discuss it will be one or two of the TfD regulars, and yet another TfD will be rubberstamped through on the nod. --Redrose64 (talk) 12:10, 27 May 2015 (UTC)
Template-protected edit request on 9 August 2015
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Revised code incorporating |border=
parameter, per WP:Templates for discussion/Log/2015 July 27#Template:Color box:
<span style="background-color:{{{1|}}}; color:{{{3|}}}; border:1px solid
#000000{{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}| {{{2}}} | }}</span>
Useddenim (talk) 20:57, 9 August 2015 (UTC)
- Done I made the correction. Thanks Useddenim for showing the clear consensus in the request, hope I made the correct change. Qed237 (talk) 21:11, 9 August 2015 (UTC)
- @Useddenim: May I suggest changing the template documentation, perhaps also including the merge. Qed237 (talk) 21:13, 9 August 2015 (UTC)
'Maroon' works and 'maroon' does not?
editI notice one color box which had "maroon" displayed white, but it worked when I set it to "Maroon" with a capitalized M... WhisperToMe (talk) 13:58, 4 January 2017 (UTC)
- maroon
{{color box|maroon|'''maroon'''|white|border=maroon}}
Maroon{{color box|Maroon|'''Maroon'''|White|border=Maroon}}
maroon{{color box||'''maroon'''|maroon|border=maroon}}
Maroon{{color box||'''Maroon'''|Maroon|border=Maroon}}
Looks like it works just fine. Are you sure you didn't just mis-type marron by mistake? Useddenim (talk) 16:35, 4 January 2017 (UTC)- @Useddenim: I think I figured it out. There was an extra space which caused the color box to malfunction. See this, Compare with this, and now see Pharr-San Juan-Alamo High School WhisperToMe (talk) 12:53, 5 January 2017 (UTC)
Diagonal split color box
editDiscussion at Wikipedia_talk:Manual_of_Style/Accessibility#Diagonal_split_color_box AngusWOOF (bark • sniff) 21:51, 17 September 2019 (UTC)
Border width
editIs there any way to change the width of the border? Vesuvio14 (talk) 19:00, 20 June 2022 (UTC)
- No worries, resolved. Vesuvio14 (talk) 10:02, 21 June 2022 (UTC)
Edit request to complete TfD nomination
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Template:Color box has been listed at Templates for discussion (nomination), but it was protected, so it could not be tagged. Please add:
<noinclude>{{subst:template for discussion|help=off}}</noinclude>
to the top of the page to complete the nomination. Thank you. Qwerty284651 (talk) 01:44, 6 October 2022 (UTC)
- Completed. P.I. Ellsworth , ed. put'r there 04:26, 6 October 2022 (UTC)
- Nominated the template with the wrong criteria. My bad. Qwerty284651 (talk) 14:58, 6 October 2022 (UTC)
- @Paine Ellsworth remove this nom from your noinclude list. Qwerty284651 (talk) 15:12, 6 October 2022 (UTC)
- Done I have removed the nomination. Terasail[✉️] 18:12, 6 October 2022 (UTC)
- @Terasail, thanks, mate. Qwerty284651 (talk) 18:14, 6 October 2022 (UTC)
"Template:Color box inline" listed at Redirects for discussion
editAn editor has identified a potential problem with the redirect Template:Color box inline and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2022 October 6#Template:Color box inline until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Qwerty284651 (talk) 15:06, 6 October 2022 (UTC)
Edit request 15 April 2024
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add CSS class mw-no-invert to avoid inversion by the dark mode gadget
Diff:
− | <span class="legend- | + | <span class="legend-color mw-no-invert" |