The Wayback Machine - https://web.archive.org/web/20150423070647/https://phabricator.wikimedia.org/T26430

Remove "cols" user preference from MediaWiki core
OpenPublic

Description

Preferences always ask the number of colums for edit field, but only nostalgia and standard seem to use that preference. Either ask it only for those skins, or make those skins behave like the others.


Version: 1.17.x
Severity: minor

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz24430.
Nikerabbit created this task.Via Legacy · Jul 18 2010, 11:01 AM
demon added a comment.Via Conduit · Jul 19 2010, 5:40 PM
Comment Actions

Good candidate for a preference to kill?

Lejonel added a comment.Via Conduit · Feb 6 2011, 7:15 PM
Comment Actions

*** Bug 26815 has been marked as a duplicate of this bug. ***

Peachey88 added a comment.Via Conduit · Jul 14 2011, 10:35 AM
Comment Actions

This got discussed somewhere else I think, didn't you end up removing this in trunk chad because it wasn't actually setup to be used anywhere?

Nikerabbit added a comment.Via Conduit · Jul 14 2011, 11:29 AM
Comment Actions

It's still in trunk.

DanielFriesen added a comment.Via Conduit · Sep 20 2011, 12:51 AM
Comment Actions

Exterminate! EXTERMINATE!

bzimport added a comment.Via Conduit · Sep 30 2011, 10:03 PM
Comment Actions

cdbapat92 wrote:

Patch to remove columns preference from user prefrences

Tested only with default skin. Applies on top of 1.17.

attachment remove_cols_preference.diff ignored as obsolete

DanielFriesen added a comment.Via Conduit · Oct 1 2011, 1:57 AM
Comment Actions

I'd love to just drop that preference, though in a bit of quick testing in older skins eliminating the col= leads to it being unusably narrow.

I think we'll need to accompany this along with moving width: 100%; from skin specific css to the globally applied shared.css. While we're at it we might as well apply box-sizing: border-box; as well.

bzimport added a comment.Via Conduit · Oct 1 2011, 9:50 PM
Comment Actions

cdbapat92 wrote:

Removed cols preference

Rebased against trunk

Attached: remove_col.diff

bzimport added a comment.Via Conduit · Dec 23 2011, 10:48 PM
Comment Actions

bsitu wrote:

Applied patch in r107187, thanks for the patch

Jidanni added a comment.Via Conduit · Jan 19 2012, 2:38 AM
Comment Actions

But you wiped out any reasonable default too, causing Bug 33780!

bzimport added a comment.Via Conduit · Jan 19 2012, 6:38 PM
Comment Actions

bsitu wrote:

Thanks for the note, additional patch is applied in r109557

Jidanni added a comment.Via Conduit · Jan 25 2012, 12:46 AM
Comment Actions

