Template talk:Col-begin
![]() | This template was considered for deletion on 2017 March 3. The result of the discussion was "keep". |
![]() | Template:Col-begin 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. This template does not have a testcases subpage. You can create the testcases subpage here. |
![]() | Text and/or other creative content from this version of Template:Col-begin was copied or moved into incubator:Template:Wp/nod/col-begin. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
See also
[edit]see also template:col-begin-small --MilkMiruku 17:51, 8 April 2006 (UTC)
Documentation
[edit]Is there any reason for the doc to promote using Col-1-of-N up to Col-N-of-N instead of just using Col-N throughout? The redirects are reasonable, but I think it's a lot more easier to use and maintain a table with Col-N. –Pomte 20:00, 9 April 2007 (UTC)
Edit request
[edit]{{editprotected}}
Please replace {{/doc}} by {{template doc}}. 16@r 21:50, 19 October 2007 (UTC)
Done - Nihiltres(t.l) 14:16, 20 October 2007 (UTC)
background
[edit]Just looking at the documentation part of {{Col-begin}}, you can see that, wherever the col system is used, there's a light gray background color on the light green page, so I suppose the "transparent" part from background:{{{bgColor|transparent}}}; does not work. Shouldn't it be background:{{{bgColor|none}}};? --Qyd (talk) 01:34, 15 March 2008 (UTC)
border is no longer used?
[edit]I guess the description more than 3 years ago (Old revision of Template:Col-begin/doc) is no longer correct. At least in my environment, no border exists in Col-begin tables and even if customized CSS, the border with 2px doesn't seem to corresponse to 5% of the table. While just now I checked the first 500 articles, only a few percent of them use 95% of width as the Col-begin width parameter. Would anyone mind removing this description? or any comments? ayucat (talk) 22:39, 17 January 2010 (UTC)
interwiki
[edit]{{editprotected}}
- Disabling. Interwiki links on the templates go on the /doc page, which is not protected. The Russian link at least is already present. Chris Cunningham (user:thumperward: not at work) - talk 14:57, 19 August 2010 (UTC)
Edit request on 2 March 2012
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Need to edit the guys on the radio have changed
94.173.13.86 (talk) 17:21, 2 March 2012 (UTC)
Not done: please be more specific about what needs to be changed. I think you're in the wrong place. — Bility (talk) 17:46, 2 March 2012 (UTC)
Rendering problems
[edit]This does not render correctly with some engines (Opera has problems at least up to v12.0x). I prefer {{Multicol}} which renders fine in all browsers I have tried (FF, Opera, Chrome). Dysmorodrepanis (talk) 18:32, 5 May 2013 (UTC)
Width query
[edit]- Width set
{{col-begin|width="100%"}} outputs <table class="multicol" role="presentation">
- Width not set
{{col-begin}}
outputs <table class="multicol" role="presentation" style="border-collapse: collapse; padding: 0; border: 0; background:transparent; width:100%;">
Why is this happening ? — Preceding unsigned comment added by TheBigJagielka (talk • contribs) 11:46, 24 March 2015 (UTC)
- @TheBigJagielka: Because the
|width=
parameter doesn't expect quotes, and so an invalidstyle=
attribute is generated, which is stripped by HTML Tidy. Try{{col-begin|width=100%}}
without quotes. --Redrose64 (talk) 13:38, 24 March 2015 (UTC)
Difference?
[edit]What is the difference between Col-begin and Multicol? Couldn't they be merged together? --Dvorapa (talk) 14:06, 24 June 2016 (UTC)
- @Dvorapa: You have started three threads on this matter, the others being Template talk:Multicol#Difference? and Wikipedia:Templates for discussion/Log/2016 June 24#Template:Multicol. Please observe WP:MULTI. --Redrose64 (talk) 20:34, 24 June 2016 (UTC)
- @Redrose64: Sorry, I thought I have to according to tfm (tfd) guide. Also I requested edit of the two locked templates by admins in their discussions (I assumed this request should be made in the template discussion). --Dvorapa (talk) 20:38, 24 June 2016 (UTC)
Template-protected edit request on 22 August 2016
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Put the template data inside the doc
VarunFEB2003 I am Offline 13:57, 22 August 2016 (UTC)
Done Izno (talk) 15:58, 22 August 2016 (UTC)
Template-protected edit request on 4 March 2017
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add {{subst:tfd}} and then change the |link=
parameters to point to Wikipedia:Templates for discussion/Log/2017 March 3 instead of Wikipedia:Templates for discussion/Log/2017 March 4, per a mass nomination by Fabartus. Pppery 02:12, 4 March 2017 (UTC)
Done — Train2104 (t • c) 02:45, 4 March 2017 (UTC)
- And of course CFCF incorrectly decided that the tfd for a non-inline non-substituted template's tfd should be noincluded. Pppery 14:20, 4 March 2017 (UTC)
- The current implementation breaks hundreds of other templates that this is transcluded in. It is a clear case of WP:POINTY. There also seems to be at least some indication that this will WP:SNOWCLOSE and it is widely enough advertised that it does not help to include it in the template. Carl Fredrik 💌 📧 14:23, 4 March 2017 (UTC)
- Give me an example. Also, I don't see any indication of a snow close, except for {{div col}}/{{div col end}} (which I didn't think were included in the tfd in the first place). Pppery 14:24, 4 March 2017 (UTC)
- The current implementation breaks hundreds of other templates that this is transcluded in. It is a clear case of WP:POINTY. There also seems to be at least some indication that this will WP:SNOWCLOSE and it is widely enough advertised that it does not help to include it in the template. Carl Fredrik 💌 📧 14:23, 4 March 2017 (UTC)
- And of course CFCF incorrectly decided that the tfd for a non-inline non-substituted template's tfd should be noincluded. Pppery 14:20, 4 March 2017 (UTC)
|}
[edit]Why is the "|}" inside the noinclude? Or any whatsoever? Is it needed for anything? ※ Sobreira ◣◥ (parlez) 15:48, 7 November 2017 (UTC)
- @Sobreira: It's needed to simulate {{refend}} when you are viewing the template itself. The template is 'non-balanced', instead relying on editors to balance it manually, by adding {{refend}}. Since the Template page shows the template too, without this noinclude, it would break the presentation of the Template page. —TheDJ (talk • contribs) 16:02, 7 November 2017 (UTC)
Missing end tag lint errors
[edit]This template (in combination with its partner templates) generates missing end tag lint errors. In the documentation examples, if you try them out, you get lint errors. For example:
{{col-begin|width=95%}} |- | Left column | Right column |} |
generates a missing end tag for <div>
.
generates a missing end tag for <p>
.
This needs to be addressed. Anomalocaris (talk) 06:47, 2 August 2018 (UTC)
- @Anomalocaris: this is already being discussed at Template_talk:Col-break#Template-protected_edit_request_on_1_August_2018 —TheDJ (talk • contribs) 07:26, 2 August 2018 (UTC)
- TheDJ: Well, the two examples here don't use
{{Col-break}}
, so the problem is bigger than that discussion. —Anomalocaris (talk) 07:46, 2 August 2018 (UTC)- Nevertheless, it's a closely-related problem, since both
{{col-break}}
and{{col-2}}
begin with an empty<p></p>
tag pair. The only difference between the two templates is what declarations are put into thestyle=
attribute of the<td>...</td>
element.{{col-2}}
forceswidth:50%;
whereas{{col-break}}
has the more flexible{{#if:{{{width|}}}|width: {{{width}}}; }} {{#if: {{{gap|}}}|padding-left: {{{gap}}};}} {{{style|}}}
. This means that{{col-break|width=50%}}
is identical to{{col-2}}
. --Redrose64 🌹 (talk) 08:16, 2 August 2018 (UTC)
- Nevertheless, it's a closely-related problem, since both
- TheDJ: Well, the two examples here don't use
Issue on mobile
[edit]Hello, I'm from portuguese Wikipedia and we also use this template, I found that we can't use it with h2 headers, for some weird reason, on mobile, the h2 within col-begin get nested on previous h2 section. example. Dianakc (talk) 21:49, 6 November 2019 (UTC)
Possibility of using table-layout property
[edit]On MDN Web Docs I've found the table-layout
property could be suitable for table based columns, with fixed
value every column would be distributed with the same width until you set the width
property for specific column. So what do you think of? If anyone else have no problem, you can apply table-layout: fixed
in this template. If there is a trouble breaks page layout, abandon this idea anyway. -- Great Brightstar (talk) 08:15, 24 July 2020 (UTC)
See the documentation at MDN Web Docs