Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template talk:Col-begin

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Col-begin/doc)

See also

[edit]

see also template:col-begin-small --MilkMiruku 17:51, 8 April 2006 (UTC)[reply]

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)[reply]

Edit request

[edit]

{{editprotected}}
Please replace {{/doc}} by {{template doc}}. 16@r 21:50, 19 October 2007 (UTC)[reply]

checkY Done - Nihiltres(t.l) 14:16, 20 October 2007 (UTC)[reply]

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)[reply]

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)[reply]

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)[reply]

Edit request on 2 March 2012

[edit]

Need to edit the guys on the radio have changed

94.173.13.86 (talk) 17:21, 2 March 2012 (UTC)[reply]

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)[reply]

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)[reply]


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 (talkcontribs) 11:46, 24 March 2015 (UTC)[reply]

@TheBigJagielka: Because the |width= parameter doesn't expect quotes, and so an invalid style= attribute is generated, which is stripped by HTML Tidy. Try {{col-begin|width=100%}} without quotes. --Redrose64 (talk) 13:38, 24 March 2015 (UTC)[reply]

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)[reply]

@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)[reply]
@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)[reply]

Template-protected edit request on 22 August 2016

[edit]

Put the template data inside the doc

VarunFEB2003 I am Offline 13:57, 22 August 2016 (UTC)[reply]

Done Izno (talk) 15:58, 22 August 2016 (UTC)[reply]

Template-protected edit request on 4 March 2017

[edit]

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)[reply]

Done — Train2104 (t • c) 02:45, 4 March 2017 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]

|}

[edit]

Why is the "|}" inside the noinclude? Or any whatsoever? Is it needed for anything? ※ Sobreira ◣◥ (parlez) 15:48, 7 November 2017 (UTC)[reply]

@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 (talkcontribs) 16:02, 7 November 2017 (UTC)[reply]
@TheDJ: Not {{refend}}, please: that only terminates a div - the balancing template for {{col-begin}} is {{col-end}}, which terminates a table and a div. Use of {{refend}} will cause misnested HTML, possibly a broken page layout. --Redrose64 🌹 (talk) 16:42, 7 November 2017 (UTC)[reply]

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)[reply]

@Anomalocaris: this is already being discussed at Template_talk:Col-break#Template-protected_edit_request_on_1_August_2018TheDJ (talkcontribs) 07:26, 2 August 2018 (UTC)[reply]
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)[reply]
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 the style= attribute of the <td>...</td> element. {{col-2}} forces width: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)[reply]

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)[reply]

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)[reply]

See the documentation at MDN Web Docs