(In reply to comment #11)
Dear Sir,
In http://www.w3.org/wiki/HTML/Elements/textarea
does it not say

  • cols = valid non-negative integer specifies the expected maximum number of characters per line. by defult, it is 20.

So why do you insist on not setting it to something reasonable like you do for

  • rows = valid non-negative integer Specifies the number of lines to show. by defult, it is 2.

just because things work out on your browser doesn't mean it is that way for others!!

Jidanni added a comment.Via Conduit · Jan 25 2012, 12:49 AM
Comment Actions

No, the magic of CSS should not be a requirement in this case.

Jidanni added a comment.Via Conduit · Jan 25 2012, 12:54 AM
Comment Actions

Even in the HTML5 example at
http://www.w3.org/TR/html5/the-button-element.html#the-textarea-element

<p>If you have any comments, please let us know (you may use either English or Hebrew for your comments):
<textarea cols=80 name=comments dirname=comments.dir></textarea></p>

they don't manage to forget it!

Jidanni added a comment.Via Conduit · Jan 25 2012, 12:57 AM
Comment Actions

Indeed, they never ever forget it (cols=80). It's on every example!

4 matches for "<textarea" in buffer: 4.10.8 The button element — HTML5 *w3m*

826:<p>If you have any comments, please let us know: <textarea cols=80 name=comments></textarea></p>
830:<p>If you have any short comments, please let us know: <textarea cols=80 name=comments maxlength=200></textarea></p>
834:<p>If you have any comments, please let us know: <textarea cols=80 name=comments>You rock!</textarea></p>
840:<textarea cols=80 name=comments dirname=comments.dir></textarea></p>
Krinkle added a comment.Via Conduit · Jan 25 2012, 1:07 AM
Comment Actions

I agree. Looks like WebKit has a default of 20 cols:

var a = document.createElement('textarea');
a.cols

< 20

bzimport added a comment.Via Conduit · Jan 25 2012, 6:57 PM
Comment Actions

a.d.bergi wrote:

(In reply to comment #13)

No, the magic of CSS should not be a requirement in this case.

What do you mean with "magic of CSS"?

Wouldn't it be OK just to remove the setting, and set a fix size of col=80 in the skin.php?

Jidanni added a comment.Via Conduit · Jan 26 2012, 12:01 AM
Comment Actions

(In reply to comment #17)

What do you mean with "magic of CSS"?

OK, the help of, use of, CSS.

Wouldn't it be OK just to remove the setting, and set a fix size of col=80 in
the skin.php?

Sounds good!

Jidanni added a comment.Via Conduit · Jan 26 2012, 12:02 AM
Comment Actions

cols=80 not col. And maybe cols="80" even better...

MZMcBride added a comment.Via Conduit · Jan 26 2012, 3:50 PM
Comment Actions

Code reverted in r110007, r110008, r110009, r110010.

Jidanni added a comment.Via Conduit · Jan 28 2012, 2:05 AM
Comment Actions

Thanks. Takes care of Bug 33780, I'm happy.

MZMcBride added a comment.Via Conduit · Sep 29 2012, 12:12 AM
Comment Actions

(In reply to comment #1)

Good candidate for a preference to kill?

https://www.mediawiki.org/wiki/Requests_for_comment/Core_user_preferences

demon added a comment.Via Conduit · Sep 29 2012, 4:22 PM
Comment Actions

(In reply to comment #22)

(In reply to comment #1)
> Good candidate for a preference to kill?

https://www.mediawiki.org/wiki/Requests_for_comment/Core_user_preferences

Tried before, need to make sure there's no regressions if we do.

Nikerabbit added a comment.Via Conduit · Jun 16 2013, 8:55 PM
Comment Actions

We managed to get rid of the legacy skins but not this preference yet?

matmarex added a comment.Via Conduit · Aug 13 2013, 6:54 PM
Comment Actions

With I07895f76 merged no core skin actually uses this. Let's just set cols=80 and kill the pref.

gerritbot added a comment.Via Conduit · Aug 20 2013, 5:43 PM
Comment Actions

Change 80061 had a related patch set uploaded by Demon:
Remove cols and rows preferences

https://gerrit.wikimedia.org/r/80061

gerritbot added a comment.Via Conduit · Oct 11 2013, 6:21 PM
Comment Actions

Change 80061 abandoned by Chad:
Remove cols and rows preferences

https://gerrit.wikimedia.org/r/80061

Nemo_bis added a comment.Via Conduit · Dec 16 2013, 6:33 AM
Comment Actions

Hmm "The body textarea on Page: pages editing was too big. The size defined in User preferences is now used". http://lists.wikimedia.org/pipermail/wikisource-l/2013-December/001700.html
Tpt, if it's about this preference you may want to use the default value directly I guess.

Tpt added a comment.Via Conduit · Dec 16 2013, 7:30 AM
Comment Actions

(In reply to comment #28)

Tpt, if it's about this preference you may want to use the default value
directly I guess.

ProofreadPage uses EditPage::showTextbox to build its textareas and so has no direct dependence on cols and rows system messages. Delete these messages won't break anything in the extension.

gerritbot added a comment.Via Conduit · Dec 16 2013, 8:17 PM
Comment Actions

Change 101994 had a related patch set uploaded by Bsitu:
curl_setopt doesn't seem to url-encode the text

https://gerrit.wikimedia.org/r/101994

bzimport added a comment.Via Conduit · Dec 16 2013, 8:18 PM
Comment Actions

bsitu wrote:

oops, sorry wrong bug reference

Krinkle removed a subscriber: wikibugs-l.Via Web · Nov 25 2014, 9:10 PM
Krinkle set Security to None.
werdna removed a subscriber: werdna.Via Web · Dec 10 2014, 5:38 PM

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.